[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] problems with <xsl:for-each>
Hi, While converting xml to html using lotusxsl or xt I get the following error: "</xsl:template>" expected. "</xsl:template>" expected. at com.ibm.xml.framework.XMLParser.handleError(Compiled Code) at com.ibm.xml.framework.XMLParser.error1(Compiled Code) at com.ibm.xml.internal.DefaultScanner.scanContent(Compiled Code) at com.ibm.xml.internal.DefaultScanner.scanDocument(Compiled Code) at com.ibm.xml.framework.XMLParser.parse(Compiled Code) at com.ibm.xml.parsers.NonValidatingDOMParser.parse(Compiled Code) Xml used: <?xml version="1.0"?> <study> <design>Multicenter Study</design> <design>design 2</design> <design>design 3</design> <design>design 4</design> </study> Xsl used: <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/XSL/Transform/1.0" xmlns="http://www.w3.org/TR/REC-html40" result-ns=""> <xsl:template match="study"> <html> <body> <xsl:apply-templates select="design"/> </body> </html> </xsl:template> <xsl:template match="design"> <xsl:for-each select="design"/> <xsl:value-of select="."/> </xsl:for-each> </xsl:template> </xsl:stylesheet> Any help would be appreciated. Thanks. Minita 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
|