|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] xsl:with-param issue.
Suffering with disappearing parameters.
<xsl:call-template name="page-sequence">
<xsl:with-param name="head-L">An XSL Primer</xsl:with-param>
<xsl:with-param name="head-R">Page <fo:page-number/></xsl:with-param>
<xsl:with-param name="foot-L">XSL Primer</xsl:with-param>
<xsl:with-param name="foot-R">Page <fo:page-number/></xsl:with-param>
</xsl:call-template>
Then in the named template.
<xsl:template name="page-sequence">
<xsl:param name="region-head">before</xsl:param><!-- region name for header -->
<xsl:param name="region-foot">after</xsl:param><!-- region name for footer -->
<xsl:param name="head-L"> </xsl:param>
<xsl:param name="head-R"><fo:page-number/></xsl:param>
<xsl:param name="foot-L"> </xsl:param>
<xsl:param name="foot-R"><fo:page-number/></xsl:param>
<!-- header section -->
<fo:static-content
flow-name="{concat('xsl-region-',$region-head)}">
<xsl:comment>2B</xsl:comment>
<fo:list-block
font-family="Helvetica"
font-size="10pt"
provisional-distance-between-starts="5in"
provisional-label-separation="0in">
<fo:list-item>
<fo:list-item-label>
<fo:block
text-align="start"><xsl:value-of select="$head-L"/><!-- Header Left value -->
</fo:block>
</fo:list-item-label>
<fo:list-item-body>
<fo:block
text-align="end"><xsl:value-of select="$head-R"/> </fo:block><!-- Header Right -->
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
</fo:static-content>
etc.
When I run this through saxon, the output for $head-R is
simply 'Page ' with no <fo:page-number/>
I couldn't find anything about *not* having other namespaced stuff in the rec.
Anyone know if/why its wrong please?
Regards DaveP
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








