List Info

Thread: Re: svn commit: r511847 - /lenya/branches/trunk-rework-pubconf/src/webapp/lenya/xslt/modules/modu




Re: svn commit: r511847 - /lenya/branches/trunk-rework-pubconf/src /webapp/lenya/xslt/modules/modu
country flaguser name
Switzerland
2007-02-26 09:21:37
nettingsapache.org 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:module[name =
current()/name])">
> +  <xsl:template match="module">
> +    <xsl:if
test="not(preceding-sibling::module[name =
current()/name])">
>        <xi:include
href="cocoon:/menu-xml/module/{$area}/{name}.xml"
xpointer="xpointer(/*/*)"/>
>      </xsl:if>
>    </xsl:template>


------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribelenya.apache.org
For additional commands, e-mail: dev-helplenya.apache.org


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )