cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Schmitt ...@ffzj0ia9.bank.dresdner.net>
Subject Re: XSP and Cocoon
Date Wed, 12 Dec 2001 14:32:31 GMT
On Tue, Dec 11, 2001 at 07:46:40AM -0800, DNewman@datixinc.com wrote:
> I am trying to use xsp to generate a dynamic xml page that can be changed
> on fly from request information and java classes.
> I have an xml file and an xsl file.
> The xml file consists of:
> 
> 
> <?xml version="1.0" encoding="UTF-8"?>
> 
> <xsp:logic>
>      com.datix.xmlwriter.XmlWriter write = new XmlWriter();
>      String xmlcontent = write.writeXml("dnewman", "SimpleForm");
>      out.print(xmlcontent);
> </xsp:logic>
> 

<snip/>

> 
> Any help would be great,
> 
> Thanks,
> 
> dave
> dnewman@datixinc.com
>                                                                                     
                                
>  org.apache.cocoon.ProcessingException: Could not read resource file:/home/cocoon/tomcat/webapps/cocoon/xsptest.xsp:

>  org.xml.sax.SAXParseException: The namespace prefix "xsp" was not declared.        
                                
>             at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:115)
                          

Your file should look like this:

<?xml version="1.0"?>
<xsp:page language="java"
	xmlns:xsp="http://apache.org/xsp>

<xsp:logic>extrem coding goes here</xsp:logic>
</xsp:page>

Hth,
Christian

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message