You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Joerg Heinicke <jo...@gmx.de> on 2002/08/06 17:56:55 UTC

Re: mail

Hello Helena,

your exclude-result-prefixed won't have any effect because the namespace is 
still needed in the output of the XSLT. The i18n transformer comes after 
your XSLT and it seems that it does not remove all namespaces correctly. You 
can reach this with another XSLT after the i18n:

<xsl:template match="*">
   <xsl:element name="{name()}">
     <xsl:apply-templates select="@*|node()"/>
   </xsl:element>
</xsl:template>

<xsl:template match="@*">
   <xsl:attribute name="{name()}">
     <xsl:value-of select="."/>
   </xsl:attribute>
</xsl:template>

<xsl:template match="comment()|processing-instruction()|text()">
   <xsl:copy-of select="."/>
</xsl:template>

Hope this helps,

Joerg

Helena Ginzburg wrote:
> Hi, All
> 	I'm try to use I18nTransformer. I'm getting namespace prefixes in
> the wml output from Cocoon 2.03. If I to use exclude-result-prefixes="i18n"
> namespace prefixes removing from wml tag while I have it with
> i18n:attribute. Can I to remove namespace prefix total?
> My xsl:
> <xsl:stylesheet  	    version="1.0"
>  
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> 	
> xmlns:i18n="http://apache.org/cocoon/i18n/2.0"
> 				    exclude-result-prefixes="i18n">
> <xsl:template match="/">
> 	<wml>
> 	<card title="Login" i18n:attr="title">
>  		<p>	
> 			<b><i18n:text>Login</i18n:text></b><br/>
>   		</p>
> 	</card>
> 	</wml>
> </xsl:template>
> </xsl:stylesheet>
> 
> Wml output :
> <?xml version="1.0" encoding="UTF-8"?>
> <wml>
> <card xmlns:i18n="http://apache.org/cocoon/i18n/2.0" title="Please Login">
> <p><b>Please Login</b><br/>
> </card>
> </wml>
> 
> Any help would be much appreciated.
> Regards, Helena.

-- 

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
joerg.heinicke@virbus.de
www.virbus.de


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>