java - XSLT: XTSE0010: An fo:block element must not contain an xsl:param element -


i passing few parameters java code xsl style sheet generating pdf using xsl:fo, error:

xtse0010: fo:block element must not contain xsl:param element 

this stylesheet (partly):

 <fo:flow flow-name="xsl-region-body">     <fo:block>         <xsl:value-of select="reportcontent/client/clientid"/>     </fo:block>     <fo:block font-weight="bold">         <xsl:value-of select="reportcontent/client/clientname" />     </fo:block>     <fo:block>         <xsl:value-of select="reportcontent/client/clientaddress" />         ,<xsl:value-of select="reportcontent/client/clienttown" />     </fo:block>     <fo:block>         <xsl:value-of select="reportcontent/reportinterval/startdate"/>          - <xsl:value-of select="reportcontent/reportinterval/enddate"/>     </fo:block>     <fo:block page-break-inside="auto">         <fo:table>             <fo:table-body>                 <fo:table-row>                     <fo:table-cell>                         <fo:block/>                     </fo:table-cell>                 </fo:table-row>                 <xsl:for-each select="reportcontent/batch">                     <fo:table-row>                         <fo:table-cell padding="3px">                             <fo:block>                                 <xsl:param name="clientid" />                             </fo:block>                         </fo:table-cell>                     </fo:table-row>                 </xsl:for-each>             </fo:table-body>         </fo:table>     </fo:block> </fo:flow> 

is there way can use parameters inside xsl:fo tags?

to able use values of parameters passed on java xslt inside <fo:block> tags, had initialise parameter right after <xsl:stylesheet> tag end inside .xsl file:

<xsl:param name="clientid" /> 

and after use inside :fo tag this:

<fo:block>    <xsl:value-of select="$clientid"/> </fo:block> 

Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -