xsl-list
[Top] [All Lists]

RE: newbie question about strings and XPath expressions

2003-08-19 21:32:56
Hi,

Hello all, I'm new to XPath and need to find a text node in 
an xml document with a 
position higher than 6 and that also starts with 1 (it's an 
enumeration). XMLSpy tells 
me this expression is not valid, why?
<xsl:apply-templates select="text()[position()>=6] and 
[starts-with(string(text
()),'1']"/>

<xsl:apply-templates select="text()[position()>6 and starts-with(.,'1')]"/>

Cheers,

Jarno - VNV Nation: Honour 2003

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