Uzo wrote:

> firstly i am running cocoon 2.1.6. My xslt file is specified top and 
> bottom as follows:
> 
> <?xml version="1.0" encoding="ISO-8859-1"?>
>       <xsl:stylesheet version="1.0"
>               xmlns:cinclude="http://apache.org/cocoon/include/1.0";
>               xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
>               >
>               <xsl:template match="/">
>               <test>
>       
> <html>
> ........
> </html>
> 
> 
>               </test>
>               </xsl:template>
>               
>               <xsl:template match="*">
>                         <xsl:element name="{local-name()}">
>                                       <xsl:apply-templates 
> select="@*|xmlns|node()"/>
>                         </xsl:element>
>               </xsl:template>
> 
>               <xsl:template match="@*|text()" priority="-1">
>                         <xsl:copy/>
>               </xsl:template>
>       
>               
>       </xsl:stylesheet>
> 
> Now, as you can see I have 2 xmlns declarations and only the cinclude 
> one appears all the time. So I changed the serializer type to html as 
> you suggested and the xmlns line was still in the final html output!! 
> Should I send my sitemap, xsl, and jxt file to you to have a look?

You have declared the namespace on the stylesheet element, but you haven't told 
the stylesheet processor to exclude it from the output. You need to use the 
exclude-result-prefixes attribute on the stylesheet.

Con

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

Reply via email to