|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Result Tree Fragment Problem
> Now the problem is How do I get the second "Product" node in > the nodeset? > I tried something like this > $mynodeset/child::*[local-name()='Product']/self::node()[position()=2] > where $mynodeset references the nodeset. > But it does not return anything. > > Am I doing something wrong? > self::node() always returns one node, so [position()=2] will never be true. You want: $mynodeset/Product[2] Sometimes things are easier than they seem. Mike Kay Software AG 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
|

Cart








