Hi,
I have a series of XML commands such as :
<point>a</point>
<point>b</point>
<point>c</point>
In my XSLT I then have the template :
<xsl:template match="point">
<li>
<xsl:value-of select="."/>
</li>
</xsl:template>
However the first time I see a point I want to add a break line command , I have tried to add the line
<xsl:if test="point[position() = 1]"><br/></xsl:if>
into the template but this does not work .
Can anyone please help
Thank you
Craig
I have a series of XML commands such as :
<point>a</point>
<point>b</point>
<point>c</point>
In my XSLT I then have the template :
<xsl:template match="point">
<li>
<xsl:value-of select="."/>
</li>
</xsl:template>
However the first time I see a point I want to add a break line command , I have tried to add the line
<xsl:if test="point[position() = 1]"><br/></xsl:if>
into the template but this does not work .
Can anyone please help
Thank you
Craig