René Nyffenegger's collection of things on the web | |
René Nyffenegger on Oracle - Most wanted - Feedback
- Follow @renenyffenegger
|
XSL: matching element names with substring | ||
The XML file:
The XSL file:
<xsl:template match="*[substring(name(),1,4)='elem'] "> <li> <xsl:value-of select="text()"> </xsl:value-of> </li> <h4> <xsl:value-of select="p"> </xsl:value-of> </h4> </xsl:template>
The output (whitespaces manually modified):
|