|
Subject: Use of macro-argument From: Michel Goossens <Michel.Goossens@xxxxxxx> Date: Thu, 10 Dec 1998 16:58:29 +0100 (MET) |
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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| alternating tags in a list?, keshlam | Thread | Re: Use of macro-argument, Henry S. Thompson |
| alternating tags in a list?, keshlam | Date | Re: Use of macro-argument, Henry S. Thompson |
| Month |