xml-xsp-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leigh Dodds" <ldo...@ingenta.com>
Subject Oddity with XSP and Namespaces
Date Fri, 22 Mar 2002 17:13:23 GMT
Hi, can anyone explain the following, or identify that this 
is a fixed bug?

Environment: Tomcat 4.0.1, Cocoon 2.0.1.

XSP Page:

<xsp:page language="java" xmlns:xsp="http://apache.org/xsp">
   <xsp:element name="one"/>
      <xsp:param name="name"><xsp:expr>"two"</xsp:expr></xsp:param>
   <xsp:element name="three" uri="http://www.ldodds.com" prefix="lrd"/>
      <xsp:param name="name"><xsp:expr>"four"</xsp:expr></xsp:param>
      <xsp:param name="uri"><xsp:expr>"http://www.ldodds.com"</xsp:expr></xsp:param>
      <xsp:param name="prefix"><xsp:expr>"lrd"</xsp:expr></xsp:param>


<map:match pattern="*.xsp">
 <map:generate type="xsp" src="{1}.xsp"/>
 <map:serialize type="xml"/>


<root xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns:xsp="http://apache.org/xsp">

Note that the namespace prefixes are present, but not the 
namespace declarations. Also note that the xml namespace is 
declared (which IE complains about, probably correctly)

If I alter the pipeline to include a stylesheet that performs 
an identity transformation (copies input to output) I 
get the expected document.

Any ideas? Is this a bug?



Leigh Dodds, Research Group, Ingenta | "Pluralitas non est ponenda
http://weblogs.userland.com/eclectic |    sine necessitate"
http://www.xml.com/pub/xmldeviant    |     -- William of Ockham

View raw message