<tstamp/>
<property name="src.dir" value="./fop"/>
- <property name="docfile.pdf" value="./fop.pdf"/>
<property name="allfiles.xml" value="fop-doc.xml"/>
- <property name="stylesheet.xsl" value="xml2pdf.xsl"/>
- <property name="outfile.fo" value="fop-doc.fo"/>
- <property name="outfile.pdf" value="fop-doc.pdf"/>
-
- <property name="xslt" value="org.apache.xalan.xslt.Process"/>
+ <property name="outfile.fo" value="fop.fo"/>
+ <property name="outfile.pdf" value="fop.pdf"/>
<taskdef name="fop" classname="Fop"/>
- <taskdef name="collectDocFiles" classname="CollectDocFiles"/>
<taskdef name="xslt" classname="Xslt"/>
</target>
<!-- =================================================================== -->
- <!-- compiles all xml files into one and removes the proprietary sbk protocol -->
+ <!-- copies all xml files into one. the infile is a dummy, because the -->
+ <!-- source files are defined in the stylesheet -->
<!-- =================================================================== -->
<target name="prepare-files" depends="init">
- <collectDocFiles configFile="fop.xml" outFile="fop.pdf"/>
+ <xslt infile="fop.xml" xsltfile="xml2xml.xsl"
+ outfile="${allfiles.xml}" smart="yes"/>
</target>
<!-- =================================================================== -->
- <!-- Generates the fo file -->
+ <!-- Generates the fo file -->
<!-- =================================================================== -->
<target name="fo" depends="prepare-files">
- <xslt infile="${allfiles.xml}" xsltfile="${stylesheet.xsl}"
+ <xslt infile="${allfiles.xml}" xsltfile="xml2pdf.xsl"
outfile="${outfile.fo}" smart="yes"/>
</target>
<!-- =================================================================== -->
- <!-- Generates the pdf file -->
+ <!-- Generates the pdf file -->
<!-- =================================================================== -->
<target name="pdf" depends="fo">
<fop fofile="${outfile.fo}" pdffile="${outfile.pdf}"/>
space-after.optimum="15pt"
background-color="blue"
color="white"
- text-align="centered">
+ text-align="center">
FOP - an xsl:fo renderer
</fo:block>
space-after.optimum="15pt"
background-color="blue"
color="white"
- text-align="centered"
+ text-align="center"
>
<xsl:attribute name="id">
<xsl:value-of select="translate(.,' ),-.(','____')"/>
line-height="20pt"
space-before.optimum="15pt"
space-after.optimum="12pt"
- text-align="centered"
+ text-align="center"
padding-top="3pt"
>
<xsl:value-of select="@title"/>
line-height="18pt"
space-before.optimum="10pt"
space-after.optimum="9pt"
- text-align="centered"
+ text-align="center"
padding-top="3pt">
<xsl:value-of select="@title"/>
</fo:block>
line-height="13pt"
space-after.optimum="3pt"
space-before.optimum="3pt"
- text-align="justified">
+ text-align="justify">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
space-after.optimum="15pt"
background-color="blue"
color="white"
- text-align="centered"
+ text-align="center"
>
<xsl:attribute name="id">
<xsl:value-of select="translate(.,' ),-.(','____')"/>
line-height="13pt"
space-after.optimum="3pt"
space-before.optimum="3pt"
- text-align="justified">
+ text-align="justify">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
</fo:list-item-label>
<fo:list-item-body>
<fo:block space-after.optimum="4pt"
- text-align="justified"
+ text-align="justify"
padding-top="3pt">
<xsl:apply-templates/>
</fo:block>
</fo:list-item-label>
<fo:list-item-body>
<fo:block space-after.optimum="4pt"
- text-align="justified"
+ text-align="justify"
padding-top="3pt">
<xsl:apply-templates/>
</fo:block>
--- /dev/null
+<?xml version="1.0"?>
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+
+<xsl:template match ="/">
+ <documentation>
+ <xsl:copy-of select="document('fop/readme.xml')"/>
+ <xsl:copy-of select="document('fop/download.xml')"/>
+ <xsl:copy-of select="document('fop/running.xml')"/>
+ <xsl:copy-of select="document('fop/implemented.xml')"/>
+ <xsl:copy-of select="document('fop/limitations.xml')"/>
+ <xsl:copy-of select="document('fop/bugs.xml')"/>
+ <xsl:copy-of select="document('fop/examples.xml')"/>
+ <xsl:copy-of select="document('fop/compiling.xml')"/>
+ <xsl:copy-of select="document('fop/embedding.xml')"/>
+ <xsl:copy-of select="document('fop/involved.xml')"/>
+ <xsl:copy-of select="document('fop/architecture.xml')"/>
+ <xsl:copy-of select="document('fop/faq.xml')"/>
+ <xsl:copy-of select="document('fop/specs.xml')"/>
+ <xsl:copy-of select="document('fop/license.xml')"/>
+ </documentation>
+</xsl:template>
+
+</xsl:stylesheet>
+
+