Subject: Q: Attribute value templates From: "Michael J. Koehrsen" <koehrsen@xxxxxxxxx> Date: Mon, 22 Feb 1999 13:54:30 -0500 (EST) |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Words immortalised..., Elliotte Rusty Harol | Thread | Re: Q: Attribute value templates, G. Ken Holman |
RE: Computational complexity of XSL, Michael . Kay | Date | Scripting on XSL elements in ie5 af, Fillhart, Dana |
Month |