[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] counting with position()


Subject: Re: [xsl] counting with position()
From: "Imsieke, Gerrit, le-tex" <gerrit.imsieke@xxxxxxxxx>
Date: Tue, 05 Jan 2010 23:18:09 +0100

> 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>


Current Thread
Keywords
xml