Oxygen XML Editor
 
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] XPath location problem


Subject: RE: [xsl] XPath location problem
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 30 Aug 2006 13:45:40 +0100

> I want to perform this operation: If there is more than one 
> "name language='English'" in "species", then create a 
> temporary node set with the "name" elements following and 
> including the second "language='English'". 

<xsl:variable name="cry-wolf" 
  select="*[@language='English'][2] |
*[@language='English'][2]/following-sibling::*"/>

But I expect you'll change the requirement to make it more general...

Michael Kay
http://www.saxonica.com/


Current Thread
 
© 2002-2008 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy
This website was created & generated with <oXygen/> XML Editor