cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From charles longeau <clong...@etu.utc.fr>
Subject frames & cocoon
Date Mon, 11 Dec 2000 16:41:16 GMT
Hello,

I'm using Cocoon 1.8, with Apache/1.3.14 (Unix) ApacheJServ/1.1.2
and I want to display some frames ...

The problem is that one of xml file is in fact a html file which define
some frameset. At this point there're 2 solutions :

1) I can tell to cocoon to NOT transform the html file, but I don't know
how to do that, and I don't know if is it possible. So I can't test this
solution. I've just test the other one :

2) I put these lines before the <HTML> root element :
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="id.xsl"?>
<?cocoon-process type="xslt"?>
<?cocoon-format type="text/html"?>
<HTML>
<HEAD>
[... the folowing of this file is some frameset/frame tag ... ]


Here's the content of the id.xsl file :
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="*|@*|text()">
   <xsl:copy>
   <xsl:apply-templates select="*|@*|text()"/>
   </xsl:copy>
</xsl:template>

</xsl:stylesheet>

In order to output the html file without any transformation.

But, the only result I had, was :

Error found handling the request.

      org.xml.sax.SAXParseException: The markup in the document preceding
the root element must be well-formed.
              at
org.apache.cocoon.parser.AbstractParser.fatalError(AbstractParser.java:105)
              at
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1037)
              at
org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocumentScanner.java:625)
              at
org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.dispatch(XMLDocumentScanner.java:804)
              at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:380)
              at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:900)
              at
org.apache.cocoon.parser.XercesParser.parse(XercesParser.java:84)
              at
org.apache.cocoon.parser.AbstractParser.parse(AbstractParser.java:83)
              at
org.apache.cocoon.producer.ProducerFromFile.getDocument(ProducerFromFile.java:78)
              at org.apache.cocoon.Engine.handle(Engine.java:340)
              at org.apache.cocoon.Cocoon.service(Cocoon.java:167)
              at
javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
              at
org.apache.jserv.JServConnection.processRequest(JServConnection.java:317)
              at
org.apache.jserv.JServConnection.run(JServConnection.java:188)
              at java.lang.Thread.run(Thread.java:484)



Of, course you can told me, rename your html file in order that Cocoon
will not process it, but I can't because all my xml file are created by a
CGI.

Any ideas, or suggestion about that ??


Mime
View raw message