This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Conditional document merge
- From: "Hunsberger, Peter" <Peter dot Hunsberger at stjude dot org>
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 28 May 2002 16:18:07 -0500
- Subject: RE: [xsl] Conditional document merge
- Reply-to: xsl-list at lists dot mulberrytech dot com
> If I could do something like:
>
> select="$doca/$varname[position()+1]"
>
>
>
> that's
>
>
> select="$doca/*[name()=$varname]/following-sibling::*[1]
>
> if all your varname elements are siblings, as I think they are.
Ah, conceptual problem on my end. I actually need:
select="$doca[name()=$varname]/following-sibling::*[1]
at the point I'm doing the test, but that works, many thanks. I kept trying
to find some way to use "following-sibling" as a prefix to the whole thing,
thinking that you don't want to filter to the node matching the name,
because then there isn't a following-sibling any more: of course there is;
it's an orthogonal axis...
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list