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

Q: Attribute value templates

Subject: Q: Attribute value templates
From: "Michael J. Koehrsen" <koehrsen@xxxxxxxxx>
Date: Mon, 22 Feb 1999 13:54:30 -0500 (EST)
k hrsen
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

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.