This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: selecting a node without its children
- To: xsl-list at mulberrytech dot com
- Subject: RE: selecting a node without its children
- From: "Paal Eriksen" <pserik at hotmail dot com>
- Date: Fri, 31 Mar 2000 08:55:56 CEST
- Reply-To: xsl-list at mulberrytech dot com
use <xsl:value-of select="./@id"> if your parser has current position at
STORY, otherwise use <xsl:value-of select="STORY/@id">
Paal Steven
>From: "Ben Sorek" <bsorek@surfnotes.com>
>Reply-To: xsl-list@mulberrytech.com
>To: <xsl-list@mulberrytech.com>
>Subject: RE: selecting a node without its children
>Date: Thu, 30 Mar 2000 19:38:33 +0200
>
>This is my XML
>
> <STORY>
> <AUTHOR id="xsw">Stephen King</AUTHOR>
> </STORY>
>
>If I have a template
>
><xsl:template match="STORY">
> ....
></xsl:template>
>
>how can i get the id attribute of author inside that template?
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list