cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <>
Subject [C2]: Bug in XIncludeSAXConnector
Date Fri, 27 Apr 2001 11:40:17 GMT

wow I was only three days out of office and so much did happen
with C2 - this is great, but...

Using the latest C2 several C2 applications are not working
any more due to the XIncludeSAXConnector.
The problem lies in the startElement method:
     if (uri == null || uri.equals("")) {
            uri = (String)this.getNS();
     super.startElement(uri, name, raw, attr);

If the current element has no namespace (uri is then ""),
it is assumed that this element has the same namespace
then the previous element. This is of course not always
If you use the following xml:

<t:page xmlns:t="test">
  <para>This is my first Cocoon2 page!</para>

all elements get the namespace of the page element.


Open Source Group                        sunShine - b:Integrated
Carsten Ziegeler, S&N AG, Klingenderstrasse 5, D-33100 Paderborn                          mailto: 

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

View raw message