svn commit: r1928404 - in apr/site/trunk: docs xdocs/stylesheets

[email protected]
Newsgroups gmane.comp.apache.apr.cvs
Message-ID <175775285229.426536.16259155956010260933@svn02-us-east.apache.org>
Author: dsahlberg
Date: Sat Sep 13 08:40:52 2025
New Revision: 1928404

Log:
In site/trunk:

HTML 5 validation work:
Replace custom <table> handling and hardcoded attributes with CSS

* xdocs/stylesheets/site.vsl
  Remove custom table handling, moving some color attributes to...

* docs/style.css
  ... here

* docs/mailing-lists.html,
  docs/versioning.html:
  Update generated HTML

Modified:
   apr/site/trunk/docs/mailing-lists.html
   apr/site/trunk/docs/style.css
   apr/site/trunk/docs/versioning.html
   apr/site/trunk/xdocs/stylesheets/site.vsl

Modified: apr/site/trunk/docs/mailing-lists.html
==============================================================================
--- apr/site/trunk/docs/mailing-lists.html	Sat Sep 13 08:30:17 2025	(r1928403)
+++ apr/site/trunk/docs/mailing-lists.html	Sat Sep 13 08:40:52 2025	(r1928404)
@@ -87,26 +87,26 @@ help with the various ezmlm commands for
   suggestions, feel free to share them with this list.  <em>You must
   subscribe to the list before posting.</em>
 </p>
-<table width="100%">
+<table>
  <tr>
-  <td bgcolor="#a0ddf0">Subscription address:</td>
-  <td bgcolor="#a0ddf0"><a href="mailto:[email protected]">[email protected]</a></td>
+  <td>Subscription address:</td>
+  <td><a href="mailto:[email protected]">[email protected]</a></td>
  </tr>
  <tr>
-  <td bgcolor="#a0ddf0">Unsubscription addresses:</td>
-  <td bgcolor="#a0ddf0"><a href="mailto:[email protected]">[email protected]</a></td>
+  <td>Unsubscription addresses:</td>
+  <td><a href="mailto:[email protected]">[email protected]</a></td>
  </tr>
  <tr>
-  <td bgcolor="#a0ddf0">Digest subscription address:</td>
-  <td bgcolor="#a0ddf0"><a href="mailto:[email protected]">[email protected]</a></td>
+  <td>Digest subscription address:</td>
+  <td><a href="mailto:[email protected]">[email protected]</a></td>
  </tr>
  <tr>
-  <td bgcolor="#a0ddf0">Getting help with the list:</td>
-  <td bgcolor="#a0ddf0"><a href="mailto:[email protected]">[email protected]</a></td>
+  <td>Getting help with the list:</td>
+  <td><a href="mailto:[email protected]">[email protected]</a></td>
  </tr>
  <tr>
-  <td bgcolor="#a0ddf0">Archives:</td>
-  <td bgcolor="#a0ddf0">
+  <td>Archives:</td>
+  <td>
    <ul>
     <li><a href="https://lists.apache.org/[email protected]">Apache Pony view</a></li>
     <li><a href="https://www.mail-archive.com/dev%40apr.apache.org/">Mail-Archive.Com</a></li>
@@ -124,26 +124,26 @@ help with the various ezmlm commands for
   issue tracker tickets. Notification messages are sent to everyone
   who is a member of the list.
 </p>
-<table width="100%">
+<table>
  <tr>
-  <td bgcolor="#a0ddf0">Subscription address:</td>
-  <td bgcolor="#a0ddf0"><a href="mailto:[email protected]">[email protected]</a></td>
+  <td>Subscription address:</td>
+  <td><a href="mailto:[email protected]">[email protected]</a></td>
  </tr>
  <tr>
-  <td bgcolor="#a0ddf0">Unsubscription addresses:</td>
-  <td bgcolor="#a0ddf0"><a href="mailto:[email protected]">[email protected]</a></td>
+  <td>Unsubscription addresses:</td>
+  <td><a href="mailto:[email protected]">[email protected]</a></td>
  </tr>
  <tr>
-  <td bgcolor="#a0ddf0">Digest subscription address:</td>
-  <td bgcolor="#a0ddf0"><a href="mailto:[email protected]">[email protected]</a></td>
+  <td>Digest subscription address:</td>
+  <td><a href="mailto:[email protected]">[email protected]</a></td>
  </tr>
  <tr>
-  <td bgcolor="#a0ddf0">Getting help with the list:</td>
-  <td bgcolor="#a0ddf0"><a href="mailto:[email protected]">[email protected]</a></td>
+  <td>Getting help with the list:</td>
+  <td><a href="mailto:[email protected]">[email protected]</a></td>
  </tr>
  <tr>
-  <td bgcolor="#a0ddf0">Archives:</td>
-  <td bgcolor="#a0ddf0">
+  <td>Archives:</td>
+  <td>
    <ul>
     <li><a href="https://lists.apache.org/[email protected]">Apache Pony view</a></li>
    </ul>
@@ -160,26 +160,26 @@ help with the various ezmlm commands for
   Subversion repository.  As changes are applied, Subversion log
   messages are sent to everyone who is a member of the list.
 </p>
-<table width="100%">
+<table>
  <tr>
-  <td bgcolor="#a0ddf0">Subscription address:</td>
-  <td bgcolor="#a0ddf0"><a href="mailto:[email protected]">[email protected]</a></td>
+  <td>Subscription address:</td>
+  <td><a href="mailto:[email protected]">[email protected]</a></td>
  </tr>
  <tr>
-  <td bgcolor="#a0ddf0">Unsubscription addresses:</td>
-  <td bgcolor="#a0ddf0"><a href="mailto:[email protected]">[email protected]</a></td>
+  <td>Unsubscription addresses:</td>
+  <td><a href="mailto:[email protected]">[email protected]</a></td>
  </tr>
  <tr>
-  <td bgcolor="#a0ddf0">Digest subscription address:</td>
-  <td bgcolor="#a0ddf0"><a href="mailto:[email protected]">[email protected]</a></td>
+  <td>Digest subscription address:</td>
+  <td><a href="mailto:[email protected]">[email protected]</a></td>
  </tr>
  <tr>
-  <td bgcolor="#a0ddf0">Getting help with the list:</td>
-  <td bgcolor="#a0ddf0"><a href="mailto:[email protected]">[email protected]</a></td>
+  <td>Getting help with the list:</td>
+  <td><a href="mailto:[email protected]">[email protected]</a></td>
  </tr>
  <tr>
-  <td bgcolor="#a0ddf0">Archives:</td>
-  <td bgcolor="#a0ddf0">
+  <td>Archives:</td>
+  <td>
    <ul>
     <li><a href="https://lists.apache.org/[email protected]">Apache Pony view</a></li>
     <li><a href="https://www.mail-archive.com/commits%40apr.apache.org/">Mail-Archive.Com</a></li>

Modified: apr/site/trunk/docs/style.css
==============================================================================
--- apr/site/trunk/docs/style.css	Sat Sep 13 08:30:17 2025	(r1928403)
+++ apr/site/trunk/docs/style.css	Sat Sep 13 08:40:52 2025	(r1928404)
@@ -5,6 +5,15 @@ p.note {
   border-style: double;
   padding: 5px;
 }
+table {
+  width: 100%;
+}
+th {
+  background: #039acc;
+}
+td {
+  background: #a0ddf0;
+}
 #logo {
   padding: 8px;
 }

Modified: apr/site/trunk/docs/versioning.html
==============================================================================
--- apr/site/trunk/docs/versioning.html	Sat Sep 13 08:30:17 2025	(r1928403)
+++ apr/site/trunk/docs/versioning.html	Sat Sep 13 08:40:52 2025	(r1928404)
@@ -134,46 +134,46 @@ will not be able to successfully link ag
   <h1><strong>Examples</strong></h1>
   <blockquote>
 <p>Here are some examples to demonstrate the compatibility:</p>
-<table width="100%">
+<table>
   <tr>
-    <th bgcolor="#039acc">Original Version</th>
-    <th bgcolor="#039acc">New Version</th>
-    <th bgcolor="#039acc">Compatible?</th>
+    <th>Original Version</th>
+    <th>New Version</th>
+    <th>Compatible?</th>
   </tr>
   <tr valign="top" bgcolor="#e0e0e0">
-    <td bgcolor="#a0ddf0">2.2.3</td>
-    <td bgcolor="#a0ddf0">2.2.4</td>
-    <td bgcolor="#a0ddf0">Yes<br /><font size="-1">Compatibility across patch versions is guaranteed.</font>
+    <td>2.2.3</td>
+    <td>2.2.4</td>
+    <td>Yes<br /><font size="-1">Compatibility across patch versions is guaranteed.</font>
     </td>
   </tr>
   <tr valign="top">
-    <td bgcolor="#a0ddf0">2.2.3</td>
-    <td bgcolor="#a0ddf0">2.2.1</td>
-    <td bgcolor="#a0ddf0">Yes<br /><font size="-1">Compatibility across patch versions is guaranteed.</font>
+    <td>2.2.3</td>
+    <td>2.2.1</td>
+    <td>Yes<br /><font size="-1">Compatibility across patch versions is guaranteed.</font>
     </td>
   </tr>
   <tr valign="top" bgcolor="#e0e0e0">
-    <td bgcolor="#a0ddf0">2.2.3</td>
-    <td bgcolor="#a0ddf0">2.3.1</td>
-    <td bgcolor="#a0ddf0">Yes<br /><font size="-1">Compatibility with later minor versions is guaranteed.</font>
+    <td>2.2.3</td>
+    <td>2.3.1</td>
+    <td>Yes<br /><font size="-1">Compatibility with later minor versions is guaranteed.</font>
     </td>
   </tr>
   <tr valign="top">
-    <td bgcolor="#a0ddf0">2.2.3</td>
-    <td bgcolor="#a0ddf0">2.1.7</td>
-    <td bgcolor="#a0ddf0">No<br /><font size="-1">Compatibility with prior minor versions is not guaranteed.</font>
+    <td>2.2.3</td>
+    <td>2.1.7</td>
+    <td>No<br /><font size="-1">Compatibility with prior minor versions is not guaranteed.</font>
     </td>
   </tr>
   <tr valign="top" bgcolor="#e0e0e0">
-    <td bgcolor="#a0ddf0">2.2.3</td>
-    <td bgcolor="#a0ddf0">3.0.0</td>
-    <td bgcolor="#a0ddf0">No<br /><font size="-1">Compatibility with different major versions is not guaranteed.</font>
+    <td>2.2.3</td>
+    <td>3.0.0</td>
+    <td>No<br /><font size="-1">Compatibility with different major versions is not guaranteed.</font>
     </td>
   </tr>
   <tr valign="top">
-    <td bgcolor="#a0ddf0">2.2.3</td>
-    <td bgcolor="#a0ddf0">1.4.7</td>
-    <td bgcolor="#a0ddf0">No<br /><font size="-1">Compatibility with different major versions is not guaranteed.</font>
+    <td>2.2.3</td>
+    <td>1.4.7</td>
+    <td>No<br /><font size="-1">Compatibility with different major versions is not guaranteed.</font>
     </td>
   </tr>
 </table>

Modified: apr/site/trunk/xdocs/stylesheets/site.vsl
==============================================================================
--- apr/site/trunk/xdocs/stylesheets/site.vsl	Sat Sep 13 08:30:17 2025	(r1928403)
+++ apr/site/trunk/xdocs/stylesheets/site.vsl	Sat Sep 13 08:40:52 2025	(r1928404)
@@ -4,9 +4,6 @@
 ##
 ## Defined variables
 ##
-#set ($tablethbg = "#039acc")
-#set ($tabletdbg = "#a0ddf0")
-#set ($tabletebg = "#ffffff")
 ##    
 ## Start and end the processing
 ##
@@ -30,44 +27,6 @@
 #end
 ##
 ##
-#macro ( color_cell $elem $color )
-#if (! $elem.getAttributeValue("bgcolor"))
-#set ($elem = $elem.setAttribute("bgcolor", "$color"))
-#end
-#if (! ($elem.getText().length() != 0 || $elem.hasChildren()) )
-## we need content in order for the color to show up on Navigator
-## #set ($elem = $elem.addContent( new org.jdom.CDATA("&nbsp;") ))
-#if ($color == $tabletebg)
-#set ($elem = $elem.setText(" "))
-#else
-#set ($elem = $elem.setText("."))
-#end
-#end
-#end
-##
-##
-#macro ( color_table $table )
-#foreach ( $tw in $treeWalk.allElements($table) )
-#if ($tw.getName().equals("td"))
-#color_cell ($tw $tabletdbg)
-#elseif ($tw.getName().equals("th"))
-#color_cell ($tw $tablethbg)
-#elseif ($tw.getName().equals("trh"))
-#color_cell ($tw $tablethbg)
-#set ($tw = $tw.setAttribute("align", "left"))
-#set ($tw = $tw.setName("th"))
-#elseif ($tw.getName().equals("te"))
-#color_cell ($tw $tabletebg)
-#set ($tw = $tw.setName("td"))
-#end
-#end
-#if (! $table.getAttributeValue("width"))
-#set ($table = $table.setAttribute("width", "100%"))
-#end
-$table
-#end
-##
-##
 #macro ( metaauthor $author $email )
 <meta name="author" content="$author"><meta name="email" content="$email">
 #end
@@ -100,9 +59,7 @@ $table
 ##end
 ## Second, output the section-level children with transformers
 #foreach ( $items in $section.getChildren() )
-#if ($items.getName().equals("table"))
-#color_table ($items)
-#elseif ($items.getName().equals("section"))
+#if ($items.getName().equals("section"))
 #set ($sublevel = $level + 1)
 #section ($items $sublevel)
 #elseif ($items.getName().equals("title"))
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.