RE: selecting a node without its children

Subject: RE: selecting a node without its children
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Thu, 30 Mar 2000 19:06:34 +0100
> 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:value-of select="AUTHOR/@id"/>

Mike Kay


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


Current Thread