You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by ne...@apache.org on 2007/02/26 16:18:03 UTC
svn commit: r511847 -
/lenya/branches/trunk-rework-pubconf/src/webapp/lenya/xslt/modules/modules2xinclude.xsl
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.
Modified:
lenya/branches/trunk-rework-pubconf/src/webapp/lenya/xslt/modules/modules2xinclude.xsl
Modified: lenya/branches/trunk-rework-pubconf/src/webapp/lenya/xslt/modules/modules2xinclude.xsl
URL: http://svn.apache.org/viewvc/lenya/branches/trunk-rework-pubconf/src/webapp/lenya/xslt/modules/modules2xinclude.xsl?view=diff&rev=511847&r1=511846&r2=511847
==============================================================================
--- lenya/branches/trunk-rework-pubconf/src/webapp/lenya/xslt/modules/modules2xinclude.xsl (original)
+++ lenya/branches/trunk-rework-pubconf/src/webapp/lenya/xslt/modules/modules2xinclude.xsl Mon Feb 26 07:18:02 2007
@@ -22,19 +22,18 @@
xmlns:menu="http://apache.org/cocoon/lenya/menubar/1.0"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- 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">
<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: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org
Re: svn commit: r511847 - /lenya/branches/trunk-rework-pubconf/src/webapp/lenya/xslt/modules/modules2xinclude.xsl
Posted by Andreas Hartmann <an...@apache.org>.
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