[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Navigation using XPath
I wrote: > The position() returns the context position, so in > *[position() = 1] it refers to the context of selecing all > child element nodes, i.e. filters out all nodes whose context > position is not 1., i.e. returns the child element; and meant ... i.e. returns the first child element; Also I wrote > if you > have following::*[1], it selects all the elements that follow > the current node, then filters out all those whose context > position is not 1, i.e. again selecting only the first > element that follows the current node. and meant ... i.e. i.e. selects only the first element that follows the current node. That is *[1] and following::*[1] are by no means synonyms. Cheers, Jarno 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
|