cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Damiano Pezzotti" <>
Subject Multiple xsl for a xml file
Date Thu, 01 Jun 2000 07:56:56 GMT
I want to associate dinamically an xsl stylesheet to an xml file.
In the Cocoon Documentation I found an example to do it.
I wrote this xml :

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<xsp:processing-instruction name="xml-stylesheet">
<?cocoon-process type="xsp"?>
<?cocoon-process type="xslt"?>

<!DOCTYPE novel [
 <!ENTITY mdash "--">
 <!ENTITY ldquo "``">
 <!ENTITY rdquo "''">
 <!ENTITY lsquo "`">
 <!ENTITY rsquo "'">
 <!ENTITY hellip "...">



  <title>The Heart of Darkness</title>
  <author>Joseph Conrad</author>

In this mode I want to pass the xsl stylesheet as a parameter in the url.
But I have this exception

org.xml.sax.SAXParseException: The namespace prefix "xsp" was not declared.
	at org.apache.cocoon.parser.AbstractParser.error(
	at org.apache.xerces.framework.XMLParser.reportError(
	at org.apache.xerces.validators.dtd.DTDValidator.startElement(
	at org.apache.xerces.framework.XMLParser.callStartElement(
	at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(
	at org.apache.xerces.framework.XMLDocumentScanner.parseSome(
	at org.apache.xerces.framework.XMLParser.parse(
	at org.apache.cocoon.parser.XercesParser.parse(
	at org.apache.cocoon.parser.AbstractParser.parse(
	at org.apache.cocoon.producer.ProducerFromFile.getDocument(
	at org.apache.cocoon.Engine.handle(
	at org.apache.cocoon.Cocoon.service(
	at javax.servlet.http.HttpServlet.service(
	at org.apache.tomcat.core.ServletWrapper.handleRequest(
	at org.apache.tomcat.core.ContextManager.service(
	at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(

Can you help me???

Pezzotti Damiano

E-Mail   :
Telefono : 0333-21.16.258
ICQ#     : 50101745

Alambitco - Laboratorio di design e sviluppo web based
E-Mail   :
Web      :
Fax      : 02-700.432.209

View raw message