K
kcwolle
Hello,
I have an XSL stylesheet problem.
I want to group neighboring elements by a surrounding hierarchical
element, for example all neighboring div Elements with attribute class
equals 1
Source:
<p>text</p>
<p>text</p>
<div class="1">text1</div>
<div class="1">text2</div>
<p>text</p>
<p>text</p>
<div class="1">text1</div>
<div class="1">text2</div>
<div class="1">text3</div>
<p>text</p>
Desired Output:
<p>text</p>
<p>text</p>
<div class="1">
<p>text1</p>
<p>text2</p>
</div>
<p>text</p>
<p>text</p>
<div class="1">
<p>text1</p>
<p>text2</p>
<p>text3</p>
</div>
<p>text</p>
Can anybody help me to solve this problem?
Yours
Wolfgang
I have an XSL stylesheet problem.
I want to group neighboring elements by a surrounding hierarchical
element, for example all neighboring div Elements with attribute class
equals 1
Source:
<p>text</p>
<p>text</p>
<div class="1">text1</div>
<div class="1">text2</div>
<p>text</p>
<p>text</p>
<div class="1">text1</div>
<div class="1">text2</div>
<div class="1">text3</div>
<p>text</p>
Desired Output:
<p>text</p>
<p>text</p>
<div class="1">
<p>text1</p>
<p>text2</p>
</div>
<p>text</p>
<p>text</p>
<div class="1">
<p>text1</p>
<p>text2</p>
<p>text3</p>
</div>
<p>text</p>
Can anybody help me to solve this problem?
Yours
Wolfgang