This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

first of type element position


hello,

i have this XML:

<RP.TOC>
<TI.TOC>...</TI.TOC>
<TOC.SECT>aaa....</TOC.SECT>
<TOC.SECT>bbb....</TOC.SECT>
<TOC.SECT>ccc....</TOC.SECT>
<TOC.SECT>ddd....</TOC.SECT>
<TOC.SECT>eee....</TOC.SECT>
</RP.TOC>

and this template:

<xsl:template select="TOC.SECT">
<xsl:if test="the TOC.SECT selected is not the  first TOC.SECT">
....
</xsl:if>
......
</xsl:template>

<xsl:if test="position()!=1"> doesn't work because, i think, the first element <TOC.SECT> is in position()=2.
and <TI.TOC> in position()=1.

could you help writing this test properly ?

thanks
Sébastien 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]