Subject: Re: [xsl] Following-sibling - question From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Wed, 6 Jan 2016 14:39:28 -0000 |
Hello:
I am trying to write some code to find the next X number of following sibling elements and I am a little stuck.
My input XML file is a table:
<table>
<tbody> <row>
<entry>1</entry> </entry>2</entry>
</row>
<row> <entry>3</entry> </entry>2</entry> </row>
<row> <entry>4</entry> </entry>2</entry> </row>
<row> <entry>5</entry> </entry>2</entry> </entry>2</entry> </row>
<row> <entry>6</entry> </row>
</tbody>
</table>
My desired output is:
<table>
<tbody> <row>
<entry>1</entry> </entry>2</entry>
</row>
<row> <entry>want entry here - 1.1</entry> <entry>3</entry> </entry>2</entry> </row>
<row> <entry>4</entry> <entry>want an entry here - 3.1 </entry> </entry>7</entry> </row>
<row> <entry>5</entry> </entry>2</entry> </entry>2</entry> <entry>want an entry here - 7.1</entry> </row>
<row> <entry>6</entry> </row>
</tbody>
</table>
So, I want to write logic to say that for the next n where n=3 in this example - rows, add an entry element
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Following-sibling - question, a kusa akusa8@xxxxxx | Thread | Re: [xsl] Following-sibling - quest, David Carlisle d.p.c |
[xsl] Following-sibling - question, a kusa akusa8@xxxxxx | Date | Re: [xsl] Following-sibling - quest, David Carlisle d.p.c |
Month |