Exclude first child with XSL-T

Posted by zneak on Stack Overflow See other posts from Stack Overflow or by zneak
Published on 2010-04-04T15:40:08Z Indexed on 2010/04/04 15:43 UTC
Read the original article Hit count: 414

Filed under:
|
|

Hello,

What I'm trying to do is fairly simple, but I can't find the way to. I just want to iterate over the children of a node excluding the first child.

For instance, in this XML snippet, I would want all the <bar> elements, except the first one:

<foo>
    <Bar>Example</Bar>
    <Bar>This is an example</Bar>
    <Bar>Another example</Bar>
    <Bar>Bar</Bar>
</foo>

There is no common attribute by which I can filter (like an id tag or something similar).

Any suggestions?

© Stack Overflow or respective owner

Related posts about xslt

Related posts about xpath