[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: picking and choosing


Subject: RE: picking and choosing
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Wed, 20 Sep 2000 13:18:20 +0100

> I need to know how to write an xsl file that can take only 5 
> items from an xml file that 30 items in it...

<stories xsl:version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:copy-of select="/stories/story[position() &lt; 6]"/>
</stories>

This is the complete stylesheet.

Mike Kay (shouting from the mountain tops)


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



Current Thread
Keywords