But it also overrides the startElement and endElement: 

super.startElement(EMPTY_NS, localName, localName, attr);
super.endElement(EMPTY_NS, localName, localName);

placing this transformer between the generation/xsl transformation and the 
serializer should remove all namespaces. For me it works accordingly

Regards Ard


Hi Ard

>> You just mean namespaces? Take a look at the StripNameSpaceTransformer,

I found this transformer and tried it, but it appears to just remove namespace 
prefixes by overriding the startPrefixMapping and endPrefixMapping methods to 
do nothing (as described in the FAQ). 

But I want to remove namespace declarations, like 
xmlns:fi="http://apache.org/cocoon/forms/1.0#instance";, which are present in 
the original <page> base element, and get copied through to the output HTML.

As I mentioned earlier, the Cocoon 2.1.10 forms block examples also exhibit 
this behaviour. Do other forms block users just live with the "proprietary 
attribute" warning thrown by the W3C HTML validator?

Regards

Ron

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to