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

Ugh! accessing current value in <A name= in template

Subject: Ugh! accessing current value in <A name= in template
From: "Glenn R. Kronschnabl" <grk@xxxxxxxxxxxxxxxx>
Date: Fri, 30 Oct 1998 12:24:05 -0600
I'm just not getting it:

I want to use the value of the tag as part of a <A name=
but I can't figure it out.  I tried this (and variations
but nothing works).

<xsl:template match="item/id">
  <TD><A name="{id}">&#160;</A><xsl:process-children/></TD>

To say it another way,  I have a xml file that looks something like:


and I am building a table and I want the output id column to look like:

  <TD><A name="id1">&#160;</A>1</TD>
                 ^            ^
                 |            |   both are the tag value

How?  I feel like this should be simple...

Glenn R. Kronschnabl
Applied Research Laboratories        | grk@xxxxxxxxxxxxxxxx (PGP/MIME ok)
The University of Texas at Austin    | http://www.arlut.utexas.edu/~grk
PO Box 8029, Austin, TX 78713-8029   | (Ph) 512.835.3642 (FAX) 512.835.3808
10,000 Burnet Road, Austin, TX 78758 | ... but an Aggie at heart!

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


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