|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: xpath - how to return all nodes but the node match
Hello Robert,
I don't think that there are significant performance differences. Your <xsl:copy-of select="@*"/> shell be a bit faster than my <xsl:apply-templates select="@*"/>, because the template for the attributes must not be searched. I use the apply-templates, because I can easily add a new template e.g. for a special attribute. And <xsl:apply-templates/> is the same as <xsl:apply-templates select="node()"/>. I use normally the "special" version with "text()|*", because I don't want to copy comments or the xsl-stylesheet processing-instruction. The last difference is the <xsl:if> and my predicate at <xsl:apply-templates>. It's maybe the same as with the attributes. Normally I would use a simple apply-templates and again a special template: <xsl:template match="*[@id = $delete_id]"/> But this is not possible with variables. Joerg Robert Koberg schrieb: very cool Joerg! 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








