[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: empty apply-templates?
> 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
|
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
|