cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Dumon <br...@outerthought.org>
Subject Re: [XMLForm] Declarative xmlns attribute
Date Tue, 22 Apr 2003 09:15:19 GMT
On Tue, 2003-04-22 at 10:45, Stephan Michels wrote:
> Hi,
> 
> I have some problems with the following line of the XMLFormTransformer
> 
>  atts.addAttribute( null, NS_PREFIX, XMLNS_PREFIX + ":" + NS_PREFIX, "CDATA", NS);

Unrelated note: in SAX, empty namespaces should be empty strings (""),
not null.

> 
> Xalan throw a violation exception, because you shouldn't set xmlns
> attribute manually.
> 
> Can we remove this line?

I assume so.

> 
> BTW, I don't see a startPrefixMapping within the transformer.

This is a potential problem. I assume nobody noticed it yet because they
are always using the same prefix.

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno@outerthought.org                          bruno@apache.org


Mime
View raw message