On Tue, Dec 11, 2001 at 07:46:40AM -0800, [EMAIL PROTECTED] 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
> [EMAIL PROTECTED]
>
>
> 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: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]