I have the following XML node:
<parent>
<child1name>value</child1name>
<child2name>value</child2name>
<child3name>value</child3name>
<child4name>value</child4name>
<others />
</parent>
I want to loop through each node with name formatted as text[digit]text. So I did:
<xsl:for-each select="parent/child*name">
Value <xsl:value-of select="position()" />: <xsl:value-of select="." />
</xsl:for-each>
But it didn't work.
What would be the correct pattern? "child\d{1}name" maybe?