[thelist] XPATH woes
John.Bedard at ngc.com
John.Bedard at ngc.com
Tue May 11 10:28:49 CDT 2004
Don't think you can do this with a single statement. However, this should do it...
<xsl:for-each select="/bobtypes/bob">
<xsl:value-of select="@id"/>
</xsl:for-each>
Also here is a decent quick reference for XPATH (among others) at this site, downloadable in PDF format: http://www.deepx.com/resources/quickref/
-----Original Message-----
From: Chris Hayes [mailto:chris at londonweb.net]
Sent: Tuesday, May 11, 2004 8:10 AM
To: thelist at lists.evolt.org
Subject: [thelist] XPATH woes
Hi
Looking for plain English help for this issue. I want to return a list of
all the bob id's in the xml below.
<bobtypes>
<bob id="1"></bob>
<bob id="2"></bob>
<bob id="3"></bob>
</bobtypes>
to return "1,2,3"
Is there any XPATH to do this? Do you have any really good XPATH links to
teach a novice.
Ta
More information about the thelist
mailing list