RE: [xsl] not getting expected matches

Subject: RE: [xsl] not getting expected matches
From: <Jarno.Elovirta@xxxxxxxxx>
Date: Thu, 16 Sep 2004 17:48:22 +0300
Hi,

> okay, the expression I'm using is:
>
> <xsl:template match="//*[starts-with(name(), 'SEG')]/NAME">
> 	<xsl:value-of select="."/><xsl:text>*</xsl:text>
> </xsl:template>
>
> I'm thinking that this should return me the text of the
> 'NAME' child of all of the elements that start with 'SEG'
> correct? but I have this as my XML...

No, you don't have an expression to select anything, but rather you have a
match pattern that matches a NAME element whose parent element's name starts
with "SEG".

Cheers,

Jarno

Current Thread