cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Collin VanDyck" <>
Subject Undeclared Prefix Issue
Date Wed, 26 Feb 2003 16:13:47 GMT
I'm using XSPUtil.includeString() to bring in some external XML into my
source XML tree before I apply my transforms.  This involves me assigning
the XML to a string variable, and then including it as such:

String xmlString = xmlDataValue.getXMLData();
XSPUtil.includeString(xmlString ,this.manager, this.contentHandler);

This works beautifully when I am brining in XML without namespace prefixes.
However, much of the XML that we handle within our system consists of XSL
stylesheets, which of course carry the <xsl: ... > prefix.  When I try and
bring that kind of XML into my XSP page as I am building the source tree, I
get the following error:

An error occurredorg.apache.cocoon.ProcessingExceptionUndeclared prefix in
name: "xsl:style".org.apache.cocoon.ProcessingException: Exception in
org.apache.avalon.framework.CascadingRuntimeException: Could not include
page-11null Original exception :
org.apache.avalon.framework.CascadingRuntimeException: Could not include
page at
org.apache.cocoon.components.language.markup.xsp.XSPUtil.includeInputSource( at
org.apache.cocoon.components.language.markup.xsp.XSPUtil.includeString(XSPUt at\j
org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenera at

In my XSP, I have included the xsl namespace with the <xsp:page> attribute:


but that still does not work.  I'd appreciate any input on how to be able to
bring in any valid xml.  I would rather use this XSP solution of using
XSPUtil than creating a sitemap aggregation setup.

Many thanks,

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message