|
Subject: problems with <xsl:for-each> From: Minita Jha <jha@xxxxxxxxxxx> Date: Wed, 4 Aug 1999 14:52:26 -0400 (EDT) |
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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| example of how to use document(), Youngmee Kim | Thread | Re: problems with <xsl:for-each>, Chris Maden |
| example of how to use document(), Youngmee Kim | Date | Re: problems with <xsl:for-each>, Chris Maden |
| Month |