You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by cr...@apache.org on 2007/04/10 03:49:47 UTC

svn commit: r526993 [4/6] - in /forrest/trunk/main/webapp/skins: coat/ coat/css/ coat/xslt/fo/ coat/xslt/html/ forrest-site/xslt/fo/ forrest-site/xslt/html/ krysalis-site/ krysalis-site/css/ krysalis-site/xslt/fo/ krysalis-site/xslt/html/ leather-dev/ ...

Modified: forrest/trunk/main/webapp/skins/leather-dev/xslt/xml/ft-to-xhtml.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/main/webapp/skins/leather-dev/xslt/xml/ft-to-xhtml.xsl?view=diff&rev=526993&r1=526992&r2=526993
==============================================================================
--- forrest/trunk/main/webapp/skins/leather-dev/xslt/xml/ft-to-xhtml.xsl (original)
+++ forrest/trunk/main/webapp/skins/leather-dev/xslt/xml/ft-to-xhtml.xsl Mon Apr  9 18:49:44 2007
@@ -29,12 +29,10 @@
 </elements>
 
 -->
-
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
   <xsl:import href="fct-bits/fct-bits.xsl"/>
   <xsl:param name="contextPath"/>
-  
-  <!--+
+<!--+
   |Overall site template
   +-->
   <xsl:template match="/">
@@ -47,7 +45,7 @@
       <xsl:apply-templates />
     </div>
   </xsl:template>
-    <xsl:template match="contract">
+  <xsl:template match="contract">
     <div id="{@name}">
       <xsl:apply-templates />
     </div>

Modified: forrest/trunk/main/webapp/skins/leather-dev/xslt/xml/site-to-xml.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/main/webapp/skins/leather-dev/xslt/xml/site-to-xml.xsl?view=diff&rev=526993&r1=526992&r2=526993
==============================================================================
--- forrest/trunk/main/webapp/skins/leather-dev/xslt/xml/site-to-xml.xsl (original)
+++ forrest/trunk/main/webapp/skins/leather-dev/xslt/xml/site-to-xml.xsl Mon Apr  9 18:49:44 2007
@@ -29,10 +29,8 @@
 </elements>
 
 -->
-
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-
-  <!--xsl:import href="../../../common/xslt/html/site2xhtml.xsl"/-->
+<!--xsl:import href="../../../common/xslt/html/site2xhtml.xsl"/-->
 <!--+
   |Overall site template
   +-->
@@ -41,77 +39,66 @@
 <!--+
   |HTML-head
   +-->
-        <head>
+      <head>
 <!--+
   |generator meta
   +-->
-            <xsl:call-template name="html-meta"/>
+        <xsl:call-template name="html-meta"/>
 <!--+
   |title
   +-->
-            <title>
-                <xsl:value-of select="div[@id='content']/h1"/>
-            </title>
+        <title><xsl:value-of select="div[@id='content']/h1"/></title>
 <!--+
   |stylesheets test for overrides (implement overrides of css-stylesheet)
-  +-->
-            <link rel="stylesheet" href="{$root}skin/basic.css" type="text/css" 
-                />
-            <link rel="stylesheet" href="{$root}skin/navigation.css" 
-                type="text/css" /> 
-            <link rel="stylesheet" href="{$root}skin/branding.css" 
-                type="text/css" /> 
-            <link rel="stylesheet" href="{$root}skin/base-contracts.css" 
-                type="text/css" />
-            <link rel="stylesheet" href="{$root}skin/profiling.css" 
+  +--><link rel="stylesheet" href="{$root}skin/basic.css" type="text/css" 
+                /><link rel="stylesheet" href="{$root}skin/navigation.css" 
+                type="text/css" /><link rel="stylesheet" href="{$root}skin/branding.css" 
+                type="text/css" /><link rel="stylesheet" href="{$root}skin/base-contracts.css" 
+                type="text/css" /><link rel="stylesheet" href="{$root}skin/profiling.css" 
                 type="text/css" />
 <!--+
   |Javascripts (check in skinconf whether needed)
   +-->
-  <!-- getBlank - needed for blank out a default value of a form field -->
-            <script type="text/javascript" language="javascript" 
+<!-- getBlank - needed for blank out a default value of a form field -->
+<script type="text/javascript" language="javascript" 
                 src="{$root}skin/getBlank.js"></script>
-  <!-- getMenu - needed for the default menu script -->
-	        <script type="text/javascript" language="javascript" 
+<!-- getMenu - needed for the default menu script -->
+<script type="text/javascript" language="javascript" 
 				src="{$root}skin/getMenu.js"></script>
-        
-   <!-- fontsize - needed if fontsize script should be in  -->
-   <!-- here:
+<!-- fontsize - needed if fontsize script should be in  -->
+<!-- here:
    <xsl:if test="//skinconf/functions/fontsize/@select='true'">
     <xsl:apply-templates select="c-fontsize-fct/head"/>
    </xsl:if>
    -->
-	        <script type="text/javascript" language="javascript" 
+<script type="text/javascript" language="javascript" 
 				src="{$root}skin/fontsize.js"></script>
 <!--+
   |favicon
   +-->
-            <xsl:if test="//skinconfig/favicon-url">
-                <link rel="shortcut icon">
-                    <xsl:attribute name="href">
-                        <xsl:value-of 
+        <xsl:if test="//skinconfig/favicon-url"><link rel="shortcut icon">
+          <xsl:attribute name="href">
+            <xsl:value-of 
                             select="concat($root,//skinconfig/favicon-url)"/>
-                    </xsl:attribute>
-                </link>
-            </xsl:if>
-        </head>
+          </xsl:attribute></link>
+        </xsl:if>
+      </head>
 <!--+
   |HTML-body
   +-->
-  <body onload="init()">
-		   <!-- fontsize - needed if fontsize script should be in  -->
-   <!-- here:
+      <body onload="init()">
+<!-- fontsize - needed if fontsize script should be in  -->
+<!-- here:
    <xsl:if test="//skinconf/functions/fontsize/@select='true'">
     <xsl:apply-templates select="c-*-fct/body/@onload"/>
    </xsl:if>
    -->
-   <!-- here:
+<!-- here:
    <xsl:if test="//skinconf/functions/fontsize/@select='true'">
     <xsl:apply-templates select="c-fontsize-fct/body/script"/>
    </xsl:if>
    -->
-   <script type="text/javascript">ndeSetTextSize();</script>
-
+<script type="text/javascript">ndeSetTextSize();</script>
 <!--+Default site structure
   +++++++++++++++++++++++++++
      +=========================+
@@ -134,170 +121,170 @@
 <!--+
   |branding with logos
   +-->
-    <div id="branding">
-<xsl:comment>+
+        <div id="branding">
+          <xsl:comment>+
     |header
     +</xsl:comment>
 <!--breadcrumbs org location-->
-<xsl:if test="not ($config/trail/@location)">
-<xsl:comment>+
+          <xsl:if test="not ($config/trail/@location)">
+            <xsl:comment>+
     |breadtrail
     +</xsl:comment>
-      <div id="branding-trail">
-          <xsl:call-template name="breadcrumbs"/>
-      </div>
-</xsl:if>
-
-<xsl:comment>+
+            <div id="branding-trail">
+              <xsl:call-template name="breadcrumbs"/>
+            </div>
+          </xsl:if>
+          <xsl:comment>+
     |start group logo
-    +</xsl:comment> 
-        <xsl:if test="$config/group-url">
-          <div class="grouplogo">
-            <xsl:call-template name="renderlogo">
-              <xsl:with-param name="name" select="$config/group-name"/>
-              <xsl:with-param name="url" select="$config/group-url"/>
-              <xsl:with-param name="logo" select="$config/group-logo"/>
-              <xsl:with-param name="root" select="$root"/>
-              <xsl:with-param name="description" select="$config/group-description"/>
-            </xsl:call-template>
-          </div>
-        </xsl:if>
-<xsl:comment>+
+    +</xsl:comment>
+          <xsl:if test="$config/group-url">
+            <div class="grouplogo">
+              <xsl:call-template name="renderlogo">
+                <xsl:with-param name="name" select="$config/group-name"/>
+                <xsl:with-param name="url" select="$config/group-url"/>
+                <xsl:with-param name="logo" select="$config/group-logo"/>
+                <xsl:with-param name="root" select="$root"/>
+                <xsl:with-param name="description" select="$config/group-description"/>
+              </xsl:call-template>
+            </div>
+          </xsl:if>
+          <xsl:comment>+
     |end group logo
     +</xsl:comment>
-<xsl:comment>+
+          <xsl:comment>+
     |start Project Logo
-    +</xsl:comment> 
-   <xsl:variable name="xtest">
-       <xsl:choose>
-                <xsl:when 
+    +</xsl:comment>
+          <xsl:variable name="xtest">
+            <xsl:choose>
+              <xsl:when 
                     test="$config/group-url and $config/search and not($config/search/@box-location = 'alt')">
-                     <xsl:text>true</xsl:text></xsl:when>
-                <xsl:otherwise><xsl:text>false</xsl:text></xsl:otherwise>
-             </xsl:choose>
-   </xsl:variable>
-     <div class="projectlogo">
+<xsl:text>true</xsl:text>
+              </xsl:when>
+              <xsl:otherwise>
+<xsl:text>false</xsl:text>
+              </xsl:otherwise>
+            </xsl:choose>
+          </xsl:variable>
+          <div class="projectlogo">
             <xsl:if test="$xtest='false'" >
-                    <xsl:attribute name="class">
-                        <xsl:text>projectlogoA1</xsl:text>
-                    </xsl:attribute>      
+              <xsl:attribute name="class">
+<xsl:text>projectlogoA1</xsl:text>
+              </xsl:attribute>
             </xsl:if>
-          <xsl:call-template name="renderlogo">
-            <xsl:with-param name="name" select="$config/project-name"/>
-            <xsl:with-param name="url" select="$config/project-url"/>
-            <xsl:with-param name="logo" select="$config/project-logo"/>
-            <xsl:with-param name="root" select="$root"/>
-            <xsl:with-param name="description" select="$config/project-description"/>
-        </xsl:call-template>
-      </div>
-<xsl:comment>+
+            <xsl:call-template name="renderlogo">
+              <xsl:with-param name="name" select="$config/project-name"/>
+              <xsl:with-param name="url" select="$config/project-url"/>
+              <xsl:with-param name="logo" select="$config/project-logo"/>
+              <xsl:with-param name="root" select="$root"/>
+              <xsl:with-param name="description" select="$config/project-description"/>
+            </xsl:call-template>
+          </div>
+          <xsl:comment>+
     |end Project Logo
-    +</xsl:comment> 
-	<!--+
+    +</xsl:comment>
+<!--+
   |centerstrip with menu and mainarea
   +-->
-        <div id="branding-tagline">
-           <script language="JavaScript" type="text/javascript"><![CDATA[<!--
+          <div id="branding-tagline">
+<script language="JavaScript" type="text/javascript"><![CDATA[<!--
               document.write("Published: " + document.lastModified);
               //  -->]]></script>
-        </div>
-
-
-<xsl:comment>+
+          </div>
+          <xsl:comment>+
     |breadtrail
     +</xsl:comment>
-              <div id="branding-trail-a1">
- <xsl:choose>
-        <xsl:when test="$config/trail/@location='alt'">
-            <!--breadtrail location='alt'-->
-            <xsl:call-template name="breadcrumbs"/>             
-        </xsl:when>
-        <xsl:otherwise>
-            <!--*NO* breadtrail-->
+          <div id="branding-trail-a1">
+            <xsl:choose>
+              <xsl:when test="$config/trail/@location='alt'">
+<!--breadtrail location='alt'-->
+                <xsl:call-template name="breadcrumbs"/>
+              </xsl:when>
+              <xsl:otherwise>
+<!--*NO* breadtrail-->
             &#160;
         </xsl:otherwise>
-</xsl:choose>
-</div>  
-
-      </div>
-<div id="search">
-        <xsl:if 
+            </xsl:choose>
+          </div>
+        </div>
+        <div id="search">
+          <xsl:if 
             test="$config/search and not($config/search/@box-location = 'alt')">
-<xsl:comment>+
+            <xsl:comment>+
     |start Search
-    +</xsl:comment> 
-             <div class="search-input">
-             <xsl:choose>
-              <xsl:when test="$config/search/@provider = 'lucene'">
-                <!-- Lucene search -->
-                <form method="get" action="{$root}{$lucene-search}">
-                  <input type="text" id="query" name="queryString" size="25" value="Search the site with {$config/search/@provider}:" onFocus="getBlank (this, 'Search the site with {$config/search/@provider}:');"/>
+    +</xsl:comment>
+            <div class="search-input">
+              <xsl:choose>
+                <xsl:when test="$config/search/@provider = 'lucene'">
+<!-- Lucene search -->
+                  <form method="get" action="{$root}{$lucene-search}">
+                    <input type="text" id="query" name="queryString" size="25" value="Search the site with {$config/search/@provider}:" onFocus="getBlank (this, 'Search the site with {$config/search/@provider}:');"/>
 		  &#160;
 		  <input type="submit" value="Search" name="Search"/>
-		 </form>
-	      </xsl:when>
-	      <xsl:otherwise>
-                <form class="roundtopsmall" method="get" action="http://www.google.com/search"> 
+                  </form>
+                </xsl:when>
+                <xsl:otherwise>
+                  <form class="roundtopsmall" method="get" action="http://www.google.com/search">
                     <input type="hidden" 
-                    name="sitesearch" value="{$config/search/@domain}"/> 
+                    name="sitesearch" value="{$config/search/@domain}"/>
                     <input type="text" id="query" name="q" size="25" value="Search the site with {$config/search/@provider}:" onFocus="getBlank (this, 'Search the site with {$config/search/@provider}:');"/>&#160; 
-                    <input type="submit" value="Search" name="Search"/> </form>
-        </xsl:otherwise>
-</xsl:choose>
+                    <input type="submit" value="Search" name="Search"/>
+                  </form>
+                </xsl:otherwise>
+              </xsl:choose>
             </div>
-<xsl:comment>+
+            <xsl:comment>+
     |end search
-    +</xsl:comment> 
-        </xsl:if>
-</div>
-<div id="nav">
-<xsl:comment>+
+    +</xsl:comment>
+          </xsl:if>
+        </div>
+        <div id="nav">
+          <xsl:comment>+
     |start Tabs
     +</xsl:comment>
-        <xsl:apply-templates select="ul[@id='nav-main']"/>       
-<xsl:comment>+
+          <xsl:apply-templates select="ul[@id='nav-main']"/>
+          <xsl:comment>+
     |end Tabs
     +</xsl:comment>
-<xsl:apply-templates select="div[@id='nav-main-sub']"/>
-<xsl:comment>+
+          <xsl:apply-templates select="div[@id='nav-main-sub']"/>
+          <xsl:comment>+
     |start menu
     +</xsl:comment>
-    <xsl:if test="div[@id='menu']/ul/li">
-      <xsl:call-template name="menu"/>
-    </xsl:if>
-</div>
-       
-
-
-<xsl:comment>+
+          <xsl:if test="div[@id='menu']/ul/li">
+            <xsl:call-template name="menu"/>
+          </xsl:if>
+        </div>
+        <xsl:comment>+
     |start content
     +</xsl:comment>
-    <xsl:apply-templates select="div[@id='content-main']"/>
-<xsl:comment>+
+        <xsl:apply-templates select="div[@id='content-main']"/>
+        <xsl:comment>+
     |end content
-    +</xsl:comment>    
-
+    +</xsl:comment>
 <!--+
   |siteinfo
   +-->
-    <div id="siteinfo">
-<xsl:comment>+
+        <div id="siteinfo">
+          <xsl:comment>+
     |start bottomstrip
     +</xsl:comment>
-  <div class="lastmodified"><script type="text/javascript"><![CDATA[<!--
+          <div class="lastmodified">
+<script type="text/javascript"><![CDATA[<!--
 document.write("Last Published: " + document.lastModified);
-//  -->]]></script></div>
-
+//  -->]]></script>
+          </div>
           <div class="siteinfo-legal">
- Copyright &#169;<xsl:text> </xsl:text><xsl:value-of select="$config/year"/><xsl:text> </xsl:text><xsl:value-of select="$config/vendor"/>
+ Copyright &#169;<xsl:text> </xsl:text>
+            <xsl:value-of select="$config/year"/>
+<xsl:text> </xsl:text>
+            <xsl:value-of select="$config/vendor"/>
           </div>
-          
           <xsl:if test="$filename = 'index.html'">
             <div id="logos" >
-            <xsl:if test="$config/disable-compliance-links/@align">
-              <xsl:attribute name="style">text-align: <xsl:value-of select="$config/disable-compliance-links/@align"/></xsl:attribute>
-            </xsl:if>
-              <!-- W3C logos style="text-align: center;"-->
+              <xsl:if test="$config/disable-compliance-links/@align">
+                <xsl:attribute name="style">text-align: <xsl:value-of select="$config/disable-compliance-links/@align"/>
+                </xsl:attribute>
+              </xsl:if>
+<!-- W3C logos style="text-align: center;"-->
               <xsl:call-template name="compliancy-logos"/>
               <xsl:if test="$filename = 'index.html' and $config/credits and not ($config/credits/credit/@box-location = 'alt')">
                 <xsl:for-each select="$config/credits/credit[not(@role='pdf')]">
@@ -305,22 +292,21 @@
                   <xsl:variable name="url" select="url"/>
                   <xsl:variable name="image" select="image"/>
                   <xsl:variable name="width" select="width"/>
-                  <xsl:variable name="height" select="height"/>
-                  <a href="{$url}">
-                    <img alt="{$name} - logo" title="{$name}" border="0">
-                      <xsl:attribute name="src">
-                        <xsl:if test="not(starts-with($image, 'http://'))"><xsl:value-of select="$root"/></xsl:if>
-                        <xsl:value-of select="$image"/>
-                      </xsl:attribute>
-                      <xsl:attribute name="style">
-                        <xsl:if test="$width">width: <xsl:value-of select="$width"/>px;</xsl:if>
-                        <xsl:if test="$height">height: <xsl:value-of select="$height"/>px;</xsl:if>
-                      </xsl:attribute>
-                    </img>
-                  </a>
+                  <xsl:variable name="height" select="height"/><a href="{$url}">
+                  <img alt="{$name} - logo" title="{$name}" border="0">
+                    <xsl:attribute name="src">
+                      <xsl:if test="not(starts-with($image, 'http://'))">
+                        <xsl:value-of select="$root"/>
+                      </xsl:if>
+                      <xsl:value-of select="$image"/>
+                    </xsl:attribute>
+                    <xsl:attribute name="style">
+                      <xsl:if test="$width">width: <xsl:value-of select="$width"/>px;</xsl:if>
+                      <xsl:if test="$height">height: <xsl:value-of select="$height"/>px;</xsl:if>
+                    </xsl:attribute>
+                  </img></a>
                 </xsl:for-each>
               </xsl:if>
-             
             </div>
           </xsl:if>
           <xsl:if test="$config/host-logo and not($config/host-logo = '')">
@@ -336,112 +322,121 @@
           <xsl:if test="$config/feedback">
             <xsl:call-template name="feedback"/>
           </xsl:if>
-<xsl:comment>+
+          <xsl:comment>+
     |end bottomstrip
     +</xsl:comment>
-    </div>
-
+        </div>
       </body>
     </elements>
   </xsl:template>
 <!--headings-->
-<xsl:template match="div[@class = 'skinconf-heading-1']">
+  <xsl:template match="div[@class = 'skinconf-heading-1']">
     <xsl:choose>
       <xsl:when test="//skinconfig/headings/@type='underlined'">
-      	<h2 class="underlined_10"><xsl:value-of select="h1"/></h2>
+        <h2 class="underlined_10">
+          <xsl:value-of select="h1"/>
+        </h2>
       </xsl:when>
       <xsl:when test="//skinconfig/headings/@type='boxed'">
-	       <h2 class="boxed"><xsl:value-of select="h1"/></h2>
+        <h2 class="boxed">
+          <xsl:value-of select="h1"/>
+        </h2>
       </xsl:when>
       <xsl:otherwise>
-        <h2 class="h3"><xsl:value-of select="h1"/></h2>
+        <h2 class="h3">
+          <xsl:value-of select="h1"/>
+        </h2>
       </xsl:otherwise>
     </xsl:choose>
   </xsl:template>
-
   <xsl:template match="div[@class = 'skinconf-heading-2']">
     <xsl:choose>
       <xsl:when test="//skinconfig/headings/@type='underlined'">
-        <h3 class="underlined_5"><xsl:value-of select="h2"/></h3>
+        <h3 class="underlined_5">
+          <xsl:value-of select="h2"/>
+        </h3>
       </xsl:when>
       <xsl:when test="//skinconfig/headings/@type='boxed'">
-       	<h3 class="boxed"><xsl:value-of select="h2"/></h3>
+        <h3 class="boxed">
+          <xsl:value-of select="h2"/>
+        </h3>
       </xsl:when>
       <xsl:otherwise>
-        <h3 class="h4"><xsl:value-of select="h2"/></h3>
+        <h3 class="h4">
+          <xsl:value-of select="h2"/>
+        </h3>
       </xsl:otherwise>
     </xsl:choose>
   </xsl:template>
-  <!-- Add links to any standards-compliance logos -->
+<!-- Add links to any standards-compliance logos -->
   <xsl:template name="compliancy-logos">
-    <xsl:if test="$filename = 'index.html' and $config/disable-compliance-links = 'false'">
-      <a href="http://validator.w3.org/check/referer"><img class="logoImage" 
+    <xsl:if test="$filename = 'index.html' and $config/disable-compliance-links = 'false'"><a href="http://validator.w3.org/check/referer">
+      <img class="logoImage" 
           src="{$skin-img-dir}/valid-html401.png"
-          alt="Valid HTML 4.01!" style="height: 31px; width: 88px;" /></a>
-          
-      <a href="http://jigsaw.w3.org/css-validator/check/referer"><img class="logoImage" 
+          alt="Valid HTML 4.01!" style="height: 31px; width: 88px;" /></a><a href="http://jigsaw.w3.org/css-validator/check/referer">
+      <img class="logoImage" 
           src="{$skin-img-dir}/vcss.png" 
           alt="Valid CSS!" style="height: 31px; width: 88px;"/></a>
     </xsl:if>
   </xsl:template>
-
   <xsl:template name="menu">
-<xsl:comment>+
+    <xsl:comment>+
     |start Menu
     +</xsl:comment>
-   <div id="nav-section" class="roundbottom">
-<!--menu - inner-->	
-            <xsl:for-each select = "div[@id='menu']/ul/li">
-              <xsl:call-template name = "innermenuli" >
-                  <xsl:with-param name="id" select="concat('1.', position())"/>
-              </xsl:call-template>
-            </xsl:for-each>
-        <!--
+    <div id="nav-section" class="roundbottom">
+<!--menu - inner-->
+      <xsl:for-each select = "div[@id='menu']/ul/li">
+        <xsl:call-template name = "innermenuli" >
+          <xsl:with-param name="id" select="concat('1.', position())"/>
+        </xsl:call-template>
+      </xsl:for-each>
+<!--
 			<xsl:apply-templates select="div[@id='menu']/*" />
 		-->
 <!--credits-->
-
-	 <xsl:if test="$filename = 'index.html' and $config/credits and ($config/credits/credit/@box-location = 'alt')">
-           <div id="siteinfo-credits">
-                <xsl:for-each select="$config/credits/credit[not(@role='pdf')]">
-                  <xsl:variable name="name" select="name"/>
-                  <xsl:variable name="url" select="url"/>
-                  <xsl:variable name="image" select="image"/>
-                  <xsl:variable name="width" select="width"/>
-                  <xsl:variable name="height" select="height"/>
-                  <a href="{$url}">
-                    <img alt="{$name} - logo" title="{$name}" border="0">
-                      <xsl:attribute name="src">
-                        <xsl:if test="not(starts-with($image, 'http://'))"><xsl:value-of select="$root"/></xsl:if>
-                        <xsl:value-of select="$image"/>
-                      </xsl:attribute>
-                      <xsl:attribute name="style">
-                        <xsl:if test="$width">width: <xsl:value-of select="$width"/>px;</xsl:if>
-                        <xsl:if test="$height">height: <xsl:value-of select="$height"/>px;</xsl:if>
-                      </xsl:attribute>
-                    </img>
-                  </a>
-                </xsl:for-each>
-	       </div>
-              </xsl:if>
-
-        <div class="roundbottom-left">&#160;
+      <xsl:if test="$filename = 'index.html' and $config/credits and ($config/credits/credit/@box-location = 'alt')">
+        <div id="siteinfo-credits">
+          <xsl:for-each select="$config/credits/credit[not(@role='pdf')]">
+            <xsl:variable name="name" select="name"/>
+            <xsl:variable name="url" select="url"/>
+            <xsl:variable name="image" select="image"/>
+            <xsl:variable name="width" select="width"/>
+            <xsl:variable name="height" select="height"/><a href="{$url}">
+            <img alt="{$name} - logo" title="{$name}" border="0">
+              <xsl:attribute name="src">
+                <xsl:if test="not(starts-with($image, 'http://'))">
+                  <xsl:value-of select="$root"/>
+                </xsl:if>
+                <xsl:value-of select="$image"/>
+              </xsl:attribute>
+              <xsl:attribute name="style">
+                <xsl:if test="$width">width: <xsl:value-of select="$width"/>px;</xsl:if>
+                <xsl:if test="$height">height: <xsl:value-of select="$height"/>px;</xsl:if>
+              </xsl:attribute>
+            </img></a>
+          </xsl:for-each>
         </div>
-        <xsl:comment>+
+      </xsl:if>
+      <div class="roundbottom-left">&#160;
+        </div>
+      <xsl:comment>+
   |alternative credits
   +</xsl:comment>
-      </div>
-<xsl:comment>+
+    </div>
+    <xsl:comment>+
     |end Menu
     +</xsl:comment>
   </xsl:template>
-  
-  <xsl:template name="innermenuli">   
+  <xsl:template name="innermenuli">
     <xsl:param name="id"/>
     <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><xsl:value-of select="concat('menu_',concat(font,$id))"/></xsl:otherwise>
+        <xsl:when test="descendant-or-self::node()/li/div/@class='current'">
+          <xsl:value-of select="concat('menu_selected_',$id)"/>
+        </xsl:when>
+        <xsl:otherwise>
+          <xsl:value-of select="concat('menu_',concat(font,$id))"/>
+        </xsl:otherwise>
       </xsl:choose>
     </xsl:variable>
     <xsl:variable name="whichGroup">
@@ -450,80 +445,82 @@
         <xsl:otherwise>menuitemgroup</xsl:otherwise>
       </xsl:choose>
     </xsl:variable>
-    
-    
-    <div class="nav-section-title" id="{$tagid}Title" onclick="SwitchMenu('{$tagid}')"><xsl:value-of select="h1"/></div>
-      <div class="{$whichGroup}" id="{$tagid}">
-        <xsl:for-each select= "ul/li">
-
-          <xsl:choose>
-            <xsl:when test="a">
-              <div class="menuitem"><a href="{a/@href}"><xsl:value-of select="a" /></a></div>
-            </xsl:when>
-            <xsl:when test="div/@class='current'">
-              <div class="menupage">
-                <div class="menupagetitle"><xsl:value-of select="div" /></div>
-                <xsl:if test="$config/toc/@max-depth&gt;0 and contains($minitoc-location,'menu')">
-                  <div class="menupageitemgroup">
-                      <xsl:for-each select = "//tocitems/tocitem">
-                        <div class="menupageitem">
-                          <xsl:choose>
-                            <xsl:when test="string-length(@title)>15">
-                              <a href="{@href}" title="{@title}"><xsl:value-of select="substring(@title,0,20)" />...</a>
-                            </xsl:when>
-                            <xsl:otherwise>
-                              <a href="{@href}"><xsl:value-of select="@title" /></a>
-                            </xsl:otherwise>
-                          </xsl:choose>
-                        </div>
-                      </xsl:for-each>
-                  </div>
-                </xsl:if>
+    <div class="nav-section-title" id="{$tagid}Title" onclick="SwitchMenu('{$tagid}')">
+      <xsl:value-of select="h1"/>
+    </div>
+    <div class="{$whichGroup}" id="{$tagid}">
+      <xsl:for-each select= "ul/li">
+        <xsl:choose>
+          <xsl:when test="a">
+            <div class="menuitem"><a href="{a/@href}">
+              <xsl:value-of select="a" /></a>
+            </div>
+          </xsl:when>
+          <xsl:when test="div/@class='current'">
+            <div class="menupage">
+              <div class="menupagetitle">
+                <xsl:value-of select="div" />
               </div>
-            </xsl:when>
-            <xsl:otherwise>
-              <xsl:call-template name = "innermenuli">
-                 <xsl:with-param name="id" select="concat($id, '.', position())"/>
-              </xsl:call-template>
-            </xsl:otherwise>
-          </xsl:choose>
-
-        </xsl:for-each>
-      </div>
+              <xsl:if test="$config/toc/@max-depth&gt;0 and contains($minitoc-location,'menu')">
+                <div class="menupageitemgroup">
+                  <xsl:for-each select = "//tocitems/tocitem">
+                    <div class="menupageitem">
+                      <xsl:choose>
+                        <xsl:when test="string-length(@title)>15"><a href="{@href}" title="{@title}">
+                          <xsl:value-of select="substring(@title,0,20)" />...</a>
+                        </xsl:when>
+                        <xsl:otherwise><a href="{@href}">
+                          <xsl:value-of select="@title" /></a>
+                        </xsl:otherwise>
+                      </xsl:choose>
+                    </div>
+                  </xsl:for-each>
+                </div>
+              </xsl:if>
+            </div>
+          </xsl:when>
+          <xsl:otherwise>
+            <xsl:call-template name = "innermenuli">
+              <xsl:with-param name="id" select="concat($id, '.', position())"/>
+            </xsl:call-template>
+          </xsl:otherwise>
+        </xsl:choose>
+      </xsl:for-each>
+    </div>
   </xsl:template>
-
 <!--+
     |Generates the PDF link 
     +-->
   <xsl:template match="div[@id='skinconf-pdflink']">
-    <xsl:if test="not($config/disable-pdf-link) or $disable-pdf-link = 'false'"> 
+    <xsl:if test="not($config/disable-pdf-link) or $disable-pdf-link = 'false'">
       <div id="content-pdf" title="Portable Document Format"><a href="{$filename-noext}.pdf" class="dida">
-        <img class="skin" src="{$skin-img-dir}/pdfdoc.gif" alt="PDF - icon"/><br/>
+        <img class="skin" src="{$skin-img-dir}/pdfdoc.gif" alt="PDF - icon"/>
+        <br/>
         PDF</a>
       </div>
     </xsl:if>
   </xsl:template>
-  
-  
   <xsl:template match="div[@id='skinconf-xmllink']">
-    <xsl:if test="not($config/disable-xml-link) or $disable-xml-link = 'false'"> 
+    <xsl:if test="not($config/disable-xml-link) or $disable-xml-link = 'false'">
       <div class="xmllink" title="raw XML"><a href="{$filename-noext}.xml" class="dida">
-        <img class="skin" src="{$skin-img-dir}/xmldoc.gif" alt="XML - icon" /><br/>
+        <img class="skin" src="{$skin-img-dir}/xmldoc.gif" alt="XML - icon" />
+        <br/>
         XML</a>
       </div>
     </xsl:if>
   </xsl:template>
   <xsl:template match="div[@id='skinconf-podlink']">
-    <xsl:if test="not($config/disable-pod-link) or $disable-pod-link = 'false'"> 
+    <xsl:if test="not($config/disable-pod-link) or $disable-pod-link = 'false'">
       <div class="podlink" title="Plain Old Documentation"><a href="{$filename-noext}.pod" class="dida">
-        <img class="skin" src="{$skin-img-dir}/poddoc.png" alt="POD - icon" /><br/>
+        <img class="skin" src="{$skin-img-dir}/poddoc.png" alt="POD - icon" />
+        <br/>
         POD</a>
       </div>
     </xsl:if>
   </xsl:template>
   <xsl:template match="div[@id='skinconf-printlink']">
-    <xsl:if test="not($config/disable-print-link) or $disable-print-link = 'false'"> 
-        <script type="text/javascript" language="Javascript">
+    <xsl:if test="not($config/disable-print-link) or $disable-print-link = 'false'">
+<script type="text/javascript" language="Javascript">
 function printit() {
   if (window.print) {
     window.focus();
@@ -531,8 +528,7 @@
   }
 }
         </script>
-
-        <script type="text/javascript" language="Javascript">
+<script type="text/javascript" language="Javascript">
 var NS = (navigator.appName == "Netscape");
 var VERSION = parseInt(navigator.appVersion);
 if (VERSION > 3) {
@@ -546,10 +542,9 @@
         </script>
     </xsl:if>
   </xsl:template>
-  
   <xsl:template match="div[@id='disable-font-script']">
     <xsl:if test="$disable-font-script = 'false'">
-	  <div class="trail">
+      <div class="trail">
 	        Font size: 
 	          &#160;<input type="button" onclick="ndeSetTextSize('reset'); return false;" title="Reset text" class="resetfont" value="Reset"/>      
 	          &#160;<input type="button" onclick="ndeSetTextSize('decr'); return false;" title="Shrink text" class="smallerfont" value="-a"/>
@@ -557,17 +552,16 @@
       </div>
     </xsl:if>
   </xsl:template>
-  
-<xsl:template match="div[@id='skinconf-toc-page']">
+  <xsl:template match="div[@id='skinconf-toc-page']">
     <xsl:if test="$config/toc">
       <xsl:if test="contains($minitoc-location,'page')">
         <xsl:if test="count(//tocitems/tocitem) >= $config/toc/@min-sections">
-			<div id="minitoc-area">
-    			<xsl:call-template name="minitoc">
-        		    <xsl:with-param name="tocroot" select="//tocitems"/>
-	          	</xsl:call-template>
-			</div>
-	    </xsl:if>
+          <div id="minitoc-area">
+            <xsl:call-template name="minitoc">
+              <xsl:with-param name="tocroot" select="//tocitems"/>
+            </xsl:call-template>
+          </div>
+        </xsl:if>
       </xsl:if>
     </xsl:if>
   </xsl:template>

Modified: forrest/trunk/main/webapp/skins/leather-dev/xslt/xml/sitemap.xmap
URL: http://svn.apache.org/viewvc/forrest/trunk/main/webapp/skins/leather-dev/xslt/xml/sitemap.xmap?view=diff&rev=526993&r1=526992&r2=526993
==============================================================================
--- forrest/trunk/main/webapp/skins/leather-dev/xslt/xml/sitemap.xmap (original)
+++ forrest/trunk/main/webapp/skins/leather-dev/xslt/xml/sitemap.xmap Mon Apr  9 18:49:44 2007
@@ -15,56 +15,45 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 -->
-
 <!-- CVS $Id: sitemap.xmap,v 1.26 2004/05/19 11:32:02 cziegeler Exp $ -->
-
 <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
-
 <!-- =========================== Components ================================ -->
-
- <map:components>
-  <map:generators default="file">
-   <map:generator name="linkstatus" src="org.apache.cocoon.generation.LinkStatusGenerator"/>
-   <map:generator name="calendar" src="org.apache.cocoon.generation.CalendarGenerator"/>
-  </map:generators>
-  <map:transformers default="xslt"/>
-  <map:readers default="resource"/>
-  <map:serializers default="html"/>
-  <map:matchers default="wildcard"/>
-  <map:selectors default="browser"/>
- </map:components>
-
+  <map:components>
+    <map:generators default="file">
+      <map:generator name="linkstatus" src="org.apache.cocoon.generation.LinkStatusGenerator"/>
+      <map:generator name="calendar" src="org.apache.cocoon.generation.CalendarGenerator"/>
+    </map:generators>
+    <map:transformers default="xslt"/>
+    <map:readers default="resource"/>
+    <map:serializers default="html"/>
+    <map:matchers default="wildcard"/>
+    <map:selectors default="browser"/>
+  </map:components>
 <!-- =========================== Views =================================== -->
-
- <map:views>
-  <map:view name="content" from-label="content">
-   <map:serialize type="xml"/>
-  </map:view>
-
-  <map:view from-label="content" name="pretty-content">
-    <map:transform src="context://stylesheets/system/xml2html.xslt"/>
-    <map:serialize type="html"/>
-  </map:view>
-
-  <map:view name="links" from-position="last">
-   <map:serialize type="links"/>
-  </map:view>
- </map:views>
-
+  <map:views>
+    <map:view name="content" from-label="content">
+      <map:serialize type="xml"/>
+    </map:view>
+    <map:view from-label="content" name="pretty-content">
+      <map:transform src="context://stylesheets/system/xml2html.xslt"/>
+      <map:serialize type="html"/>
+    </map:view>
+    <map:view name="links" from-position="last">
+      <map:serialize type="links"/>
+    </map:view>
+  </map:views>
 <!-- =========================== Pipelines ================================= -->
-
- <map:pipelines>
-  <map:pipeline>
-   <map:match pattern="">
-     <map:generate src="fct-bits/c-fontsize-fct.xml"/>
-     <map:transform src="contract.xsl">
-        <map:parameter name="contextPath" value="{request:contextPath}"/>
-     </map:transform>
-     <map:serialize type="xml"/>
-   </map:match>
-  </map:pipeline>  
-
- <!-- 
+  <map:pipelines>
+    <map:pipeline>
+      <map:match pattern="">
+        <map:generate src="fct-bits/c-fontsize-fct.xml"/>
+        <map:transform src="contract.xsl">
+          <map:parameter name="contextPath" value="{request:contextPath}"/>
+        </map:transform>
+        <map:serialize type="xml"/>
+      </map:match>
+    </map:pipeline>
+<!-- 
 1. check all aviable fct
 2. check which fct are needed
 3. check where to place them
@@ -84,28 +73,27 @@
   </content>
 </contracts>
 -->
-  <map:pipeline>
-    <map:match pattern="contracts.xml">
-		  <map:generate type="directory" src="fct-bits">
-        <map:parameter name="depth" value="1"/>
-        <!-- sorted alphabetically -->
-      	<map:parameter name="reverse" value="false"/>
-      </map:generate>
-      <map:transform src="dir2contracts.xsl">
-        <map:parameter name="contentDir" value="{realpath:leather/fct-bits}"/>
-      </map:transform>
-      <map:serialize type="xml"/>
-    </map:match>
-  </map:pipeline>
-  
-  <map:pipeline>
-    <map:match pattern="ft">
-		   <map:generate src="ft-leather.xml"/>
-       <map:transform src="ft2xhtml.xsl">
+    <map:pipeline>
+      <map:match pattern="contracts.xml">
+        <map:generate type="directory" src="fct-bits">
+          <map:parameter name="depth" value="1"/>
+<!-- sorted alphabetically -->
+          <map:parameter name="reverse" value="false"/>
+        </map:generate>
+        <map:transform src="dir2contracts.xsl">
+          <map:parameter name="contentDir" value="{realpath:leather/fct-bits}"/>
+        </map:transform>
+        <map:serialize type="xml"/>
+      </map:match>
+    </map:pipeline>
+    <map:pipeline>
+      <map:match pattern="ft">
+        <map:generate src="ft-leather.xml"/>
+        <map:transform src="ft2xhtml.xsl">
           <map:parameter name="contextPath" value="{request:contextPath}"/>
-       </map:transform>
-       <map:serialize type="xml"/>
-    </map:match>
-  </map:pipeline>
- </map:pipelines>
+        </map:transform>
+        <map:serialize type="xml"/>
+      </map:match>
+    </map:pipeline>
+  </map:pipelines>
 </map:sitemap>

Modified: forrest/trunk/main/webapp/skins/plain-dev/xslt/html/book-to-menu.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/main/webapp/skins/plain-dev/xslt/html/book-to-menu.xsl?view=diff&rev=526993&r1=526992&r2=526993
==============================================================================
--- forrest/trunk/main/webapp/skins/plain-dev/xslt/html/book-to-menu.xsl (original)
+++ forrest/trunk/main/webapp/skins/plain-dev/xslt/html/book-to-menu.xsl Mon Apr  9 18:49:44 2007
@@ -18,7 +18,6 @@
 <!--
 See the imported book-to-menu.xsl for details.
 -->
-
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
   <xsl:import href="../../../common/xslt/html/book-to-menu.xsl"/>
 </xsl:stylesheet>

Modified: forrest/trunk/main/webapp/skins/plain-dev/xslt/html/document-to-html.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/main/webapp/skins/plain-dev/xslt/html/document-to-html.xsl?view=diff&rev=526993&r1=526992&r2=526993
==============================================================================
--- forrest/trunk/main/webapp/skins/plain-dev/xslt/html/document-to-html.xsl (original)
+++ forrest/trunk/main/webapp/skins/plain-dev/xslt/html/document-to-html.xsl Mon Apr  9 18:49:44 2007
@@ -28,135 +28,124 @@
 
 -->
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-
   <xsl:import href="../../../common/xslt/html/document-to-html.xsl"/>
-  
   <xsl:template match="document">
-   <html>
-       <head>
-          <xsl:if test="normalize-space(header/title)!=''">
-            <title><xsl:value-of select="header/title"/></title>
-          </xsl:if>         
-          <link rel     = "schema.DC"
+    <html>
+      <head>
+        <xsl:if test="normalize-space(header/title)!=''">
+          <title><xsl:value-of select="header/title"/></title>
+        </xsl:if><link rel     = "schema.DC"
                href    = "http://purl.org/DC/elements/1.0/"/>
-          <xsl:if test="normalize-space(header/subtitle)!=''">
-             <meta name    = "DC.Subject"      content = "{header/subtitle}"/>
-          </xsl:if>
-          <xsl:if test="header/authors">
-            <xsl:for-each select="header/authors/person">
-              <meta name    = "DC.Creator"      content = "{@name}"/>
-            </xsl:for-each>
-          </xsl:if>
-          <xsl:if test="header/abstract">
-              <meta name    = "DC.Description"  content = "{header/abstract}"/>
-          </xsl:if>          
-       </head>
-    <body>
-      <!-- include ssi top --> 
+        <xsl:if test="normalize-space(header/subtitle)!=''">
+          <meta name    = "DC.Subject"      content = "{header/subtitle}"/>
+        </xsl:if>
+        <xsl:if test="header/authors">
+          <xsl:for-each select="header/authors/person">
+            <meta name    = "DC.Creator"      content = "{@name}"/>
+          </xsl:for-each>
+        </xsl:if>
+        <xsl:if test="header/abstract">
+          <meta name    = "DC.Description"  content = "{header/abstract}"/>
+        </xsl:if>
+      </head>
+      <body>
+<!-- include ssi top -->
         <xsl:apply-templates select="body"/>
-      <!-- include ssi bottom --> 
-    </body>  
+<!-- include ssi bottom -->
+      </body>
     </html>
   </xsl:template>
-
   <xsl:template match="body">
     <xsl:apply-templates/>
   </xsl:template>
-
   <xsl:template match="section">
     <xsl:variable name = "level" select = "count(ancestor::section)+1" />
     <xsl:choose>
       <xsl:when test="$level=1">
-        <h1><xsl:value-of select="title"/></h1>
+        <h1>
+          <xsl:value-of select="title"/>
+        </h1>
         <xsl:apply-templates/>
       </xsl:when>
       <xsl:when test="$level=2">
-        <h2><xsl:value-of select="title"/></h2>
+        <h2>
+          <xsl:value-of select="title"/>
+        </h2>
         <xsl:apply-templates select="*[not(self::title)]"/>
       </xsl:when>
-      <!-- If a faq, answer sections will be level 3 (1=Q/A, 2=part) -->
+<!-- If a faq, answer sections will be level 3 (1=Q/A, 2=part) -->
       <xsl:when test="$level=3 and $notoc='true'">
-        <h3 class="faq"><xsl:value-of select="title"/></h3>
+        <h3 class="faq">
+          <xsl:value-of select="title"/>
+        </h3>
         <xsl:apply-templates select="*[not(self::title)]"/>
       </xsl:when>
       <xsl:when test="$level=3">
-        <h3><xsl:value-of select="title"/></h3>
+        <h3>
+          <xsl:value-of select="title"/>
+        </h3>
         <xsl:apply-templates select="*[not(self::title)]"/>
       </xsl:when>
       <xsl:otherwise>
-        <h4><xsl:value-of select="title"/></h4>
+        <h4>
+          <xsl:value-of select="title"/>
+        </h4>
         <xsl:apply-templates select="*[not(self::title)]"/>
       </xsl:otherwise>
     </xsl:choose>
-
-  </xsl:template>  
-
+  </xsl:template>
   <xsl:template match="fixme">
-    <div class="fixme"><xsl:value-of select="@author"/>:
+    <div class="fixme">
+      <xsl:value-of select="@author"/>:
       <xsl:apply-templates/>
     </div>
   </xsl:template>
-  
   <xsl:template match="note">
     <div class="note">
       <xsl:apply-templates/>
     </div>
   </xsl:template>
-  
   <xsl:template match="warning">
     <div class="warning">
       <xsl:apply-templates/>
     </div>
   </xsl:template>
-  
   <xsl:template match="link">
     <xsl:apply-imports/>
   </xsl:template>
-
   <xsl:template match="jump">
     <xsl:apply-imports/>
   </xsl:template>
-
   <xsl:template match="fork">
     <xsl:apply-imports/>
   </xsl:template>
-
   <xsl:template match="p[@xml:space='preserve']">
     <xsl:apply-imports/>
   </xsl:template>
-
   <xsl:template match="source">
     <xsl:apply-imports/>
   </xsl:template>
-
   <xsl:template match="anchor">
     <xsl:apply-imports/>
   </xsl:template>
-
   <xsl:template match="icon">
     <xsl:apply-imports/>
   </xsl:template>
-
   <xsl:template match="code">
     <xsl:apply-imports/>
   </xsl:template>
-
   <xsl:template match="figure">
     <xsl:apply-imports/>
   </xsl:template>
-  
   <xsl:template match="table">
     <table>
-        <xsl:apply-templates/>
+      <xsl:apply-templates/>
     </table>
   </xsl:template>
-
   <xsl:template match="caption">
-    <xsl:value-of select="."/> 
+    <xsl:value-of select="."/>
   </xsl:template>
-  
   <xsl:template match="title">
-    <!-- do not show title elements, they are already in other places-->
+<!-- do not show title elements, they are already in other places-->
   </xsl:template>
-
 </xsl:stylesheet>

Modified: forrest/trunk/main/webapp/skins/plain-dev/xslt/html/site-to-xhtml.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/main/webapp/skins/plain-dev/xslt/html/site-to-xhtml.xsl?view=diff&rev=526993&r1=526992&r2=526993
==============================================================================
--- forrest/trunk/main/webapp/skins/plain-dev/xslt/html/site-to-xhtml.xsl (original)
+++ forrest/trunk/main/webapp/skins/plain-dev/xslt/html/site-to-xhtml.xsl Mon Apr  9 18:49:44 2007
@@ -15,14 +15,9 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 -->
-
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-
   <xsl:import href="../../../common/xslt/html/site-to-xhtml.xsl"/>
-  
   <xsl:template match="site">
-     <xsl:apply-templates select="html"/>
+    <xsl:apply-templates select="html"/>
   </xsl:template>
- 
- 
 </xsl:stylesheet>

Modified: forrest/trunk/main/webapp/skins/plain-dev/xslt/html/tab-to-menu.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/main/webapp/skins/plain-dev/xslt/html/tab-to-menu.xsl?view=diff&rev=526993&r1=526992&r2=526993
==============================================================================
--- forrest/trunk/main/webapp/skins/plain-dev/xslt/html/tab-to-menu.xsl (original)
+++ forrest/trunk/main/webapp/skins/plain-dev/xslt/html/tab-to-menu.xsl Mon Apr  9 18:49:44 2007
@@ -17,4 +17,4 @@
 -->
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
   <xsl:import href="../../../common/xslt/html/tab-to-menu.xsl"/>
-</xsl:stylesheet>
\ No newline at end of file
+</xsl:stylesheet>

Modified: forrest/trunk/main/webapp/skins/scales/css/profile.css.xslt
URL: http://svn.apache.org/viewvc/forrest/trunk/main/webapp/skins/scales/css/profile.css.xslt?view=diff&rev=526993&r1=526992&r2=526993
==============================================================================
--- forrest/trunk/main/webapp/skins/scales/css/profile.css.xslt (original)
+++ forrest/trunk/main/webapp/skins/scales/css/profile.css.xslt Mon Apr  9 18:49:44 2007
@@ -16,53 +16,43 @@
   limitations under the License.
 -->
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-
   <xsl:import href="../../common/css/forrest.css.xslt"/>
-
-  <!-- xsl:output is not used by Forrest but makes it possible to debug the 
+<!-- xsl:output is not used by Forrest but makes it possible to debug the 
        stylesheet in standalone editors -->
   <xsl:output method = "text"  omit-xml-declaration="yes"  />
-  
 <!-- ==================== main block colors ============================ -->
-
-<xsl:template match="color[@name='header']">
+  <xsl:template match="color[@name='header']">
 #top          { background-color: <xsl:value-of select="@value"/>;}  
 </xsl:template>
-
-<xsl:template match="color[@name='tab-selected']"> 
+  <xsl:template match="color[@name='tab-selected']"> 
 #top .header .current { background-color: <xsl:value-of select="@value"/>;} 
 #top .header .current a:link {  color: <xsl:value-of select="@link"/>;  }
 #top .header .current a:visited { color: <xsl:value-of select="@vlink"/>; }
 #top .header .current a:hover { color: <xsl:value-of select="@hlink"/>; }
-</xsl:template> 
-
-<xsl:template match="color[@name='tab-unselected']"> 
+</xsl:template>
+  <xsl:template match="color[@name='tab-unselected']"> 
 #tabs li      { background-color: <xsl:value-of select="@value"/> ;} 
 #tabs li a:link {  color: <xsl:value-of select="@link"/>;  }
 #tabs li a:visited { color: <xsl:value-of select="@vlink"/>; }
 #tabs li a:hover { color: <xsl:value-of select="@hlink"/>; }
-</xsl:template> 
-
-<xsl:template match="color[@name='subtab-selected']">
+</xsl:template>
+  <xsl:template match="color[@name='subtab-selected']">
 #level2tabs       { background-color: <xsl:value-of select="@value"/> ;} 
 #level2tabs a:link {  color: <xsl:value-of select="@link"/>;  }
 #level2tabs a:visited { color: <xsl:value-of select="@vlink"/>; }
 #level2tabs a:hover { color: <xsl:value-of select="@hlink"/>; }
-</xsl:template> 
-
+</xsl:template>
 <!--xsl:template match="color[@name='subtab-unselected']">
 .level2tabstrip { background-color: <xsl:value-of select="@value"/>;}
 .datenote { background-color: <xsl:value-of select="@value"/>;} 
 .level2tabstrip.unselected a:link {  color: <xsl:value-of select="@link"/>;  }
 .level2tabstrip.unselected a:visited { color: <xsl:value-of select="@vlink"/>; }
 .level2tabstrip.unselected a:hover { color: <xsl:value-of select="@hlink"/>; }
-</xsl:template--> 
-
-<xsl:template match="color[@name='heading']">
+</xsl:template-->
+  <xsl:template match="color[@name='heading']">
 .heading { background-color: <xsl:value-of select="@value"/>;} 
-</xsl:template> 
-
-<xsl:template match="color[@name='subheading']">
+</xsl:template>
+  <xsl:template match="color[@name='subheading']">
 .boxed { background-color: <xsl:value-of select="@value"/>;} 
 .underlined_5 	{border-bottom: solid 5px <xsl:value-of select="@value"/>;}
 .underlined_10 	{border-bottom: solid 10px <xsl:value-of select="@value"/>;}
@@ -70,8 +60,8 @@
 background-color: <xsl:value-of select="@value"/>; 
 color: <xsl:value-of select="@font"/>;
 }
-</xsl:template> 
-<xsl:template match="color[@name='feedback']">    
+</xsl:template>
+  <xsl:template match="color[@name='feedback']">    
 #feedback {
 color: <xsl:value-of select="@font"/>;
 background: <xsl:value-of select="@value"/>;
@@ -81,8 +71,7 @@
 color: <xsl:value-of select="@font"/>;
 }   
 </xsl:template>
-
-<xsl:template match="color[@name='breadtrail']">
+  <xsl:template match="color[@name='breadtrail']">
 #main .breadtrail {
 background: <xsl:value-of select="@value"/>; 
 color: <xsl:value-of select="@font"/>;
@@ -99,30 +88,28 @@
 #top .breadtrail a:hover { color: <xsl:value-of select="@hlink"/>; }    
 </xsl:template>
 <!--Fix for other (old) profiles-->
-<xsl:template match="color[@name='navstrip']">
+  <xsl:template match="color[@name='navstrip']">
 #publishedStrip { 
 color: <xsl:value-of select="@font"/>;
 background: <xsl:value-of select="@value"/>; 
 }
-</xsl:template> 
+</xsl:template>
 <!--has to go after the nav-strip (no 'navstrip')-->
-<xsl:template match="color[@name='published']">
+  <xsl:template match="color[@name='published']">
 #publishedStrip { 
 color: <xsl:value-of select="@font"/>;
 background: <xsl:value-of select="@value"/>; 
 }
-</xsl:template> 
-<xsl:template match="color[@name='toolbox']">
+</xsl:template>
+  <xsl:template match="color[@name='toolbox']">
 #menu .menupagetitle  { background-color: <xsl:value-of select="@value"/>}
-</xsl:template> 
-
-<xsl:template match="color[@name='border']">
+</xsl:template>
+  <xsl:template match="color[@name='border']">
 #menu           { border-color: <xsl:value-of select="@value"/>;}
 #menu .menupagetitle  { border-color: <xsl:value-of select="@value"/>;}
 #menu .menupageitemgroup  { border-color: <xsl:value-of select="@value"/>;}
-</xsl:template> 
-
-<xsl:template match="color[@name='menu']">
+</xsl:template>
+  <xsl:template match="color[@name='menu']">
 #menu      { background-color: <xsl:value-of select="@value"/>;} 
 #menu  {  color: <xsl:value-of select="@font"/>;} 
 #menu a:link {  color: <xsl:value-of select="@link"/>;} 
@@ -130,8 +117,8 @@
 #menu a:hover {  
 background-color: <xsl:value-of select="@value"/>;
 color: <xsl:value-of select="@hlink"/>;} 
-</xsl:template> 
-<xsl:template match="color[@name='dialog']"> 
+</xsl:template>
+  <xsl:template match="color[@name='dialog']"> 
 #menu .menupagetitle  { color: <xsl:value-of select="@font"/>;}    
 #menu .menupageitemgroup     { 
 background-color: <xsl:value-of select="@value"/>;
@@ -145,21 +132,20 @@
 background-color: <xsl:value-of select="@value"/>;
 color: <xsl:value-of select="@hlink"/>;
 }
-</xsl:template> 
-<xsl:template match="color[@name='menuheading']">
+</xsl:template>
+  <xsl:template match="color[@name='menuheading']">
 #menu h1 {
 color: <xsl:value-of select="@font"/>;
 background-color: <xsl:value-of select="@value"/>;
 }   
-</xsl:template> 
-<xsl:template match="color[@name='searchbox']"> 
+</xsl:template>
+  <xsl:template match="color[@name='searchbox']"> 
 #top .searchbox { 
 background-color: <xsl:value-of select="@value"/> ;
 color: <xsl:value-of select="@font"/>; 
 } 
 </xsl:template>
-
-<xsl:template match="color[@name='body']">
+  <xsl:template match="color[@name='body']">
 body{ 
 background-color: <xsl:value-of select="@value"/>;
 color: <xsl:value-of select="@font"/>;
@@ -169,40 +155,29 @@
 a:hover { color:<xsl:value-of select="@hlink"/>} 
 
 </xsl:template>
-
-<xsl:template match="color[@name='footer']"> 
+  <xsl:template match="color[@name='footer']"> 
 #footer       { background-color: <xsl:value-of select="@value"/>;} 
-</xsl:template> 
-
-
+</xsl:template>
 <!-- ==================== other colors ============================ -->
-<xsl:template match="color[@name='highlight']"> 
+  <xsl:template match="color[@name='highlight']"> 
 .highlight        { background-color: <xsl:value-of select="@value"/>;} 
-</xsl:template> 
-
-<xsl:template match="color[@name='fixme']"> 
+</xsl:template>
+  <xsl:template match="color[@name='fixme']"> 
 .fixme        { border-color: <xsl:value-of select="@value"/>;} 
-</xsl:template> 
-
-<xsl:template match="color[@name='note']"> 
+</xsl:template>
+  <xsl:template match="color[@name='note']"> 
 .note         { border-color: <xsl:value-of select="@value"/>;} 
-</xsl:template> 
-
-<xsl:template match="color[@name='warning']"> 
+</xsl:template>
+  <xsl:template match="color[@name='warning']"> 
 .warning         { border-color: <xsl:value-of select="@value"/>;} 
 </xsl:template>
-
-<xsl:template match="color[@name='code']"> 
+  <xsl:template match="color[@name='code']"> 
 .code         { border-color: <xsl:value-of select="@value"/>;} 
-</xsl:template> 
-
-<xsl:template match="color[@name='table']"> 
+</xsl:template>
+  <xsl:template match="color[@name='table']"> 
 .ForrestTable      { background-color: <xsl:value-of select="@value"/>;} 
-</xsl:template> 
-
-<xsl:template match="color[@name='table-cell']"> 
+</xsl:template>
+  <xsl:template match="color[@name='table-cell']"> 
 .ForrestTable td   { background-color: <xsl:value-of select="@value"/>;} 
-</xsl:template> 
-
-
+</xsl:template>
 </xsl:stylesheet>

Modified: forrest/trunk/main/webapp/skins/scales/skinconf.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/main/webapp/skins/scales/skinconf.xsl?view=diff&rev=526993&r1=526992&r2=526993
==============================================================================
--- forrest/trunk/main/webapp/skins/scales/skinconf.xsl (original)
+++ forrest/trunk/main/webapp/skins/scales/skinconf.xsl Mon Apr  9 18:49:44 2007
@@ -16,138 +16,122 @@
   limitations under the License.
 -->
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-        
-    <xsl:template match="skinconfig">
-
-  <xsl:if test="not(colors)">
-  <colors>
+  <xsl:template match="skinconfig">
+    <xsl:if test="not(colors)">
+      <colors>
 <!-- Lenya -->
-  <color name="header" value="#ffffff"/>
-
-    <color name="tab-selected" value="#4C6C8F" link="#ffffff" vlink="#ffffff" hlink="#ffffff"/>
-    <color name="tab-unselected" value="#E5E4D9" link="#000000" vlink="#000000" hlink="#000000"/>
-    <color name="subtab-selected" value="#4C6C8F" link="#ffffff" vlink="#ffffff" hlink="#ffffff"/>
-    <color name="subtab-unselected" value="#E5E4D9" link="#000000" vlink="#000000" hlink="#000000"/>
-
-    <color name="heading" value="#E5E4D9"/>
-    <color name="subheading" value="#E5E4D9"/>
-    <color name="published" value="#4C6C8F" font="#FFFFFF"/>
-	<color name="feedback" value="#4C6C8F" font="#FFFFFF" align="center"/>
-    <color name="navstrip" value="#E5E4D9" font="#000000"/>
-
-    <color name="toolbox" value="#CFDCED" font="#000000"/>
-
-    <color name="border" value="#999999"/>
-    <color name="menu" value="#4C6C8F" font="#ffffff" link="#ffffff" vlink="#ffffff" hlink="#ffffff"  />    
-    <color name="menuheading" value="#cfdced" font="#000000" />
-    <color name="searchbox" value="#E5E4D9" font="#000000"/>
-    
-    <color name="dialog" value="#E5E4D9" font="#000000"/>
-	<color name="body" value="#ffffff" />            
-    
-    <color name="table" value="#ccc"/>    
-    <color name="table-cell" value="#ffffff"/>   
-    <color name="highlight" value="#ffff00"/>
-    <color name="fixme" value="#cc6600"/>
-    <color name="note" value="#006699"/>
-    <color name="warning" value="#990000"/>
-    <color name="code" value="#003366"/>
-        
-    <color name="footer" value="#E5E4D9"/>
-  </colors>
-  </xsl:if>
-
-     <xsl:copy>
+        <color name="header" value="#ffffff"/>
+        <color name="tab-selected" value="#4C6C8F" link="#ffffff" vlink="#ffffff" hlink="#ffffff"/>
+        <color name="tab-unselected" value="#E5E4D9" link="#000000" vlink="#000000" hlink="#000000"/>
+        <color name="subtab-selected" value="#4C6C8F" link="#ffffff" vlink="#ffffff" hlink="#ffffff"/>
+        <color name="subtab-unselected" value="#E5E4D9" link="#000000" vlink="#000000" hlink="#000000"/>
+        <color name="heading" value="#E5E4D9"/>
+        <color name="subheading" value="#E5E4D9"/>
+        <color name="published" value="#4C6C8F" font="#FFFFFF"/>
+        <color name="feedback" value="#4C6C8F" font="#FFFFFF" align="center"/>
+        <color name="navstrip" value="#E5E4D9" font="#000000"/>
+        <color name="toolbox" value="#CFDCED" font="#000000"/>
+        <color name="border" value="#999999"/>
+        <color name="menu" value="#4C6C8F" font="#ffffff" link="#ffffff" vlink="#ffffff" hlink="#ffffff"  />
+        <color name="menuheading" value="#cfdced" font="#000000" />
+        <color name="searchbox" value="#E5E4D9" font="#000000"/>
+        <color name="dialog" value="#E5E4D9" font="#000000"/>
+        <color name="body" value="#ffffff" />
+        <color name="table" value="#ccc"/>
+        <color name="table-cell" value="#ffffff"/>
+        <color name="highlight" value="#ffff00"/>
+        <color name="fixme" value="#cc6600"/>
+        <color name="note" value="#006699"/>
+        <color name="warning" value="#990000"/>
+        <color name="code" value="#003366"/>
+        <color name="footer" value="#E5E4D9"/>
+      </colors>
+    </xsl:if>
+    <xsl:copy>
       <xsl:copy-of select="@*"/>
-      <xsl:copy-of select="node()[not(name(.)='colors')]"/>     
+      <xsl:copy-of select="node()[not(name(.)='colors')]"/>
       <xsl:apply-templates select="colors"/>
-     </xsl:copy> 
-
-    </xsl:template>
-
-    <xsl:template match="colors">
-     <xsl:copy>
+    </xsl:copy>
+  </xsl:template>
+  <xsl:template match="colors">
+    <xsl:copy>
       <xsl:copy-of select="@*"/>
-      <xsl:copy-of select="node()[name(.)='color']"/> 
-      
-     <xsl:if test="not(color[@name='header'])">
-       <color name="header" value="#FFFFFF"/>
-     </xsl:if>  
-     <xsl:if test="not(color[@name='tab-selected'])">
-      <color name="tab-selected" value="#4C6C8F" link="#ffffff" vlink="#ffffff" hlink="#ffffff"/>
-     </xsl:if>  
-     <xsl:if test="not(color[@name='tab-unselected'])">
-      <color name="tab-unselected" value="#E5E4D9" link="#000000" vlink="#000000" hlink="#000000"/>
-     </xsl:if>
-     <xsl:if test="not(color[@name='subtab-selected'])">
-      <color name="subtab-selected" value="#4C6C8F" link="#ffffff" vlink="#ffffff" hlink="#ffffff"/>
-     </xsl:if>  
-     <xsl:if test="not(color[@name='subtab-unselected'])">
-      <color name="subtab-unselected" value="#E5E4D9" link="#000000" vlink="#000000" hlink="#000000"/>
-     </xsl:if>  
-     <xsl:if test="not(color[@name='heading'])">
-      <color name="heading" value="#E5E4D9"/>
-     </xsl:if>  
-     <xsl:if test="not(color[@name='subheading'])">
-      <color name="subheading" value="#E5E4D9"/>
-     </xsl:if>
+      <xsl:copy-of select="node()[name(.)='color']"/>
+      <xsl:if test="not(color[@name='header'])">
+        <color name="header" value="#FFFFFF"/>
+      </xsl:if>
+      <xsl:if test="not(color[@name='tab-selected'])">
+        <color name="tab-selected" value="#4C6C8F" link="#ffffff" vlink="#ffffff" hlink="#ffffff"/>
+      </xsl:if>
+      <xsl:if test="not(color[@name='tab-unselected'])">
+        <color name="tab-unselected" value="#E5E4D9" link="#000000" vlink="#000000" hlink="#000000"/>
+      </xsl:if>
+      <xsl:if test="not(color[@name='subtab-selected'])">
+        <color name="subtab-selected" value="#4C6C8F" link="#ffffff" vlink="#ffffff" hlink="#ffffff"/>
+      </xsl:if>
+      <xsl:if test="not(color[@name='subtab-unselected'])">
+        <color name="subtab-unselected" value="#E5E4D9" link="#000000" vlink="#000000" hlink="#000000"/>
+      </xsl:if>
+      <xsl:if test="not(color[@name='heading'])">
+        <color name="heading" value="#E5E4D9"/>
+      </xsl:if>
+      <xsl:if test="not(color[@name='subheading'])">
+        <color name="subheading" value="#E5E4D9"/>
+      </xsl:if>
       <xsl:if test="not(color[@name='feedback'])">
-		<color name="feedback" value="#4C6C8F" font="#FFFFFF" align="center"/>
-     </xsl:if> 
-     <xsl:if test="not(color[@name='published'])">
+        <color name="feedback" value="#4C6C8F" font="#FFFFFF" align="center"/>
+      </xsl:if>
+      <xsl:if test="not(color[@name='published'])">
         <color name="published" value="#4C6C8F" font="#FFFFFF"/>
-     </xsl:if> 
-     <xsl:if test="not(color[@name='navstrip'])">
-      <color name="navstrip" value="#E5E4D9" font="#000000"/>
-     </xsl:if>  
-     <xsl:if test="not(color[@name='toolbox'])">
-       <color name="toolbox" value="#CFDCED" font="#000000"/>
-     </xsl:if>  
-     <xsl:if test="not(color[@name='border'])">
-       <color name="border" value="#999999"/>
-     </xsl:if>       
-     <xsl:if test="not(color[@name='menu'])">
-      	<color name="menu" value="#4C6C8F" font="#ffffff" link="#ffffff" vlink="#ffffff" hlink="#ffffff"  /> 
-     </xsl:if>
-     <xsl:if test="not(color[@name='menuheading'])">
-	     <color name="menuheading" value="#cfdced" font="#000000" />
-     </xsl:if> 
-     <xsl:if test="not(color[@name='searchbox'])">
-	 	<color name="searchbox" value="#E5E4D9" font="#000000"/>
-     </xsl:if> 
-     <xsl:if test="not(color[@name='dialog'])">
-      <color name="dialog" value="#E5E4D9" font="#000000" link="#000000" vlink="#000000" hlink="#000000"/>
-     </xsl:if>  
-     <xsl:if test="not(color[@name='body'])">
-      <color name="body" value="#ffffff" /> 
-     </xsl:if>  
-     <xsl:if test="not(color[@name='table'])">
-      <color name="table" value="#ccc"/>    
-     </xsl:if>  
-     <xsl:if test="not(color[@name='table-cell'])">
-      <color name="table-cell" value="#ffffff"/>    
-     </xsl:if>  
-     <xsl:if test="not(color[@name='highlight'])">
-       <color name="highlight" value="#ffff00"/>
-     </xsl:if>  
-     <xsl:if test="not(color[@name='fixme'])">
-       <color name="fixme" value="#c60"/>
-     </xsl:if>  
-     <xsl:if test="not(color[@name='note'])">
-       <color name="note" value="#069"/>
-     </xsl:if>  
-     <xsl:if test="not(color[@name='warning'])">
-       <color name="warning" value="#900"/>
-     </xsl:if>  
-     <xsl:if test="not(color[@name='code'])">
-       <color name="code" value="#a5b6c6"/>
-     </xsl:if>  
-     <xsl:if test="not(color[@name='footer'])">
-       <color name="footer" value="#E5E4D9"/>
-     </xsl:if>  
-    
-     </xsl:copy> 
-
-    </xsl:template>
-    
+      </xsl:if>
+      <xsl:if test="not(color[@name='navstrip'])">
+        <color name="navstrip" value="#E5E4D9" font="#000000"/>
+      </xsl:if>
+      <xsl:if test="not(color[@name='toolbox'])">
+        <color name="toolbox" value="#CFDCED" font="#000000"/>
+      </xsl:if>
+      <xsl:if test="not(color[@name='border'])">
+        <color name="border" value="#999999"/>
+      </xsl:if>
+      <xsl:if test="not(color[@name='menu'])">
+        <color name="menu" value="#4C6C8F" font="#ffffff" link="#ffffff" vlink="#ffffff" hlink="#ffffff"  />
+      </xsl:if>
+      <xsl:if test="not(color[@name='menuheading'])">
+        <color name="menuheading" value="#cfdced" font="#000000" />
+      </xsl:if>
+      <xsl:if test="not(color[@name='searchbox'])">
+        <color name="searchbox" value="#E5E4D9" font="#000000"/>
+      </xsl:if>
+      <xsl:if test="not(color[@name='dialog'])">
+        <color name="dialog" value="#E5E4D9" font="#000000" link="#000000" vlink="#000000" hlink="#000000"/>
+      </xsl:if>
+      <xsl:if test="not(color[@name='body'])">
+        <color name="body" value="#ffffff" />
+      </xsl:if>
+      <xsl:if test="not(color[@name='table'])">
+        <color name="table" value="#ccc"/>
+      </xsl:if>
+      <xsl:if test="not(color[@name='table-cell'])">
+        <color name="table-cell" value="#ffffff"/>
+      </xsl:if>
+      <xsl:if test="not(color[@name='highlight'])">
+        <color name="highlight" value="#ffff00"/>
+      </xsl:if>
+      <xsl:if test="not(color[@name='fixme'])">
+        <color name="fixme" value="#c60"/>
+      </xsl:if>
+      <xsl:if test="not(color[@name='note'])">
+        <color name="note" value="#069"/>
+      </xsl:if>
+      <xsl:if test="not(color[@name='warning'])">
+        <color name="warning" value="#900"/>
+      </xsl:if>
+      <xsl:if test="not(color[@name='code'])">
+        <color name="code" value="#a5b6c6"/>
+      </xsl:if>
+      <xsl:if test="not(color[@name='footer'])">
+        <color name="footer" value="#E5E4D9"/>
+      </xsl:if>
+    </xsl:copy>
+  </xsl:template>
 </xsl:stylesheet>

Modified: forrest/trunk/main/webapp/skins/scales/xslt/fo/document-to-fo.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/main/webapp/skins/scales/xslt/fo/document-to-fo.xsl?view=diff&rev=526993&r1=526992&r2=526993
==============================================================================
--- forrest/trunk/main/webapp/skins/scales/xslt/fo/document-to-fo.xsl (original)
+++ forrest/trunk/main/webapp/skins/scales/xslt/fo/document-to-fo.xsl Mon Apr  9 18:49:44 2007
@@ -15,11 +15,8 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 -->
-
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                 xmlns:fo="http://www.w3.org/1999/XSL/Format"
                 version="1.0">
-
-<xsl:import href="../../../common/xslt/fo/document-to-fo.xsl"/>
-
+  <xsl:import href="../../../common/xslt/fo/document-to-fo.xsl"/>
 </xsl:stylesheet>

Modified: forrest/trunk/main/webapp/skins/scales/xslt/html/book-to-menu.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/main/webapp/skins/scales/xslt/html/book-to-menu.xsl?view=diff&rev=526993&r1=526992&r2=526993
==============================================================================
--- forrest/trunk/main/webapp/skins/scales/xslt/html/book-to-menu.xsl (original)
+++ forrest/trunk/main/webapp/skins/scales/xslt/html/book-to-menu.xsl Mon Apr  9 18:49:44 2007
@@ -19,81 +19,65 @@
 book-to-menu.xsl generates the HTML menu.  See the imported book-to-menu.xsl for
 details.
 -->
-
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-
   <xsl:import href="../../../common/xslt/html/book-to-menu.xsl"/>
-
   <xsl:template match="book">
     <div id="menu">
-        <ul>
-	      <xsl:apply-templates select="menu"/>
-	    </ul>
+      <ul>
+        <xsl:apply-templates select="menu"/>
+      </ul>
     </div>
   </xsl:template>
-
   <xsl:template match="menu">
-	<li>
-    <h1><xsl:value-of select="@label"/></h1>
-    <ul>
-      <xsl:apply-templates/>
-    </ul>
-    </li>
+    <li><h1>
+        <xsl:value-of select="@label"/>
+      </h1>
+      <ul>
+        <xsl:apply-templates/>
+      </ul></li>
   </xsl:template>
-
   <xsl:template match="menu-item[@type='hidden']"/>
-    
-    
-   <!-- 
+<!-- 
        FSO
        Show menu-items of this type only when the referenced page
        is currently open.
        Added to maintain context without having to show all pages always on the menu.
-   --> 
-   <xsl:template match="menu-item[@type='showWhenSelected']">
-        
-        <!-- Use apply-imports when overriding -->
-        <xsl:variable name="href-nofrag">
-            <xsl:call-template name="path-nofrag">
-                <xsl:with-param name="path" select="@href" />
-            </xsl:call-template>
-        </xsl:variable>
-        <!-- Compare with extensions stripped -->
-        <xsl:variable name="node-path">
-            <xsl:call-template name="normalize">
-                <xsl:with-param name="path" select="concat($dirname, $href-nofrag)" />
-            </xsl:call-template>
-        </xsl:variable>
-        <xsl:if test="$node-path = $path-nofrag">
-            
-            <li>  
-                <xsl:choose>
-                    <xsl:when test="contains(@href, '#')">
-                        <xsl:call-template name="selected-anchor" />
-                    </xsl:when>
-                    <xsl:otherwise>
-                        <xsl:call-template name="selected" />
-                    </xsl:otherwise>
-                </xsl:choose></li>
-            
-        </xsl:if>
-        
-   </xsl:template>  
-
+   -->
+  <xsl:template match="menu-item[@type='showWhenSelected']">
+<!-- Use apply-imports when overriding -->
+    <xsl:variable name="href-nofrag">
+      <xsl:call-template name="path-nofrag">
+        <xsl:with-param name="path" select="@href" />
+      </xsl:call-template>
+    </xsl:variable>
+<!-- Compare with extensions stripped -->
+    <xsl:variable name="node-path">
+      <xsl:call-template name="normalize">
+        <xsl:with-param name="path" select="concat($dirname, $href-nofrag)" />
+      </xsl:call-template>
+    </xsl:variable>
+    <xsl:if test="$node-path = $path-nofrag">
+      <li><xsl:choose>
+          <xsl:when test="contains(@href, '#')">
+            <xsl:call-template name="selected-anchor" />
+          </xsl:when>
+          <xsl:otherwise>
+            <xsl:call-template name="selected" />
+          </xsl:otherwise>
+        </xsl:choose></li>
+    </xsl:if>
+  </xsl:template>
   <xsl:template match="menu-item">
-    <li>
-     <xsl:apply-imports/>
-    </li>
+    <li><xsl:apply-imports/></li>
   </xsl:template>
-
   <xsl:template name="selected">
-	<div class="current"><xsl:value-of select="@label"/></div>
+    <div class="current">
+      <xsl:value-of select="@label"/>
+    </div>
   </xsl:template>
-
   <xsl:template name="print-external">
     <font color="#ffcc00">
       <xsl:apply-imports/>
     </font>
   </xsl:template>
-
 </xsl:stylesheet>

Modified: forrest/trunk/main/webapp/skins/scales/xslt/html/document-to-html.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/main/webapp/skins/scales/xslt/html/document-to-html.xsl?view=diff&rev=526993&r1=526992&r2=526993
==============================================================================
--- forrest/trunk/main/webapp/skins/scales/xslt/html/document-to-html.xsl (original)
+++ forrest/trunk/main/webapp/skins/scales/xslt/html/document-to-html.xsl Mon Apr  9 18:49:44 2007
@@ -19,16 +19,12 @@
 This stylesheet contains templates for converting documentv11 to HTML.  See the
 imported document-to-html.xsl for details.
 -->
-
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-
   <xsl:import href="../../../common/xslt/html/document-to-html.xsl"/>
-
   <xsl:template match="document">
     <meta-data>
-      <xsl:apply-templates select="header/meta"/>   
+      <xsl:apply-templates select="header/meta"/>
     </meta-data>
-    
     <div id="content">
       <div id="skinconf-printlink"/>
       <div id="skinconf-xmllink"/>
@@ -37,11 +33,14 @@
       <div id="skinconf-pdflink"/>
       <div id="disable-font-script"/>
       <xsl:if test="normalize-space(header/title)!=''">
-        <h1><xsl:value-of select="header/title"/></h1>
+        <h1>
+          <xsl:value-of select="header/title"/>
+        </h1>
       </xsl:if>
-
       <xsl:if test="normalize-space(header/subtitle)!=''">
-        <h3><xsl:value-of select="header/subtitle"/></h3>
+        <h3>
+          <xsl:value-of select="header/subtitle"/>
+        </h3>
       </xsl:if>
 <!--
       <xsl:apply-templates select="header/type"/>
@@ -56,15 +55,13 @@
         </xsl:if>
         <xsl:apply-templates select="header/version"/>
       </div>
-    -->  
-	<xsl:if test="header/abstract">
+    -->
+      <xsl:if test="header/abstract">
         <div class="abstract">
           <xsl:value-of select="header/abstract"/>
         </div>
       </xsl:if>
-
       <xsl:apply-templates select="body"/>
-
       <xsl:if test="header/authors">
         <p align="right">
           <font size="-2">
@@ -83,72 +80,75 @@
       </xsl:if>
     </div>
   </xsl:template>
-
   <xsl:template match="body">
     <div id="skinconf-toc-page"/>
     <xsl:apply-templates/>
   </xsl:template>
-  
-  
   <xsl:template match="@id">
     <xsl:apply-imports/>
   </xsl:template>
-
-  <xsl:template match="section">
-    <a name="{generate-id()}"/>
+  <xsl:template match="section"><a name="{generate-id()}"/>
     <xsl:apply-templates select="@id"/>
-
     <xsl:variable name = "level" select = "count(ancestor::section)+1" />
-
     <xsl:choose>
       <xsl:when test="$level=1">
         <div class="skinconf-heading-{$level}">
-          <h1><xsl:value-of select="title"/></h1>
+          <h1>
+            <xsl:value-of select="title"/>
+          </h1>
         </div>
         <div class="section">
-			<xsl:apply-templates select="*[not(self::title)]"/>
-		</div>  
+          <xsl:apply-templates select="*[not(self::title)]"/>
+        </div>
       </xsl:when>
       <xsl:when test="$level=2">
         <div class="skinconf-heading-{$level}">
-          <h2><xsl:value-of select="title"/></h2>
+          <h2>
+            <xsl:value-of select="title"/>
+          </h2>
         </div>
         <xsl:apply-templates select="*[not(self::title)]"/>
       </xsl:when>
-      <!-- If a faq, answer sections will be level 3 (1=Q/A, 2=part) -->
+<!-- If a faq, answer sections will be level 3 (1=Q/A, 2=part) -->
       <xsl:when test="$level=3 and $notoc='true'">
-        <h4 class="faq"><xsl:value-of select="title"/></h4>
-        <div align="right"><a href="#{@id}-menu">^</a></div>
+        <h4 class="faq">
+          <xsl:value-of select="title"/>
+        </h4>
+        <div align="right"><a href="#{@id}-menu">^</a>
+        </div>
         <div style="margin-left: 15px">
           <xsl:apply-templates select="*[not(self::title)]"/>
         </div>
       </xsl:when>
       <xsl:when test="$level=3">
-        <h4><xsl:value-of select="title"/></h4>
+        <h4>
+          <xsl:value-of select="title"/>
+        </h4>
         <xsl:apply-templates select="*[not(self::title)]"/>
-
       </xsl:when>
-
       <xsl:otherwise>
-        <h5><xsl:value-of select="title"/></h5>
+        <h5>
+          <xsl:value-of select="title"/>
+        </h5>
         <xsl:apply-templates select="*[not(self::title)]"/>
       </xsl:otherwise>
     </xsl:choose>
-
-  </xsl:template>  
-  
+  </xsl:template>
   <xsl:template match="figure">
     <xsl:apply-templates select="@id"/>
     <div style="text-align: center;" id="{@id}">
       <img src="{@src}" alt="{@alt}" class="figure"  id="{@id}">
         <xsl:if test="@height">
-          <xsl:attribute name="height"><xsl:value-of select="@height"/></xsl:attribute>
+          <xsl:attribute name="height">
+            <xsl:value-of select="@height"/>
+          </xsl:attribute>
         </xsl:if>
         <xsl:if test="@width">
-          <xsl:attribute name="width"><xsl:value-of select="@width"/></xsl:attribute>
+          <xsl:attribute name="width">
+            <xsl:value-of select="@width"/>
+          </xsl:attribute>
         </xsl:if>
       </img>
     </div>
   </xsl:template>
-
 </xsl:stylesheet>