cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kazi the P i R @ t {-" <>
Subject xsl transfromation.
Date Tue, 31 Jul 2001 04:23:38 GMT
System: Win 98
Servlet Engine: Tomcat (standalone) 3.2.1
XML Framework: Cocoon 1.8.2
I was just trying out an xsl transformaiton of a static xml page i
created... but then when i called the page from the browser the following
error comes up -

'org.apache.cocoon.processor.ProcessorException: Could not associate
stylesheet to document:  error reading
org.xml.sax.SAXParseException: The element type "xsl:template" must be
terminated by the matching end-tag "</xsl:template>".'

I just checked the <xsl:template.. issue it mentions.. and it appears that
all the tags were closed properly.

The XSL file -

<?xml version="1.0" ?>
<xsl:stylesheet xmlns:xsl=""
<title>A Guide to the Search Utility</title>
<xsl:template match="guide">
<table width="100%" border="0">
<xsl:apply-template select="buttons"/>
<xsl:template match="guide">
<table width="100%" border="0">
<xsl:apply-template select="how-to"/>
<xsl:template match="guide">
<table width="60%" border="0" align="center" valign="middle">
<xsl:apply-template select="contact"/>
<xsl:template match="buttons">
<xsl:for-each select="buttons[*]"><p><img border="0" align="left"
<xsl:attribute name="src"><xsl:value-of select="image"/></xsl:attribute>
<xsl:vlaue-of select="text"/></p>
<xsl:template match="how-to">
<xsl:apply-template select="description"/>
<xsl:template match="description">
<xsl:for-each select=".">
<xsl:value-of select="."/>
<xsl:apply-template select="sub-point"/>
<xsl:template match="subpoint">
<xsl:value-of select="."/>
<xsl:template match="contact">
<p><xsl:text>form more information contact the person below:</xsl:text></p>
<b><xsl:value-of select="name"/></b>
<b><xsl:value-of select="email"/></b>

My DTD -

<!ELEMENT guide (buttons,how-to,contact)>
<!ELEMENT buttons (search,view,sort,warning,respond)>
<!ELEMENT how-to (description+)>
<!ELEMENT contact (name,email)>
<!ELEMENT search (text, image)>
<!ELEMENT view (text,image)>
<!ELEMENT sort (text,image)>
<!ELEMENT warning (text,image)>
<!ELEMENT respond (text,image)>
<!ELEMENT image (#PCDATA)>
<!ELEMENT description (#PCDATA|sub-point)*>
<!ELEMENT sub-point (#PCDATA)>
<!ELEMENT email (#PCDATA)>

Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message