[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: Ugh! accessing current value in
RE: Ugh! accessing current value in
Subject: RE: Ugh! accessing current value in <A name= in template
From: Ed Nixon <ed.nixon@xxxxxxxxxxxxxxxxx>
Date: Fri, 30 Oct 1998 14:39:29 -0500
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}"> </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"> </A>1</TD>
^ ^
| | both are the tag value
</TR>
How? I feel like this should be simple...
Cheers,
Glenn
--------------------
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
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread
- Ugh! accessing current value in <A name= in template
- Glenn R. Kronschnabl - Fri, 30 Oct 1998 12:24:05 -0600
- <Possible follow-ups>
- Ed Nixon - Fri, 30 Oct 1998 14:39:29 -0500 <=
- Glenn R. Kronschnabl - Fri, 30 Oct 1998 14:08:23 -0600
- Andrew Bunner - Fri, 30 Oct 1998 13:04:31 -0800
<- Previous Index Next ->
Ugh! accessing current value in <A, Glenn R. Kronschnabl
Thread
Re: Ugh! accessing current value in, Glenn R. Kronschnabl
Q: Approaches to generating a table, Denis_Haskin
Date
RE: Approaches to generating a tabl, Ed Nixon
Month
Keywords
Subject: RE: Ugh! accessing current value in <A name= in template From: Ed Nixon <ed.nixon@xxxxxxxxxxxxxxxxx> Date: Fri, 30 Oct 1998 14:39:29 -0500 |
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Ugh! accessing current value in <A, Glenn R. Kronschnabl | Thread | Re: Ugh! accessing current value in, Glenn R. Kronschnabl |
Q: Approaches to generating a table, Denis_Haskin | Date | RE: Approaches to generating a tabl, Ed Nixon |
Month |
Keywords