[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
hi group,
I have question which must have been on this list before, but I can't find the answer.
In my style sheet I make a selection of the elements and pass that to a template. In that template I can reference this sequence as $seq.
Selecting from $seq appears to be not that easy, because I can't use axes. Axes have a document scope whereas I want to do something within the sequence.
If for example $seq contains elements a, b, c, b, e:
As $seq[self::b][1]/preceding-sibling::* is not good because it possibly selects element outside the sequence, but are preceding-siblings in the document.
Thanks in advance,
Ruud
[xsl] selecting from sequences
Subject: [xsl] selecting from sequences From: Ruud Grosmann <r.grosmann@xxxxxx> Date: Thu, 18 Dec 2008 16:28:58 +0100 |
hi group,
I have question which must have been on this list before, but I can't find the answer.
In my style sheet I make a selection of the elements and pass that to a template. In that template I can reference this sequence as $seq.
Selecting from $seq appears to be not that easy, because I can't use axes. Axes have a document scope whereas I want to do something within the sequence.
If for example $seq contains elements a, b, c, b, e:
how do I select - everything before the first b - everything from the first b to the end - the position of the first b?
As $seq[self::b][1]/preceding-sibling::* is not good because it possibly selects element outside the sequence, but are preceding-siblings in the document.
Thanks in advance,
Ruud
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] strange error in external, Fred Christian | Thread | Re: [xsl] selecting from sequences, David Carlisle |
Re: [xsl] strange error in external, David Carlisle | Date | Re: [xsl] selecting from sequences, David Carlisle |
Month |