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

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

Subject: Re: Ugh! accessing current value in <A name= in template
From: "Glenn R. Kronschnabl" <grk@xxxxxxxxxxxxxxxx>
Date: Fri, 30 Oct 1998 14:08:23 -0600
accessing item template values
Actually, I just got the following to work (using jclark's XT).  I don't 
know if this is the same problem that you guys were having...but heh, it 
works for me! ;-)

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

FWIW,

Glenn

In message <01BE0413.1B19D4C0.ed.nixon@xxxxxxxxxxxxxxxxx> you write:
>Good luck. I posted a similar request earlier this week, i.e., getting 
the
>element type value for the current node and copying it into an attribute 
value
 
>for the result. I didn't get a single nibble. Reading around and breaking 
my
>brain on the specification some more, I don't think this is possible at 
the
>moment. It seems to be possible to get an attribute value and place it in 
a new
>output side attribute value but not the tag name/element type. I'd love 
to be
>proven wrong.
>
>	...edN
>
>-----Original Message-----
>From:	Glenn R. Kronschnabl [SMTP:grk@xxxxxxxxxxxxxxxx]
>Sent:	Friday, October 30, 1998 1:24 PM
>To:	xsl-list@xxxxxxxxxxxxxxxx
>Subject:	Ugh!  accessing current value in <A name= in template
>
>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>
></xsl:template>
>
>To say it another way,  I have a xml file that looks something like:
>
><item>
>  <id>1</id>
>  etc.
>
>and I am building a table and I want the output id column to look like:
>
><TR>
>  <TD><A name="id1">&#160;</A>1</TD>
>                 ^            ^
>                 |            |   both are the tag value
></TR>
>
>How?  I feel like this should be simple...
>


 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.