cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Lerche <pe...@easyspeedy.com>
Subject Re: serialize without namespace
Date Wed, 28 Apr 2004 20:06:07 GMT
Hi,


This is NOT the best solution but it will work.

Make an extra serializer step in your pipeline and put this XSLT script into 
it.

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
   <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
     <xsl:template match="*">
       <!-- remove element prefix (if any) -->
       <xsl:element name="{local-name()}">
         <!-- process attributes -->
         <xsl:for-each select="@*">
           <!-- remove attribute prefix (if any) -->
           <xsl:attribute name="{local-name()}">
             <xsl:value-of select="."/>
           </xsl:attribute>
         </xsl:for-each>
         <xsl:apply-templates/>
       </xsl:element>
   </xsl:template>
</xsl:stylesheet>


On Wednesday 28 April 2004 16:49, Volkm@r wrote:
> espaces from my xml files

-- 
Med venlig hilsen / Yours sincerely 
 
Peter Lerche
http://easyspeedy.com 
_______________________________________ 
European Dedicated Server Hosting 
Extremely low prices, secure, and reliable
Linux and BSD distributions only 
_______________________________________

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


Mime
View raw message