You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2007/02/26 16:01:51 UTC
svn commit: r511839 -
/lenya/branches/trunk-rework-pubconf/src/webapp/lenya/xslt/modules/modules2xinclude.xsl
Author: andreas
Date: Mon Feb 26 07:01:50 2007
New Revision: 511839
URL: http://svn.apache.org/viewvc?view=rev&rev=511839
Log:
Added namespace prefix to XSLT
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=511839&r1=511838&r2=511839
==============================================================================
--- 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:01:50 2007
@@ -19,23 +19,22 @@
<!-- $Id: xinclude.xsl 123414 2004-12-27 14:52:24Z gregor $ -->
<xsl:stylesheet version="1.0"
- xmlns:dir="http://apache.org/cocoon/directory/2.0"
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="http://apache.org/cocoon/lenya/publication/1.1"
->
+ xmlns:pub="http://apache.org/cocoon/lenya/publication/1.1"
+ >
<xsl:param name="area"/>
- <xsl:template match="publication">
- <menu:menu>
- <xsl:apply-templates select="modules/module"/>
- </menu:menu>
+ <xsl:template match="pub:publication">
+ <menu:menu>
+ <xsl:apply-templates select="pub:modules/pub:module"/>
+ </menu:menu>
</xsl:template>
- <xsl:template match="module">
- <xsl:if test="not(preceding-sibling::module[@name = current()/@name])">
+ <xsl:template match="pub:module">
+ <xsl:if test="not(preceding-sibling::pub: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