You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by gr...@apache.org on 2004/10/27 03:30:48 UTC
svn commit: rev 55658 - incubator/lenya/trunk/src/webapp/lenya/xslt/menu
Author: gregor
Date: Tue Oct 26 18:30:47 2004
New Revision: 55658
Modified:
incubator/lenya/trunk/src/webapp/lenya/xslt/menu/menu2xslt.xsl
Log:
#31533
[Patch] workaround for XHTML <script/> bug in most browser
Modified: incubator/lenya/trunk/src/webapp/lenya/xslt/menu/menu2xslt.xsl
==============================================================================
--- incubator/lenya/trunk/src/webapp/lenya/xslt/menu/menu2xslt.xsl (original)
+++ incubator/lenya/trunk/src/webapp/lenya/xslt/menu/menu2xslt.xsl Tue Oct 26 18:30:47 2004
@@ -45,7 +45,7 @@
<html>
<head>
<xso:call-template name="title"/>
- <script src="{$contextprefix}/lenya/menu/menu.js" type="text/javascript"> </script>
+ <script src="{$contextprefix}/lenya/menu/menu.js" type="text/javascript"> </script>
<link href="{$contextprefix}/lenya/css/menu.css" rel="stylesheet" type="text/css"/>
<xso:apply-templates select="xhtml:html/xhtml:head/*[local-name() != 'title']"/>
</head>
@@ -72,6 +72,12 @@
</xsl:if>
+ <xso:template match="xhtml:script">
+ <xso:copy>
+ <xso:apply-templates select="@*|node()"/>
+ <xso:if test="not(.//text())"><xso:text> </xso:text></xso:if>
+ </xso:copy>
+ </xso:template>
<xso:template match="@*|node()">
<xso:copy>
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org