[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Parameter Passing and fo:retrieve-marker

Subject: RE: Parameter Passing and fo:retrieve-marker
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Wed, 30 Jan 2002 09:07:03 -0000
xsl fo retrieve marker
You need to use <xsl:copy-of> to copy a tree fragment to the result tree;
using <xsl:value-of> merely copies its string value.

Mike Kay

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of W. Eliot
> Kimber
> Sent: 30 January 2002 00:22
> To: xsl list
> Subject:  Parameter Passing and fo:retrieve-marker
> I'm using a parameter to parameterize running foot processing where I
> need to pass in different variable result tree fragments for different
> parts of doc (see style sheet fragment below). The problem
> I'm having is
> that the fo:retrieve-marker element isn't making it to the output FO
> doc. When I examine the output FO document, I can find the
> fo:leader and
> the xsl:text element within the fo:static-content element, but the
> fo:retrieve-marker isn't there and I have no idea why not. I am using
> Saxon for the transform.
> If I replace the variable reference with the contents of the parameter
> default value directly in the style sheet, then I get the
> fo:retrieve-marker elements ane everything works.
> Am I missing something? What is the parameter mechanism doing that I
> don't understand?
> Here's the template in question:
> <xsl:template name="running-foot">
>   <xsl:param name="number-prefix-odd">
>     <xsl:message>Setting default value of
> number-prefix-odd</xsl:message>
>     <fo:retrieve-marker retrieve-class-name="section-title"/>
>     <fo:leader leader-pattern="space" leader-length="1em"/>
>     <xsl:text>foo</xsl:text>
>   </xsl:param>
>   <fo:static-content flow-name="region-after-odd">
>     <fo:block
>         font-family="sans-serif"
>         font-size="{$body-font-size}"
>         text-align-last="justify">
>       <fo:inline
>           text-align="left"><xsl:text>Some Constant Value</xsl:text>
>       </fo:inline>
>       <fo:leader leader-pattern="space"/>
>       <fo:inline
>           text-align="right">
>         <xsl:value-of select="$number-prefix-odd"
>         /><fo:page-number/>
>       </fo:inline>
>     </fo:block>
>   </fo:static-content>
> </xsl:template>
> Thanks,
> Eliot
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.