This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Result Tree Fragment Problem


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]