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:53 UTC
svn commit: rev 55659 - incubator/lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/menu
Author: gregor
Date: Tue Oct 26 18:30:52 2004
New Revision: 55659
Modified:
incubator/lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/menu/menu2xslt.xsl
Log:
#31533
[Patch] workaround for XHTML <script/> bug in most browser
Modified: incubator/lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/menu/menu2xslt.xsl
==============================================================================
--- incubator/lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/menu/menu2xslt.xsl (original)
+++ incubator/lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/menu/menu2xslt.xsl Tue Oct 26 18:30:52 2004
@@ -44,7 +44,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>
@@ -70,6 +70,13 @@
</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="xhtml:*">
<xso:element>
<xsl:attribute name="name">{local-name()}</xsl:attribute>
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org