Hello,

I'm running unmodified Cocoon 2.0.4 under Linux/JVM1.4 and encounter trouble using sql and dir namespaces with document() function without having non compliant things such as

<table xmlns:sql="http://apache.org/cocoon/SQL/2.0";
          xmlns:dir="http://apache.org/cocoon/directory/2.0"; width="100%">

in my HTML flows.

I know this problem has been discussed before, nethertheless I didn't manage to get a working solution for me.

First of all, I tried to use Saxon instead of Xalan. But since I didn't see explanation about how to substitute, I'm not sure to have follow the right method since output documents where all almost blanks.

Then, using Xalan, I tried to append a new stylesheet in my pipeline containing the template given by the FAQ :

<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>

But first HTML element's attributes still contains namespaces.

Any tip ?
Which approach should be privilegied ?

Regards,
Fred.


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



Reply via email to