Groups | Blog | Home
all groups > dotnet xml > june 2004 >

dotnet xml : xsl question


Chris Lovett
6/19/2004 12:39:28 AM
<xsl:for-each select="chart/vinyl[4>position()]">

[quoted text, click to view]

Bernie V
6/19/2004 9:21:53 AM
Hi group,

I use this xsl:

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:template match="/">
<html>
<body>
<table class="TekstChart" border="1">
<tr>
<th bgcolor="#f5deb3" align="left">Plaats</th>
<th bgcolor="#f5deb3" align="left">Vorige</th>
<th bgcolor="#f5deb3" align="left">Titel</th>
<th bgcolor="#f5deb3" align="left">Artiest</th>
</tr>
<xsl:for-each select="chart/vinyl">
<tr>
<td bgcolor="#fdf5e6"><xsl:value-of select="plaats"/></td>
<td bgcolor="#fdf5e6"><xsl:value-of select="vorige"/></td>
<td bgcolor="#fdf5e6"><xsl:value-of select="titel"/></td>
<td bgcolor="#fdf5e6"><xsl:value-of select="artiest"/></td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template></xsl:stylesheet>

With thisone I get all the entries in my xml file.
How can I get only tyhe first 3 entries ?

Thx in advance.

grz

Bernie V

--
http://www.djberniev.be

Bernie V
6/19/2004 9:48:29 AM
"Chris Lovett" <chris@!nospam!.net> schreef in bericht
news:10d7rd9pfnne824@corp.supernews.com...
[quoted text, click to view]

thx !! ;-)

grz

Bernie V

AddThis Social Bookmark Button