开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜