|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Use of macro-argument
I have the following definition in a stylesheet
<xsl:define-macro name="listitem">
<xsl:macro-arg name="itemtext"/>
<fo:list-item>
<fo:list-item-label font-style="italic">
arg(itemtext)<xsl:text>:</xsl:text>
</fo:list-item-label>
<fo:list-item-body>
<xsl:contents/>
</fo:list-item-body>
</fo:list-item>
</xsl:define-macro>
and further down I invoke the macro with:
<xsl:invoke macro="listitem">
<xsl:arg name="itemtext" value="To"/>
<xsl:value-of select="to"/>
</xsl:invoke>
I would like that the "itemtext" argument (the string "To")
substitutes
{arg(itemtext)}<xsl:text>:</xsl:text>
in the result tree.
However, I cannot seem to find a way to get hold of the
value when the argument is instantiated (I just get the literal
string {arg(itemtext)}). Is there a way to get the actual value
of a macro argument for use as a text string?
Many thanks, Michel Goossens
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








