cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeroen Reijn <j.re...@hippo.nl>
Subject Re: Bring xml in better "shape"
Date Fri, 28 Jul 2006 14:36:44 GMT
Hi Marco,



> Can I somehow improve that?

Yes, you can try to indent your XML. It's an option of the XMLSerializer.

http://cocoon.apache.org/2.1/userdocs/xml-serializer.html

> 
> 2nd:
> as you can see, the root element (document) has the sql namespace. Why 
> is it displayed there? I mean, I have it in my transforming xsl file, 
> like that:
> <?xml version="1.0" encoding="iso-8859-1"?>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform 
> <http://www.w3.org/1999/XSL/Transform>"
> xmlns:sql="http://apache.org/cocoon/SQL/2.0">
> 
> but why is it displayed in the final xml?

Did you put the exclude-result-prefixes="" within the your XSL?

If that doesn't help you could always put a stripnamespaces xsl in front 
of your XML serializer.

For more information see: http://www.planetcocoon.com/node/2425

I hope that helps.

Regards,

Reijn

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message