Author: sebb
Date: Thu Jul 14 18:09:33 2005
New Revision: 219146

URL: http://svn.apache.org/viewcvs?rev=219146&view=rev
Log:
Simplify attribute definitions

Modified:
    jakarta/site/xdocs/stylesheets/site.xsl

Modified: jakarta/site/xdocs/stylesheets/site.xsl
URL: 
http://svn.apache.org/viewcvs/jakarta/site/xdocs/stylesheets/site.xsl?rev=219146&r1=219145&r2=219146&view=diff
==============================================================================
--- jakarta/site/xdocs/stylesheets/site.xsl (original)
+++ jakarta/site/xdocs/stylesheets/site.xsl Thu Jul 14 18:09:33 2005
@@ -13,8 +13,8 @@
        For example:
        
        <img alt="Alt">
-               <xsl:attribute name="border"><xsl:value-of 
select="'0'"/></xsl:attribute>
-               <xsl:attribute name="src"><xsl:value-of 
select="'xxx.gif'"/></xsl:attribute>                            
+               <xsl:attribute name="border">0</xsl:attribute>
+               <xsl:attribute name="src">xxx.gif</xsl:attribute>               
                
        </img>
        
        *****************************
@@ -45,13 +45,13 @@
     <html>
     <head>
        <meta http-equiv="Content-Type">
-    <xsl:attribute name="content"><xsl:value-of select="'text/html; 
charset=iso-8859-1'"/></xsl:attribute>
+    <xsl:attribute name="content">text/html; charset=iso-8859-1</xsl:attribute>
        </meta> 
     <xsl:apply-templates select="meta"/>
     <title><xsl:value-of select="$site/title"/> - <xsl:value-of 
select="properties/title"/></title>
     <link rel="stylesheet">
-    <xsl:attribute name="href"><xsl:value-of 
select="'/style/style.css'"/></xsl:attribute>
-    <xsl:attribute name="type"><xsl:value-of 
select="'text/css'"/></xsl:attribute>
+    <xsl:attribute name="href">/style/style.css</xsl:attribute>
+    <xsl:attribute name="type">text/css</xsl:attribute>
     </link>
     <xsl:for-each select="properties/author">
       <xsl:variable name="name">
@@ -75,9 +75,9 @@
     <body>
 
     <table class="page-header">
-      <xsl:attribute name="border"><xsl:value-of select="'0'"/></xsl:attribute>
-      <xsl:attribute name="width"><xsl:value-of 
select="'100%'"/></xsl:attribute>
-      <xsl:attribute name="cellspacing"><xsl:value-of 
select="'0'"/></xsl:attribute>
+      <xsl:attribute name="border">0</xsl:attribute>
+      <xsl:attribute name="width">100%</xsl:attribute>
+      <xsl:attribute name="cellspacing">0</xsl:attribute>
 
       <xsl:comment>PAGE HEADER</xsl:comment>
       <tr><td colspan="2">
@@ -85,17 +85,17 @@
         <xsl:comment>JAKARTA LOGO</xsl:comment>
         <a href="http://jakarta.apache.org/";>
           <img src="http://jakarta.apache.org/images/jakarta-logo.gif";>
-          <xsl:attribute name="alt"><xsl:value-of select="'The Jakarta 
Project'"/></xsl:attribute>
-          <xsl:attribute name="border"><xsl:value-of 
select="'0'"/></xsl:attribute>
+          <xsl:attribute name="alt">The Jakarta Project</xsl:attribute>
+          <xsl:attribute name="border">0</xsl:attribute>
           </img>
         </a>
         </td><td>
         <div style="width:135px;height:50px;padding:10px;border:1px solid 
#666666">
                        <a href="http://www.apachecon.com/2005/EU/";>
                        <img>
-                               <xsl:attribute name="alt"><xsl:value-of 
select="'Join ApacheCon in Stuttgart!'"/></xsl:attribute>
-                               <xsl:attribute name="border"><xsl:value-of 
select="'0'"/></xsl:attribute>
-                               <xsl:attribute name="src"><xsl:value-of 
select="'http://apache.org/images/ac2005eu_135x50.gif'"/></xsl:attribute>       
                        
+                               <xsl:attribute name="alt">Join ApacheCon in 
Stuttgart!</xsl:attribute>
+                               <xsl:attribute name="border">0</xsl:attribute>
+                               <xsl:attribute 
name="src">http://apache.org/images/ac2005eu_135x50.gif</xsl:attribute>         
                 
                        </img>
                        </a>
                </div>
@@ -114,7 +114,7 @@
           <a href="{$home}">
                        <img><!-- Fix this so attributes always occur in same 
order -->
                                <xsl:attribute name="alt"><xsl:value-of 
select="$alt"/></xsl:attribute>
-                               <xsl:attribute name="border"><xsl:value-of 
select="'0'"/></xsl:attribute>
+                               <xsl:attribute name="border">0</xsl:attribute>
                                <xsl:attribute name="src"><xsl:value-of 
select="$src"/></xsl:attribute>
                        </img>
           </a>
@@ -124,29 +124,29 @@
 
       </table>
       <table border="0">
-      <xsl:attribute name="width"><xsl:value-of 
select="'100%'"/></xsl:attribute>
-      <xsl:attribute name="cellspacing"><xsl:value-of 
select="'4'"/></xsl:attribute>
+      <xsl:attribute name="width">100%</xsl:attribute>
+      <xsl:attribute name="cellspacing">4</xsl:attribute>
 
       <tr>
 
         <xsl:comment>LEFT SIDE NAVIGATION</xsl:comment>
         <td class="left-navbar">
-          <xsl:attribute name="valign"><xsl:value-of 
select="'top'"/></xsl:attribute>
-          <xsl:attribute name="nowrap"><xsl:value-of 
select="'nowrap'"/></xsl:attribute>
+          <xsl:attribute name="valign">top</xsl:attribute>
+          <xsl:attribute name="nowrap">nowrap</xsl:attribute>
           <xsl:apply-templates select="$site/body/[EMAIL 
PROTECTED]'lhs']/menu"/>
         </td>
 
         <xsl:comment>MAIN BODY</xsl:comment>
         <td class="main-body">
-          <xsl:attribute name="valign"><xsl:value-of 
select="'top'"/></xsl:attribute>
-          <xsl:attribute name="align"><xsl:value-of 
select="'left'"/></xsl:attribute>
+          <xsl:attribute name="valign">top</xsl:attribute>
+          <xsl:attribute name="align">left</xsl:attribute>
           <xsl:apply-templates select="body/section"/>
         </td>
 
         <xsl:comment>RIGHT SIDE NAVIGATION</xsl:comment>
         <td class="right-navbar">
-          <xsl:attribute name="valign"><xsl:value-of 
select="'top'"/></xsl:attribute>
-          <xsl:attribute name="nowrap"><xsl:value-of 
select="'nowrap'"/></xsl:attribute>
+          <xsl:attribute name="valign">top</xsl:attribute>
+          <xsl:attribute name="nowrap">nowrap</xsl:attribute>
           <xsl:apply-templates select="$site/body/[EMAIL 
PROTECTED]'rhs']/menu"/>
         </td>
 
@@ -156,7 +156,7 @@
       <tr>
         <td colspan="3">
           <hr noshade="noshade">
-          <xsl:attribute name="size"><xsl:value-of 
select="'1'"/></xsl:attribute>
+          <xsl:attribute name="size">1</xsl:attribute>
           </hr>
         </td>
       </tr>
@@ -254,8 +254,8 @@
   <!-- specially process td tags ala site.vsl -->
   <xsl:template match="[EMAIL PROTECTED]'detail-table']/tr/td">
     <td class="detail-table-content">
-        <xsl:attribute name="valign"><xsl:value-of 
select="'top'"/></xsl:attribute>
-        <xsl:attribute name="align"><xsl:value-of 
select="'left'"/></xsl:attribute>
+        <xsl:attribute name="valign">top</xsl:attribute>
+        <xsl:attribute name="align">left</xsl:attribute>
         <xsl:if test="@colspan"><xsl:attribute name="colspan"><xsl:value-of 
select="@colspan"/></xsl:attribute></xsl:if>
         <xsl:if test="@rowspan"><xsl:attribute name="rowspan"><xsl:value-of 
select="@rowspan"/></xsl:attribute></xsl:if>
         <xsl:apply-templates/>
@@ -265,7 +265,7 @@
   <!-- handle th ala site.vsl -->
   <xsl:template match="[EMAIL PROTECTED]'detail-table']/tr/th">
     <td class="detail-table-header">
-        <xsl:attribute name="valign"><xsl:value-of 
select="'top'"/></xsl:attribute>
+        <xsl:attribute name="valign">top</xsl:attribute>
         <xsl:if test="@colspan"><xsl:attribute name="colspan"><xsl:value-of 
select="@colspan"/></xsl:attribute></xsl:if>
         <xsl:if test="@rowspan"><xsl:attribute name="rowspan"><xsl:value-of 
select="@rowspan"/></xsl:attribute></xsl:if>
         <xsl:apply-templates />



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to