xsl-list
[Top] [All Lists]

Re: [xsl] counting with position()

2010-01-05 16:18:52
> 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>
--~--