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]
Other format: [Raw text]

RE: Conditional document merge


> 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


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