xsl-list
[Top] [All Lists]

RE: not getting expected matches

2004-09-16 07:48:22
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