J
Jongware
Hi all,
Given an xml file with a linear set
<a>1</a>
<b>2</b>
<b>3</b>
<b>4</b>
<a>5</a>
<b>6</b>
<b>7</b>
how do I get separate groups to work on of the first set of tags from
<a>(1) to <b>(4) and the second set from <a>(5) to <b>7?
The number of items may vary from group to group, as does the total
number of groups (determined by the number of <a> tags). Purpose is to
be able to sort the sub-items *per group* -- in essence, you can
consider the <a> elements the same as the <b> ones, they act as
separators for each sub-group.
XSLT2.0 is no problem, I'm using Saxon 8.0 (and so far blissfully
unaware of any limitations it may have with 2.0).
TIA!
[Jw]
Given an xml file with a linear set
<a>1</a>
<b>2</b>
<b>3</b>
<b>4</b>
<a>5</a>
<b>6</b>
<b>7</b>
how do I get separate groups to work on of the first set of tags from
<a>(1) to <b>(4) and the second set from <a>(5) to <b>7?
The number of items may vary from group to group, as does the total
number of groups (determined by the number of <a> tags). Purpose is to
be able to sort the sub-items *per group* -- in essence, you can
consider the <a> elements the same as the <b> ones, they act as
separators for each sub-group.
XSLT2.0 is no problem, I'm using Saxon 8.0 (and so far blissfully
unaware of any limitations it may have with 2.0).
TIA!
[Jw]