Browse Source

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
pull/30/head
Glen Mazza 20 years ago
parent
commit
093f9293f3
2 changed files with 9 additions and 5 deletions
  1. 6
    5
      examples/embedding/build.xml
  2. 3
    0
      examples/embedding/xml/xslt/projectteam2fo.xsl

+ 6
- 5
examples/embedding/build.xml View File

@@ -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"/>

+ 3
- 0
examples/embedding/xml/xslt/projectteam2fo.xsl View File

@@ -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"/>

Loading…
Cancel
Save