[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Matching elements based on element type:
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|