[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Q: Attribute value templates
Is there some way to insert the result of an attribute value template into the character content of an element in the result tree? I need to do this because certain syntax, in particular arg() and constant(), is only allowed in an attribute value template. Specifically, I'm trying to write a macro that takes a filename as an argument and generates an HTML <A> element with an href based on the filename (that part's no problem), and with the filename as the content: <xsl:macro name="file-link"> <xsl:macro-arg name="file-name"/> <A href="{constant(base-url)}/{arg(file-name)}"> <!-- How can I insert file-name here? --> </A> </xsl:macro> Thanks for any help. --- Mike Koehrsen Foundry, Inc. 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
|