开发者

Ignoring the first element of xml node collection when looping with xslt

开发者 https://www.devze.com 2022-12-15 14:38 出处:网络
i am looping through an xml doucment with xslt for each i need to ignore the first element and co开发者_开发百科nsider the rest when looping.

i am looping through an xml doucment with xslt for each i need to ignore the first element and co开发者_开发百科nsider the rest when looping.

could somebody help me on this. i am new to xslt.

thanking you. Ramana kumar.


<xsl:for-each select="...your xpath...">
    <xsl:if test="position()!=1"> <!-- ignore first node -->
        ..code here...
    </xsl:if>
</xsl:for-each>
0

精彩评论

暂无评论...
验证码 换一张
取 消