Subject: RE: empty apply-templates? From: Mike Brown <mbrown@xxxxxxxxxxxxx> Date: Sun, 12 Dec 1999 00:06:59 -0700 |
> 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
faq: empty apply-templates?, Mark D. Anderson | Thread | document() with Cocoon 1.5, Jeremy Quinn |
faq: empty apply-templates?, Mark D. Anderson | Date | Re: FOP 0.12, James Tauber |
Month |