xsl-list
[Top] [All Lists]

RE: [xsl] XPath location problem

2006-08-30 05:46:05

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="*[(_at_)language='English'][2] |
*[(_at_)language='English'][2]/following-sibling::*"/>

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

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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>