|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Limiting a FOR-EACH loop
Thanks Brian and Wes, it did work the way you originally suggested and tested!! My bad. :-( -G -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Martinez, Brian Sent: Wednesday, September 18, 2002 3:10 PM To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx' Subject: RE: Limiting a FOR-EACH loop > From: Wes Kubo [mailto:wkubo@xxxxxxxxxxxxx] > Sent: Wednesday, September 18, 2002 12:54 PM > Subject: RE: Limiting a FOR-EACH loop > I tried it out and it worked...no prob. Have you added the > other necessary > elements?, e.g. > > <xsl:template match="/"> > <xsl:variable name="x" select="'4'"/> > <xsl:for-each select="/search/results/*[position() <= $x]"> > <xsl:copy-of select="."/> > </xsl:for-each> > </xsl:template> > > Wes Sorry to piggy-back . . . I haven't received Gurnam's reply. If my code snippet doesn't work with your XML, Gurnam, then I'll probably need to see a sample of your input. I made some assumptions about it based on your original question. cheers, b. | brian martinez brian.martinez@xxxxxxxx | | senior gui programmer 303.708.7248 | | trip network, inc. fax 303.790.9350 | | 6436 s. racine cir. englewood, co 80111 | | http://www.cheaptickets.com/ http://www.trip.com/ | XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








