This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: selecting a node without its children


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]