diff options
author | Glen Mazza <gmazza@apache.org> | 2004-02-05 00:31:50 +0000 |
---|---|---|
committer | Glen Mazza <gmazza@apache.org> | 2004-02-05 00:31:50 +0000 |
commit | 30ca4bc59edcb952327d0d2e01ac3b5c1fb2917c (patch) | |
tree | bb7bcc42779d1e560f86fff0ef6610bbd3839061 /examples | |
parent | a50659dd2da987ffda829a6416042c35306959ec (diff) | |
download | xmlgraphics-fop-30ca4bc59edcb952327d0d2e01ac3b5c1fb2917c.tar.gz xmlgraphics-fop-30ca4bc59edcb952327d0d2e01ac3b5c1fb2917c.zip |
Added a parameter to the projectteam2fo.xsl example (for subsequent use
in showing a setTransform() call in the samples); also added a needed
library to the examples' build.xml file.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197330 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'examples')
-rw-r--r-- | examples/embedding/build.xml | 11 | ||||
-rw-r--r-- | examples/embedding/xml/xslt/projectteam2fo.xsl | 3 |
2 files changed, 9 insertions, 5 deletions
diff --git a/examples/embedding/build.xml b/examples/embedding/build.xml index b201e50ec..9a259ba71 100644 --- a/examples/embedding/build.xml +++ b/examples/embedding/build.xml @@ -17,11 +17,12 @@ <!-- stuff --> <path id="project.class.path"> <fileset dir="${fop.lib.dir}"> - <include name="avalon-framework*.jar"/> - <include name="batik*.jar"/> - <include name="xml-apis.jar"/> - <include name="xerces*.jar"/> - <include name="xalan*.jar"/> + <include name="avalon-framework*.jar"/> + <include name="batik*.jar"/> + <include name="xml-apis.jar"/> + <include name="xerces*.jar"/> + <include name="xalan*.jar"/> + <include name="commons-io*.jar"/> </fileset> <fileset dir="${fop.lib.dir}/../build"> <include name="fop.jar"/> diff --git a/examples/embedding/xml/xslt/projectteam2fo.xsl b/examples/embedding/xml/xslt/projectteam2fo.xsl index ba205fbf8..d10ae8551 100644 --- a/examples/embedding/xml/xslt/projectteam2fo.xsl +++ b/examples/embedding/xml/xslt/projectteam2fo.xsl @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" exclude-result-prefixes="fo"> <xsl:output method="xml" version="1.0" omit-xml-declaration="no" indent="yes"/> + <xsl:param name="versionParam" select="1.0"/> <!-- ========================= --> <!-- root element: projectteam --> <!-- ========================= --> @@ -15,6 +16,8 @@ <fo:flow flow-name="xsl-region-body"> <fo:block font-size="16pt" font-weight="bold" space-after="5mm">Project: <xsl:value-of select="projectname"/> </fo:block> + <fo:block font-size="12pt" space-after="5mm">Version <xsl:value-of select="$versionParam"/> + </fo:block> <fo:block font-size="10pt"> <fo:table table-layout="fixed"> <fo:table-column column-width="4cm"/> |