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!

Can you return on the first three r

Status
Not open for further replies.

transparent

Programmer
Sep 15, 2001
333
GB
Can you return on the first three results from an XML file with XSL

eg:
<name>a</name>
<name>b</name>
<name>c</name>
<name>d</name>
<name>e</name>

with output:

abc

Cheers
 
<xsl:for-each select=&quot;name[position() & lt;= 4]&quot;>
<xsl:value-of select=&quot;.&quot;/>
</xsl:for-each>

Of course the & lt; needs to be coded without the space.

Good luck!

Jordi Reineman
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top