xsl-list
[Top] [All Lists]

Re: [xsl] Something like position()

2007-03-28 09:55:40

Above, I'd like only the nodes which are after @name="city" and before
@name="favFood".

The xpath is pretty much the same as the english (so ling as you
pronounce "[" as "which")

select="field[preceding-sibling::field/@name='city'
                and
              following-sibling::field/@name='favFood']"

or if you prefer

select="field[(_at_)name='city']/following-sibling::field[following-sibling::field/@name='favFood']"


David


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