cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Derek Hohls" <>
Subject Re: [cforms]How to get rid of attributes about namespace declcaration in html serializer?
Date Fri, 22 Jun 2007 06:58:20 GMT
The transform step Niels refers to is in the FAQ: 
"How can I remove namespaces from my xml files?"

>>> Niels van Kampenhout <> 2007/06/22 08:46:53
AM >>>


Rice Yeh wrote:
>   I use jx transformer with cforms. I find a <script> tag in the 
> resulted html have xmlns: attributes like the follows:
> <script
>  xmlns:ft="" xmlns:fi=
> "" xmlns:jx="
>  <>"
> I doubt the browser will no execute the script with such extra xmlns:
attributes. This seems it is html serializer's problem. 
> I use cocoon-view to see the result of serialize. There is no such
xsmlns: stuff? 
> Any clue?

If you have an XSLT transformation in your pipeline before the 
serializer, you can get rid of the namespace prefixes using an 
@exclude-result-prefixes attribute in your xsl:stylesheet element.

Otherwise add an extra transformer before the serializer which strips 
the namespaces. This is easiest with XSLT, fastest in terms of 
performance is writing a small customs transformer for it.


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

This message is subject to the CSIR's copyright, terms and conditions and
e-mail legal notice. Views expressed herein do not necessarily represent the
views of the CSIR.
CSIR E-mail Legal Notice 
CSIR Copyright, Terms and Conditions 
For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR
Legal Notice send a blank message with REQUEST LEGAL in the subject line to

This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.

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

View raw message