pdf - Apache FOP - include one xsl to another -
i have many xsl files, have 1 common part. want separate part xsl file , include every file (to able apply changes once). using apache fop create pdf xsl file. tried approach described here: how use `xsl:include` apache fop, no success.
here part of xsl:
<xsl:template match="foobar"> <fo:root xmlns:fo="__http://www.w3.org/1999/xsl/format"> <fo:layout-master-set> .... .... <!-- parent element of part, want separate --> <fo:page-sequence master-reference="pages"> <!-- part, want move separate xsl file --> <fo:static-content flow-name="page-footer"> <fo:block font-size="7pt" margin-left="10mm"> <fo:table table-layout="fixed" width="100%" border-collapse="separate"> <fo:table-column column-width="100%"/> <fo:table-body> <fo:table-row> <fo:table-cell> <fo:block>some text changed</fo:block> </fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> </fo:block> </fo:static-content> <!-- part, want move separate xsl file -->
when place part separate xsl file, errors, apache fop.
systemid unknown; (line , column of include); org.xml.sax.saxexception: elemtemplateelement error: "template name" javax.xml.transform.transformerexception: elemtemplateelement error: "template name" systemid unknown; (line , column of include); not find template named: "template name"
i tried ways of include:
<xsl:include href="templatefilename.xsl"/> (to header) <xsl:call-template name="templatefilename"/> (directly on wanted place) <xsl:apply-templates select="templatefilename"/> (directly on wanted place)
none of them worked.
the pdf created, without part. gladly provide more info/details, if needed.
thanks suggestions!
wiki
Comments
Post a Comment