[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Trying to figure out the child::item[position()=1]
> Your path expression: > menuItems[child::menuItem[position()=1]/pageID = $pageID] > can be simplified to > menuItems[menuItem[1]/pageID = $pageID] > > to be a bit more idiomatic. Is being more idiomatic a good or bad thing? ;o) > When you use the path expression in an xsl:if instruction, > the node-set is converted to a boolean: true if there is at > least one node, otherwise false. > > When you use the path expression in an xsl:value-of > instruction, the node-set is converted to a string > > Hope that makes it clearer. It makes perfect sense. Thanks, Michael! -Darrel
|
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
|