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

X-Path expressions confusions

Subject: X-Path expressions confusions
From: "ashu t" <aashut@xxxxxxxxxxxxxx>
Date: 30 Jul 2002 07:19:37 -0000
mean x path
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

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.