svn commit: r999870 - /forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/themer/themes/common/html/nav-section.contract.xml

[email protected]
Newsgroups gmane.text.xml.forrest.cvs
Message-ID <[email protected]>
Author: thorsten
Date: Wed Sep 22 10:59:36 2010
New Revision: 999870

URL: http://svn.apache.org/viewvc?rev=999870&view=rev
Log:
Fixing blanks and line breaks which caused a js exception

Modified:
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/themer/themes/common/html/nav-section.contract.xml

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/themer/themes/common/html/nav-section.contract.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/themer/themes/common/html/nav-section.contract.xml?rev=999870&r1=999869&r2=999870&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/themer/themes/common/html/nav-section.contract.xml (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/themer/themes/common/html/nav-section.contract.xml Wed Sep 22 10:59:36 2010
@@ -101,7 +101,6 @@ xmlns:forrest="http://apache.org/forrest
         <xsl:variable name="tagid">
           <xsl:choose>
             <xsl:when test="descendant-or-self::node()/li/div/@class='current'">
-
               <xsl:value-of select="concat('menu_selected_',$id)" />
             </xsl:when>
             <xsl:otherwise>
@@ -112,10 +111,7 @@ xmlns:forrest="http://apache.org/forrest
         <xsl:variable name="selected">
           <xsl:choose>
             <xsl:when test="descendant-or-self::node()/li/div/@class='current'">
-
-              <xsl:text>
-selected
-</xsl:text>
+              <xsl:text>selected</xsl:text>
             </xsl:when>
             <xsl:otherwise></xsl:otherwise>
           </xsl:choose>
@@ -123,8 +119,8 @@ selected
         <li class="pagegroup{normalize-space($selected)}" id="{$tagid}Title">
           <span>
             <xsl:if test="$expanding = 'true'">
-              <xsl:attribute name="onclick">SwitchMenu(' 
-              <xsl:value-of select="normalize-space($tagid)" />')</xsl:attribute>
+              <!-- it is very important to not have a line break here since it will break the resulting code -->
+              <xsl:attribute name="onclick">SwitchMenu('<xsl:value-of select="normalize-space($tagid)" />')</xsl:attribute>
             </xsl:if>
             <xsl:value-of select="h1" />
           </span>
@@ -151,7 +147,6 @@ selected
                             <div class="menupageitem">
                               <xsl:choose>
                                 <xsl:when test="string-length(normalize-space(@title))&gt;15">
-
                                   <a href="{@href}"
                                   title="{normalize-space(@title)}">
                                   <xsl:value-of select="substring(@title,0,20)" />...</a>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.