Re: template never matches
I'm having trouble matching a named element vs using node(). Code below. Any bright ideas?
Here you process the child nodes of the document node with a matching template in mode "test". The only child node is the "html" element so for that element the template below is applied, it simply outputs the node with xsl:sequence but does not process any child nodes so the "head" element is never used for further processing.
<xsl:template match="node() | @*" mode="test"> <!-- always matched --> <xsl:sequence select="." /> </xsl:template>
To fix that you need apply-templates but I am not really sure what you want to achieve so for further help you might want to show the output you want to create from your input sample.
Martin Honnen http://msmvps.com/blogs/martin_honnen/
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