[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: node() function

Subject: Re: node() function
From: "Abel Braaksma (Exselt) abel@xxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 24 Jun 2014 08:55:11 -0000
Re:  node() function
Dimitre Novatchev dnovatchev@xxxxxxxxx <mailto:xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
dinsdag 24 juni 2014 5:06


A shorter "delete-all" template is, of course this:

<xsl:template match="node()"/>

or even shorter:

<xsl:template match="/"/>

With one big exception: both templates do not do apply-templates, meaning that it is not possible to "override" with another template, such as match="text()", to catch a child element or text node. Writing it this way you should only do if you do not plan on processing the children in any way, i.e., if you want to delete everything, including the children of a node.


The course that Dimitre showed is a very good one, with a good pace and clear examples, and the first X or so minutes is free, so you can try first and buy later.

Cheers,
Abel

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.