RE: [xsl] Result Tree Fragment Problem

Subject: RE: [xsl] Result Tree Fragment Problem
From: Kumar.Shailendra@xxxxxxxxxxxxxxxxx
Date: Mon, 2 Jul 2001 21:32:32 -0400 (EDT)
Thanks a lot Mike for the response.

Sometimes I find the namespace confusing.I would be thankful if 
someone suggest me an article to help understand the namespace concept
better.

Regards,
Shailendra

On Mon, 2 Jul
2001, Michael Kay wrote:

> > 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
> 
> 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread