|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: changing node names in XML
Counting children is inefficient; just check for the presence of any child node.
Also, if there are no children, there will be no nodes against which to apply-templates, no?
<xsl:template match="employee[count(child::*)=0]"> <leaf> <xsl:copy-of select="attribute::*"/> <xsl:apply-templates select="*"/> </leaf> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|

Cart








