xsl-list
[Top] [All Lists]

Re: [xsl] counting with position()

2010-01-05 16:31:20
My output must look like this:

<step1>
                        <text>
                                <para/>
                        </text>
<product>sample prod1</product>
<product>sample prod2</product>

                        <step2 id="idlistitem_2_30">
                                <text>
                                        <para>Sample</para>
                                </text>
<product>sample prod11</product>
<product>sample prod12</product>
<product>sample prod13</product>
                                <step3>
                                        <text>
                                                <para>Sample</para>
                                        </text>
<product>sample prod14</product>
                                </step3>
                                <step3>
                                        <text>
                                                <para>Sample</para>
                                        </text>
                                </step3>
                        </step2>
                        <step2 id="idlistitem_2_43">
                                <text>
                                        <para/>
                                </text>
<product>sample prod15</product>
<product>sample prod16</product>
                                <step3>
                                        <text>
                                                <para>Sample</para>
                                        </text>
                                </step3>
                        </step2>
                </step1>



On Tue, Jan 5, 2010 at 4:18 PM, Imsieke, Gerrit, le-tex
<gerrit(_dot_)imsieke(_at_)le-tex(_dot_)de> wrote:
I only want to match sample prod1 and sample prod2 after <item> at level1.

Please sketch the desired output to this input (as XML, not prose).

a kusa schrieb:

So my input can look like this:

<level1>
<item>Sample</item>
<product>sample prod1</product>
<product>sample prod2</product>
       <level2>
<item>Sample</item>
<product>sample prod11</product>
<product>sample prod12</product>
<product>sample prod13</product>
             <level3>
                <item>Sample</item>
<product>sample prod14</product>

                <item>Sample</item>
              </level3>
<item>Sample</item>
<product>sample prod15</product>
<product>sample prod16</product>
<item>Sample</item>
<level3>
<item>Sample</item>
</level3>
<product>sample prod17</product>

        </level2>
<level1>



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--