- From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 23 Oct 2009 12:37:36 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2006/unicorn/WebContent/WEB-INF/resources/templates In directory hutz:/tmp/cvs-serv15469/WebContent/WEB-INF/resources/templates Modified Files: xhtml10.vm Log Message: added xml:lang attributes to observations, groups and messages if different from the main language Index: xhtml10.vm =================================================================== RCS file: /sources/public/2006/unicorn/WebContent/WEB-INF/resources/templates/xhtml10.vm,v retrieving revision 1.45 retrieving revision 1.46 diff -u -d -r1.45 -r1.46 --- xhtml10.vm 23 Oct 2009 09:38:11 -0000 1.45 +++ xhtml10.vm 23 Oct 2009 12:37:34 -0000 1.46 @@ -49,10 +49,10 @@ #else <a class="direct_link" href="$esc.html($observation.getHTMLIndexUri())" title="$direct_link_title_2">$direct_link_label</a>#end </h2> - <div class="results block"> + <div class="results block" #if($observation.getLang()!=$lang)xml:lang="$observation.getLang()"#end> #if ($observation.hasGroups()) #foreach($group in $observation.getGroups()) #if (!$group.hasParent()) - <div class="section group" id="${observationName}_${group.Name}"> + <div class="section group" id="${observationName}_${group.Name}" #if($group.getLang()!=$observation.getLang())xml:lang="$group.getLang()"#end> <h3 class="title"><a class="anchor" href="#${observationName}_${group.Name}">a</a>$group.getTitle()</h3> <div class="block"> <p>$group.getDescription()</p> @@ -75,7 +75,7 @@ #if($message.getType()==2)#set($type="error")#elseif($message.getType()==1)#set($type="warning")#else#set($type="info")#end #set ($messageId = "${observationName}_${group.Name}_${uriCount}_$velocityCount") #if ($message.getContexts().size() == 0) - <tr> + <tr #if($message.getLang()!=$group.getLang())xml:lang="$message.getLang()"#end> <td class="linenumber" title=""></td> <td class="colnumber" title=""></td> <td class="codeContext" title="$context_token"></td> @@ -92,7 +92,7 @@ #set ($b = true) #set ($rowspan = $message.getContexts().size()) #foreach($context in $message.getContexts()) - <tr> + <tr #if($message.getLang()!=$group.getLang())xml:lang="$message.getLang()"#end> <td class="linenumber" title="#if($context.Line)$line_token $context.Line#end">$!context.Line</td> <td class="colnumber" title="#if($context.Column)$column_token $context.Column#end">$!context.Column</td> <td class="codeContext" title="$context_token"> @@ -121,7 +121,7 @@ </div> #foreach($group in $observation.getGroupChildren($group)) - <div class="section group" id="${observationName}_${group.Name}"> + <div class="section group" id="${observationName}_${group.Name}" #if($group.getLang()!=$observation.getLang())xml:lang="$group.getLang()"#end> <h3 class="title"><a class="anchor" href="#${observationName}_${group.Name}">a</a>$group.getTitle()</h3> <div class="block"> <p>$group.getDescription()</p> @@ -144,7 +144,7 @@ #if($message.getType()==2)#set($type="error")#elseif($message.getType()==1)#set($type="warning")#else#set($type="info")#end #set ($messageId = "${observationName}_${group.Name}_${uriCount}_$velocityCount") #if ($message.getContexts().size() == 0) - <tr> + <tr #if($message.getLang()!=$group.getLang())xml:lang="$message.getLang()"#end> <td class="linenumber" title=""></td> <td class="colnumber" title=""></td> <td class="codeContext" title="$context_token"></td> @@ -161,7 +161,7 @@ #set ($b = true) #set ($rowspan = $message.getContexts().size()) #foreach($context in $message.getContexts()) - <tr> + <tr #if($message.getLang()!=$group.getLang())xml:lang="$message.getLang()"#end> <td class="linenumber" title="#if($context.Line)$line_token $context.Line#end">$!context.Line</td> <td class="colnumber" title="#if($context.Column)$column_token $context.Column#end">$!context.Column</td> <td class="codeContext" title="$context_token"> @@ -203,7 +203,7 @@ <a class="smooth anchor" title="$anchor_uri" href="#${observationName}_info">a</a> $info_label ($infoCount) </h3> - <div class="block result"> + <div class="block result" #if($observation.getLang()!=$lang)xml:lang="$observation.getLang()"#end> <table> <tbody> #set ($messages = $observation.getURISortedMessages(0)) @@ -220,7 +220,7 @@ #foreach($message in $messages.get($uri)) #set ($messageId = "${observationName}_info_${uriCount}_$velocityCount") #if ($message.getContexts().size() == 0) - <tr> + <tr #if($message.getLang()!=$observation.getLang())xml:lang="$message.getLang()"#end> <td class="linenumber" title=""></td> <td class="colnumber" title=""></td> <td class="codeContext" title="$context_token"></td> @@ -234,7 +234,7 @@ #set ($b = true) #set ($rowspan = $message.getContexts().size()) #foreach($context in $message.getContexts()) - <tr> + <tr #if($message.getLang()!=$observation.getLang())xml:lang="$message.getLang()"#end> <td class="linenumber" title="#if($context.Line)$line_token $context.Line#end">$!context.Line</td> <td class="colnumber" title="#if($context.Column)$column_token $context.Column#end">$!context.Column</td> <td class="codeContext" title="$context_token"> @@ -267,7 +267,7 @@ <a class="smooth anchor" title="$anchor_uri" href="#${observationName}_error">a</a> $error_label ($errorCount) </h3> - <div class="block result"> + <div class="block result" #if($observation.getLang()!=$lang)xml:lang="$observation.getLang()"#end> <table> <tbody> #set ($messages = $observation.getURISortedMessages(2)) @@ -284,7 +284,7 @@ #foreach($message in $messages.get($uri)) #set ($messageId = "${observationName}_error_${uriCount}_$velocityCount") #if ($message.getContexts().size() == 0) - <tr> + <tr #if($message.getLang()!=$observation.getLang())xml:lang="$message.getLang()"#end> <td class="linenumber" title=""></td> <td class="colnumber" title=""></td> <td class="codeContext" title="$context_token"></td> @@ -298,7 +298,7 @@ #set ($b = true) #set ($rowspan = $message.getContexts().size()) #foreach($context in $message.getContexts()) - <tr> + <tr #if($message.getLang()!=$observation.getLang())xml:lang="$message.getLang()"#end> <td class="linenumber" title="#if($context.Line)$line_token $context.Line#end">$!context.Line</td> <td class="colnumber" title="#if($context.Column)$column_token $context.Column#end">$!context.Column</td> <td class="codeContext" title="$context_token"> @@ -330,7 +330,7 @@ <a class="smooth anchor" title="$anchor_uri" href="#${observationName}_warning">a</a> $warning_label ($warningCount) </h3> - <div class="block result"> + <div class="block result" #if($observation.getLang()!=$lang)xml:lang="$observation.getLang()"#end> <table> <tbody> #set ($messages = $observation.getURISortedMessages(1)) @@ -347,7 +347,7 @@ #foreach($message in $messages.get($uri)) #set ($messageId = "${observationName}_warning_${uriCount}_$velocityCount") #if ($message.getContexts().size() == 0) - <tr> + <tr #if($message.getLang()!=$observation.getLang())xml:lang="$message.getLang()"#end> <td class="linenumber" title=""></td> <td class="colnumber" title=""></td> <td class="codeContext" title="$context_token"></td> @@ -361,7 +361,7 @@ #set ($b = true) #set ($rowspan = $message.getContexts().size()) #foreach($context in $message.getContexts()) - <tr> + <tr #if($message.getLang()!=$observation.getLang())xml:lang="$message.getLang()"#end> <td class="linenumber" title="#if($context.Line)$line_token $context.Line#end">$!context.Line</td> <td class="colnumber" title="#if($context.Column)$column_token $context.Column#end">$!context.Column</td> <td class="codeContext" title="$context_token">
Received on Friday, 23 October 2009 12:37:38 UTC