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

RE: empty apply-templates?

Subject: RE: empty apply-templates?
From: Mike Brown <mbrown@xxxxxxxxxxxxx>
Date: Sun, 12 Dec 1999 00:06:59 -0700
xsl apply templates empty
> the spec says:
> "In the absence of a select attribute, the 
> xsl:apply-templates instruction processes all of the children 
> of the current node, including text nodes."
> 
> followed by some fine print concerning white space.
> 
> so does that mean that these are the same:
> <xsl:apply-templates/>
> <xsl:apply-templates 
> select="*|comment()|text()|processing-instruction()"/>

http://www.w3.org/TR/xpath#data-model says "The children of an element node
are the element nodes, comment nodes, processing instruction nodes and text
nodes for its content" ... so, yes, you got it.

> that is, the ones omitted are: "*@|.|/"

Excluded are attributes and namespace nodes, both of which are types of node
that are merely associated with element nodes, not really being children of
them. And of course the root node is excluded.

So that would be: "/|@*|namespace::*"
(@ is an abbreviation for attribute:: ... you got it reversed in your
example)


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.