2002/css-validator/org/w3c/css/css xhtml.properties,1.2,1.3

Update of /sources/public/2002/css-validator/org/w3c/css/css
In directory hutz:/tmp/cvs-serv22829/org/w3c/css/css

Modified Files:
	xhtml.properties 
Log Message:
This new version of the xhtml template is now able to display the validated style sheet (which is not provided as HTML anymore)
Some identation changes has been made as well so the source code is weel idented
Some links to change the languages have also been added

Index: xhtml.properties
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/css/xhtml.properties,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- xhtml.properties	24 Jul 2007 10:32:56 -0000	1.2
+++ xhtml.properties	30 Jul 2007 12:05:49 -0000	1.3
@@ -9,26 +9,6 @@
         <link type="text/css" rel='stylesheet' href='style/results.css' />
     </head>
     <body>
-#if ( $link )
-        <ul id="lang_choice">
-    #foreach ( $language in $languages )
-        #set ( $name = $language.get("name") )
-        #if ( $language.get("real") )
-            #set ( $real =  $language.get("real") )
-        #else
-            #set ( $real = $language.get("name") )
-        #end
-
-            <li><a href="$link&amp;lang=$name"
-                lang="$name"
-                xml:lang="$name"
-                hreflang="$name"
-                rel="alternate">$real</a>
-            </li>
-    #end
-
-        </ul>
-#end
         <div id="banner">
             <h1 id="title">
                 <a href="http://www.w3.org/">
@@ -40,18 +20,24 @@
             </h1>
         </div>
         <p id="tagline"></p>
+#if ( $errors_count > 0 || $warnings_count > 0 || $rules_count > 0 )
         <ul class="navbar" id="jumpbar">
             <li><strong>$jump_to:</strong></li>
-#if ($errors_count > 0)
+    #if ( $errors_count > 0 )
+
             <li><a href="#errors">$errors ($errors_count)</a></li>
-#end
-#if ($warnings_count > 0)
+    #end
+    #if ( $warnings_count > 0 )
+
             <li><a href="#warnings">$warnings ($warnings_count)</a></li>
-#end
-#if ($rules_count > 0 && $rules_list && $rules_list != "")
+    #end
+    #if ( $rules_count > 0 )
+
             <li><a href="#css">$validated_CSS</a></li>
-#end
+    #end
+
         </ul>
+#end
         <h2>$W3C_validator_results <a href="$file_title">$file_title</a></h2>
 #if ( !$no_errors_report )
     #if ($errors_count == 0)
@@ -64,7 +50,7 @@
                 </a>
                 $doc_validates
             </p>
-        #if ( !$file_title.startsWith("file://localhost") )
+        #if ( !$file_title.trim().startsWith("file://localhost") )
             <p>
                 $no_errors_interoperable_msg
             </p>
@@ -90,11 +76,14 @@
             </pre>
             <p>($no_errors_bookmark_msg)</p>
         #end
+
         </div>
         <p class="backtop"><a href="#banner">&uarr; $top</a></p>
     #else
+
         <!-- DEALING WITH ERRORS -->
         #if ( $hook_html_validator )
+
         $hook_html_validator
         #end
         #set ( $sf = "" )
@@ -103,6 +92,7 @@
         <div id="errors">
             <h3>$errors_sorry_msg ($errors_count)</h3>
         #if ( $request )
+
             <h4>$request</h4>
         #end
             <div class='error-section-all'>
@@ -212,7 +202,8 @@
         </div>
         <p class="backtop"><a href="#banner">&uarr; $top</a></p>
 #end
-#if ($rules_count > 0 && $rules_list && $rules_list != "")
+
+#if ( $rules_count > 0 )
         <div id="css">
             <h3>$valid_CSS_info</h3>
             <div class='vAtRule'>
@@ -221,7 +212,62 @@
                 <div class='vCharset'>@charset "$charset";</div>
     #end
 
-                $rules_list
+    #foreach ( $rules in $at_rules_list )
+        #if ( $rules.AtRule != "" )
+
+                <div class='atRule'>
+                    <span class='atSelector'>
+                        $rules.AtRule
+                    </span>
+            #if ( !$rules.Empty )
+
+                    {
+            #end
+        #end
+
+                    <div>
+        #foreach ( $rule in $rules.StyleRules )
+
+                        <div class='selector'>
+                            <span class='selectorValue'>
+                                $rule.Selectors
+                            </span>
+                            {
+                            <div class='RuleList'>
+            #foreach ( $property in $rule.Properties )
+
+                                <div class='Rule'>
+                                    <span class='Property'>
+                                        $property.PropertyName
+                                    </span>
+                                    :
+                                    <span class='PropertyValue'>
+                                        $property
+                                    </span>
+                #if ( $property.Important )
+
+                                    !important
+                #end
+
+                                ;</div>
+            #end
+
+                            </div>
+                            }
+                        </div>
+        #end
+
+                    </div>
+        #if ( $rules.AtRule != "" )
+            #if ( !$rules.Empty )
+
+                    }
+            #end
+
+                </div>
+        #end
+    #end
+
             </div>
         </div>
         <p class="backtop"><a href="#banner">&uarr; $top</a></p>
@@ -236,6 +282,28 @@
             <li><a href="Email.html" title="$feedback_title">$feedback</a> <span class="hideme">|</span></li>
             <li><a href="thanks.html" title="$credits_title">$credits</a></li>
         </ul>
+
+#if ($file_title.trim().startsWith("http://") || $file_title.trim().equals("file://localhost/TextArea"))
+        <ul id="lang_choice">
+    #foreach ( $language in $languages )
+        #set ( $name = $language.get("name") )
+        #if ( $language.get("real") )
+            #set ( $real =  $language.get("real") )
+        #else
+            #set ( $real = $language.get("name") )
+        #end
+
+            <li><a href="$link&amp;lang=$name"
+                lang="$name"
+                xml:lang="$name"
+                hreflang="$name"
+                rel="alternate">$real</a>
+            </li>
+    #end
+
+        </ul>
+#end
+
         <p id="activity_logos">
             <a href="http://www.w3.org/QA/" title="$W3C_quality_msg"><img src="http://www.w3.org/QA/2002/12/qa-small.png" alt="QA" /></a><a href="http://www.w3.org/Style/CSS/learning" title="$learn_more_msg"><img src="images/woolly-icon" alt="CSS" /></a>
         </p>

Received on Monday, 30 July 2007 12:05:59 UTC