ASP Error: 70
Description: Permission denied
Source: Microsoft VBScript runtime error
|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: for-each question
The problem is your template matches each book element.
this is equivalent to a pseudo code for each book { The books are: Book-Name } which will produce "The Books are" Thrice( in your case). You have to take the "The books are" out of the loop. the following for-loop would help you ( this xsl produces a HTML result ) <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output omit-xml-declaration="yes" method="html"/> <xsl:template match="test"> The Books are:<hr/> <xsl:for-each select="book"> <xsl:value-of select="."/><br/> </xsl:for-each> </xsl:template> </xsl:stylesheet> This would give a result The Books are: ______________ ABC123 ABC456 ABC789 Hope this helps Vasu From: Holmberg Rick-ra0119 <Rick.Holmberg@xxxxxxxxxxxx> Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: for-each question Date: Mon, 12 Aug 2002 16:56:44 -0700 _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com 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








