[EMAIL PROTECTED] schrieb:
> Author: nettings
> Date: Mon Feb 26 07:18:02 2007
> New Revision: 511847
> 
> URL: http://svn.apache.org/viewvc?view=rev&rev=511847
> Log:
> clean up namespace decls, use default namespace or "lenya" instead of
> "pub" for http://apache.org/cocoon/lenya/publication/1.1
> to be consistent witht the rest of lenya.

[...]

> -    xmlns:pub="http://apache.org/cocoon/lenya/publication/1.1";
> -    >
> +    xmlns="http://apache.org/cocoon/lenya/publication/1.1";
>  
>    <xsl:param name="area"/>
>  
> -  <xsl:template match="pub:publication">
> +  <xsl:template match="publication">

This won't work, XSLT doesn't support the default namespace.

-- Andreas


>      <menu:menu>
> -      <xsl:apply-templates select="pub:modules/pub:module"/>
> +      <xsl:apply-templates select="modules/module"/>
>      </menu:menu>
>    </xsl:template>
>  
> -  <xsl:template match="pub:module">
> -    <xsl:if test="not(preceding-sibling::pub:[EMAIL PROTECTED] = 
> current()/@name])">
> +  <xsl:template match="module">
> +    <xsl:if test="not(preceding-sibling::[EMAIL PROTECTED] = 
> current()/@name])">
>        <xi:include href="cocoon:/menu-xml/module/{$area}/[EMAIL PROTECTED]" 
> xpointer="xpointer(/*/*)"/>
>      </xsl:if>
>    </xsl:template>


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

Reply via email to