[Home] [By Thread] [By Date] [Recent Entries]
Hello,
I have an xml file that looks like this: <top> <a>123</a> <b>456</b> <c>789</c> </top>
That is, the elements a,b,c all have the type my_type but have different element names. I want an xslt stylesheet that has a single template for all elements of type my_type. Something like: <xsl:template match="top"> <xsl:apply-templates/> </xsl:template> <xsl:template match="*[type()=my_type]">
<xsl:value-of select="."/>
</xsl:template>Only there is no type() function in XPath.... Is there any other way I could do this? Best Regards, David Belius
|

Cart



