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

Use of macro-argument

Subject: Use of macro-argument
From: Michel Goossens <Michel.Goossens@xxxxxxx>
Date: Thu, 10 Dec 1998 16:58:29 +0100 (MET)
define 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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.