[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Some basic things
ashu t wrote:
Here are some things which i am little confused about. (1) <xsl:apply-templates/> and <xsl:apply-templates select="*"/> are they not same? No. I have read about this on this linkshttp://www.w3.org/TR/xslt#strip No, it won't. (2) Wrong. (2)It will leave all the nodes unprocessed between <some node> and </some node> and move to next node to process Correct. (3) From left to right. Try to see a predicate as filter: only these text nodes [which have a preceding-sibling node[which is the directly preceding-sibling node][which has the name 'input'][which has no non-whitespace text]] May be these are very basic things and should be known to every one but i am not getting it correctly while reading material on w3 site.
. means the context node. It's the same as self::node(). * means the child elements. It's the same as child::*. > like > count( . | key('somename', @name)[1] ) = 1 Muenchian Grouping: you are testing whether . (the context node or currently tested node) is the same node as this one returned by key('somename', @name)[1]. > and > select=" *|@ *|@* means child elements and attributes. It's the same as child::*|attribute::*. Have a look at http://www.w3.org/TR/xpath#location-paths and http://www.w3.org/TR/xpath#path-abbrev Does this help a bit? Regards, Joerg 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
|