Show
Ignore:
Timestamp:
10/23/09 12:57:06 (4 years ago)
Author:
tgambet
Branch:
default
convert_revision:
svn:cdcfb263-7567-472c-a848-e2c2df3466e7/trunk@903
Message:

changed position of xml:lang attributes

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • WebContent/WEB-INF/resources/templates/xhtml10.vm

    r901 r902  
    5353        #if ($observation.hasGroups()) 
    5454                #foreach($group in $observation.getGroups()) #if (!$group.hasParent()) 
    55                 <div class="section group" id="${observationName}_${group.Name}" #if($group.getLang()!=$observation.getLang())xml:lang="$group.getLang()"#end> 
    56                         <h3 class="title"><a class="anchor" href="#${observationName}_${group.Name}">a</a>$group.getTitle()</h3>                                         
     55                <div class="section group" id="${observationName}_${group.Name}"> 
     56                        <h3 class="title" #if($group.getLang()!=$observation.getLang())xml:lang="$group.getLang()"#end><a class="anchor" href="#${observationName}_${group.Name}">a</a>$group.getTitle()</h3>                                    
    5757                        <div class="block"> 
    58                                 <p>$group.getDescription()</p> 
     58                                <p #if($group.getLang()!=$observation.getLang())xml:lang="$group.getLang()"#end>$group.getDescription()</p> 
    5959                                <div class="messages"> 
    6060                                        #set ($messages = $observation.getURISortedMessages($group.getName())) 
     
    7676                                                                #set ($messageId = "${observationName}_${group.Name}_${uriCount}_$velocityCount") 
    7777                                                                #if ($message.getContexts().size() == 0) 
    78                                                                         <tr #if($message.getLang()!=$group.getLang())xml:lang="$message.getLang()"#end> 
     78                                                                        <tr #if($message.getLang()!=$observation.getLang())xml:lang="$message.getLang()"#end> 
    7979                                                                                <td class="linenumber" title=""></td> 
    8080                                                                                <td class="colnumber" title=""></td> 
     
    9393                                                                        #set ($rowspan = $message.getContexts().size()) 
    9494                                                                        #foreach($context in $message.getContexts()) 
    95                                                                         <tr  #if($message.getLang()!=$group.getLang())xml:lang="$message.getLang()"#end> 
     95                                                                        <tr #if($message.getLang()!=$observation.getLang())xml:lang="$message.getLang()"#end> 
    9696                                                                                <td class="linenumber" title="#if($context.Line)$line_token $context.Line#end">$!context.Line</td> 
    9797                                                                                <td class="colnumber" title="#if($context.Column)$column_token $context.Column#end">$!context.Column</td> 
     
    122122                                 
    123123                                #foreach($group in $observation.getGroupChildren($group)) 
    124                                 <div class="section group" id="${observationName}_${group.Name}" #if($group.getLang()!=$observation.getLang())xml:lang="$group.getLang()"#end> 
    125                                         <h3 class="title"><a class="anchor" href="#${observationName}_${group.Name}">a</a>$group.getTitle()</h3> 
     124                                <div class="section group" id="${observationName}_${group.Name}"> 
     125                                        <h3 class="title" #if($group.getLang()!=$observation.getLang())xml:lang="$group.getLang()"#end><a class="anchor" href="#${observationName}_${group.Name}">a</a>$group.getTitle()</h3> 
    126126                                        <div class="block"> 
    127                                                 <p>$group.getDescription()</p> 
     127                                                <p #if($group.getLang()!=$observation.getLang())xml:lang="$group.getLang()"#end>$group.getDescription()</p> 
    128128                                                <div class="messages"> 
    129129                                                        #set ($messages = $observation.getURISortedMessages($group.getName())) 
     
    145145                                                                                #set ($messageId = "${observationName}_${group.Name}_${uriCount}_$velocityCount") 
    146146                                                                                #if ($message.getContexts().size() == 0) 
    147                                                                                         <tr #if($message.getLang()!=$group.getLang())xml:lang="$message.getLang()"#end> 
     147                                                                                        <tr #if($message.getLang()!=$observation.getLang())xml:lang="$message.getLang()"#end> 
    148148                                                                                                <td class="linenumber" title=""></td> 
    149149                                                                                                <td class="colnumber" title=""></td> 
     
    162162                                                                                        #set ($rowspan = $message.getContexts().size()) 
    163163                                                                                        #foreach($context in $message.getContexts()) 
    164                                                                                         <tr #if($message.getLang()!=$group.getLang())xml:lang="$message.getLang()"#end> 
     164                                                                                        <tr #if($message.getLang()!=$observation.getLang())xml:lang="$message.getLang()"#end> 
    165165                                                                                                <td class="linenumber" title="#if($context.Line)$line_token $context.Line#end">$!context.Line</td> 
    166166                                                                                                <td class="colnumber" title="#if($context.Column)$column_token $context.Column#end">$!context.Column</td>