xsl-list
[Top] [All Lists]

RE: closing a template inside a table, forbidden?

2003-01-04 07:11:45
Yes.

XSLT documents must be well-formed XML.

What is it supposed to do?

--
<green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760 

-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com]On Behalf Of 
Hubert Holtz
Sent: Saturday, January 04, 2003 2:53 PM
To: XSL-List(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] closing a template inside a table, forbidden?


Hy,

is this forbidden ?

-----CODE-----

<xsl:template match="article">
<table>
...
 
</table>      
      <!-- ************SECT1 PROCESSING CONTENT ************** -->
              
              <table width="610" height="48" cellpadding="0" 
cellspacing="0" border="0" id="sectBackground">
              
              <xsl:apply-templates select="./title[(_at_)lang= $lang]"/>
              <xsl:apply-templates select="sect1[(_at_)lang = $lang or 
not(@lang)]"/>

  </xsl:template>
              
              <xsl:template match="article/sect1[(_at_)lang= $lang or 
not(@lang)]">
               
                                
                                <xsl:apply-templates/>

              </table>

----CODE----

I get the following error:

The element type "table" must be terminated by the matching end-tag "".

description org.apache.cocoon.ProcessingException: Exception in 
creating Transform Handler: org.xml.sax.SAXParseException: The 
element type "table" must be terminated by the matching end-tag "".

And if it is forbidden, why?

Thanks.
Steve


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list