[xsl] X-Path expressions confusions

Subject: [xsl] X-Path expressions confusions
From: "ashu t" <aashut@xxxxxxxxxxxxxx>
Date: 30 Jul 2002 07:19:37 -0000
Here are some things which i am little confused about.
1.
I have read this at
http://www.w3.org/TR/xslt#section-Applying-Template-Rules

*In the absence of a select attribute, the xsl:apply-templates instruction processes all of the children of the current node, including text nodes.*
Does that mean if we use <xsl:apply-templates select="*"/> instead of <xsl:apply-templates/> both are same except the one will process all child nodes and the other will process all but text child nodes.


2.
And one thing about overriding template rules.
<xsl:template match="node"/>
Does that mean it will do nothing to node and process the child nodes of node or It means it will not process any node which are inside <node> and </node> like
<node>
<node1>......</node1>
<node2>......</node2>
</node>


3.
If we have
<xsl:template match
="text()[preceding-sibling::node()[1][self::input][not(normalize-space())]]
then we read it from left to right so if this has to be read it reads
Template matches text() node then check the first perceding sibling of that node whether it is input or not and white spaces in text node should be preserved. right?


4.
Some times we use "." dot and sometimes "*" astric
Are they not same used for all elements or they are different as in select we use "*" and in count we use
"." like count(.| some key).


ashu

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


Current Thread