Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

template problems

Status
Not open for further replies.

cxs00u

Programmer
Mar 14, 2003
9
GB
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=&quot;point&quot;>
<li>
<xsl:value-of select=&quot;.&quot;/>
</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=&quot;point[position() = 1]&quot;><br/></xsl:if>

into the template but this does not work .

Can anyone please help

Thank you

Craig
 
I have tried to add the line
<xsl:if test=&quot;point[position() = 1]&quot;><br/></xsl:if>
into the template but this does not work .


What else have you tried? test=&quot;postion() = 1&quot; or
test=&quot;self::postion() = 1&quot;

What else??

-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top