Hi,

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="http://apache.org/cocoon/forms/1.0#template"; xmlns:fi=
"http://apache.org/cocoon/forms/1.0#instance"; xmlns:jx="
http://apache.org/cocoon/templates/jx/1.0"; 
xmlns:bu="http://apache.org/cocoon/browser-update/1.0
 <http://apache.org/cocoon/browser-update/1.0>" language="text/javascript">
                                
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.

Regards,
Niels

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

Reply via email to