nettings apache.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-unsubscribe lenya.apache.org
For additional commands, e-mail: dev-help lenya.apache.org
|