W3C home > Mailing lists > Public > www-validator-cvs@w3.org > August 2009

2006/unicorn/WebContent/WEB-INF/templates xhtml10.vm,NONE,1.1.2.1 text.error.vm,NONE,1.1.2.1 io_error.vm,NONE,1.1.2.1 text.vm,NONE,1.1.2.1 xhtml10.error.vm,NONE,1.1.2.1

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Wed, 12 Aug 2009 13:15:22 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1MbDfm-0005nt-Jc@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/WebContent/WEB-INF/templates
In directory hutz:/tmp/cvs-serv22119/WebContent/WEB-INF/templates

Added Files:
      Tag: dev2
	xhtml10.vm text.error.vm io_error.vm text.vm xhtml10.error.vm 
Log Message:
All initialization actions moved to Framework.java

--- NEW FILE: xhtml10.error.vm ---
#if($unicorncall.DocumentName)
  #set ($title = "$result_for $unicorncall.DocumentName")
#else
  #set ($title = $result_for_upload)
#end  
#set ($css = ['base.css'])
#parse( 'includes/head.vm' )
  
  <body>
    <div id="banner">
      <h1 id="title"><a href="http://www.w3.org/"><img height="48" alt="W3C" id="logo" src="http://www.w3.org/Icons/WWW/w3c_home_nb" /></a>
      Unicorn</h1>  
    </div>
    <p id="tagline">
      Universal Conformance Observation Report Notation
    </p>
    <div id="result">
      <h2 id="results" class="invalid">$critical_error</h2>
      <ol class="error_list">
        <li class="msg_err">
          #if($error.Message)
          <span class="msg">$error.Message</span>
          #end
          <div class="ve mid-127">
            $stack_trace_text
          </div>
          <pre>
$error
      #foreach($traceElt in $error.StackTrace)
$traceElt
      #end
          </pre>
        </li>
      </ol>
    </div>
    
#parse( 'includes/footer.vm' )
--- NEW FILE: text.error.vm ---
#macro(error $error)
-- Error -------------------------
#if($error.Line)Line $error.Line #end #if($error.Column)Column $error.Column #end:
#foreach($message in $error.Message)
>> error.Message: $message
#end
#if($error.Context && $error.Context != "")
>> error.Context: $error.Context
#end
#foreach($longMessage in $error.Longmessage)
#foreach($longMessagePiece in $longMessage.Content)
>> error.longMessagePiece: $longMessagePiece
#end
#end
#end

#macro(info $information)
-- Information -------------------
#if($information.Line)Line $information.Line #end #if($information.Column)Column $information.Column #end:
#foreach($message in $information.Message)
>> information.Message: $message
#end
#if($information.Context && $information.Context != "")
>> information.Context: $information.Context
#end
#foreach($longMessage in $information.Longmessage)
#foreach($longMessagePiece in $longMessage.Content)
>> information.longMessagePiece: $longMessagePiece
#end
#end
#end

#macro(warning $warning)
-- Alerte -----------------------
#if($warning.Line)Line $warning.Line #end #if($warning.Column)Column $warning.Column #end:
#foreach($message in $warning.Message)
>> warning.Message: $message
#end
#if($warning.Context && $warning.Context != "")
>> warning.Context: $warning.Context
#end
#foreach($longMessage in $warning.Longmessage)
#foreach($longMessagePiece in $longMessage.Content)
>> warning.longMessagePiece: $longMessagePiece
#end
#end
#end

#macro(produceErrors $errors)
// Errors /////////////////////////////////////////

#foreach($errorList in $errors.Errorlist)
>>>> Location: $errorList.Uri
#foreach($error in $errorList.Error)
#error($error)
#end
#end
#end

#macro(produceWarnings $warnings)
// Alerts ///////////////////////////////////////

#foreach($warningList in $warnings.Warninglist)
#if($warningList.Warning && $warningList.Warning.size() != 0)
>>>> Location: $warningList.Uri
#foreach($warning in $warningList.Warning)
#warning($warning)
#end
#end
#end
#end

#macro(produceInfos $infos)
// Informations ///////////////////////////////////

#foreach($infoList in $infos.Infolist)
>>>> Location: $infoList.Uri
#foreach($information in $infoList.Info)
#info($information)
#end
#end
#end


#set($observationList = $unicorncall.ObservationList)
#foreach($observationName in $observationList.keySet())
#set($observation = $observationList.get($observationName))



========================= $observationName ====================================

#if($observation.isPassed())
> Le document est valide le test #if($observation.getVersion()) $observation.getVersion().toUpperCase() #else $observationName #end !
#else
> Le document ne passe pas le test #if($observation.getVersion()) $observation.getVersion().toUpperCase() #else $observationName #end !
#produceErrors($observation.Result.Errors)
#end


#if($observation.Result.Informations)
#produceInfos($observation.Result.Informations)
#end
#if($observation.Result.Warnings)
#produceWarnings($observation.Result.Warnings)
#end
#end

#if(!$unicorncall.haveHighPassed())
$fail_high_priority
#end
#if(!$unicorncall.haveMediumPassed())
$fail_medium_priority
#end

--- NEW FILE: text.vm ---
#macro(error $error)
  ---$text_error--------------------------
  #if($error.Line)$line $error.Line #end #if($error.Column)Column $error.Column #end :
  #foreach($message in $error.Message)
    $text_error : $message
  #end
  #if($error.Context && $error.Context != "")
    ${error_context} : $error.Context
  #end
  #foreach($longMessage in $error.Longmessage)
      	#foreach($longMessagePiece in $longMessage.Content)
			$longMessagePiece
        #end
  #end
#end

#macro(info $information)
-- Information -------------------
#if($information.Line)$line $information.Line #end #if($information.Column)Column $information.Column #end:
#foreach($message in $information.Message)
>> information.Message: $message
#end
#if($information.Context && $information.Context != "")
>> information.Context: $information.Context
#end
#foreach($longMessage in $information.Longmessage)
#foreach($longMessagePiece in $longMessage.Content)
>> information.longMessagePiece: $longMessagePiece
#end
#end
#end

#macro(warning $warning)
-- Alerte -----------------------
#if($warning.Line)$line $warning.Line #end #if($warning.Column)Column $warning.Column #end:
#foreach($message in $warning.Message)
>> warning.Message: $message
#end
#if($warning.Context && $warning.Context != "")
>> warning.Context: $warning.Context
#end
#foreach($longMessage in $warning.Longmessage)
#foreach($longMessagePiece in $longMessage.Content)
>> warning.longMessagePiece: $longMessagePiece
#end
#end
#end


#macro(produceErrors $errors)
============== ${text_errors} ===================

	#foreach($error in $errors)
		#error($error)
	#end
#end

#macro(produceWarnings $warnings)
// $warning ///////////////////////////////////////

#foreach($warningList in $warnings.Warninglist)
#if($warningList.Warning && $warningList.Warning.size() != 0)
>>>> $location: $warningList.Uri
#foreach($warning in $warningList.Warning)
#warning($warning)
#end
#end
#end
#end

#macro(produceInfos $infos)
// $information ///////////////////////////////////

#foreach($infoList in $infos.Infolist)
>>>> $location: $infoList.Uri
#foreach($information in $infoList.Info)
#info($information)
#end
#end
#end


#set($observationList = $unicorncall.ObservationList)
#foreach($observationName in $observationList.keySet())
#set($observation = $observationList.get($observationName))



========================= $observationName ====================================


#if($observation.isPassed())
> $test_ok_1 #if($observation.getVersion()) $observation.getVersion().toUpperCase() #else $observationName #end $test_ok_2
#else
> $test_fail_1 #if($observation.getVersion()) $observation.getVersion().toUpperCase() #else $observationName #end $test_fail_2
#foreach($result in $observation.getResultsList())
        #if(!$result.Errors.isEmpty())
          $location: $result.Uri
      	  #produceErrors($result.Errors)
      	#end
      #end
#end


#if($observation.Result.Informations)
#produceInfos($observation.Result.Informations)
#end
#if($observation.Result.Warnings)
#produceWarnings($observation.Result.Warnings)
#end
#end



--- NEW FILE: io_error.vm ---
<?xml version='1.0' encoding="utf-8"?>
<observationresponse xmlns="http://www.w3.org/unicorn/observationresponse"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.w3.org/unicorn/observationresponse file:/home/jean/observer-response.xsd"> 
    <checkedby>Unicorn</checkedby>
    <passed>false</passed>
    <result>
        <errors xml:lang="en">
            <errorcount>1</errorcount>
            <errorlist>
                <uri></uri>
                <errorcount>1</errorcount>
                <error>
                    <errortype>io</errortype>
                    <message>$io_1</message>
                    <longmessage>$io_2</longmessage>
                    <longmessage>$io_3</longmessage>
                    <longmessage>$io_4</longmessage>
                    <longmessage>$io_5</longmessage>
                    <longmessage>$exception</longmessage>
                </error>
            </errorlist>
        </errors>
    </result>
</observationresponse>

--- NEW FILE: xhtml10.vm ---
#if($unicorncall.DocumentName)
  #set ($title = "$result_for $unicorncall.DocumentName")
#else
  #set ($title = $result_for_upload)
#end  
#set ($css = ['base.css', 'results.css'])
#parse( 'includes/head.vm' )

#macro(error $error)
  <span class="err_type">Error</span>
  <em>#if($error.Line)Line $error.Line #end #if($error.Column)Column $error.Column #end</em>:
  #foreach($message in $error.Message)
    <span class="msg">$message</span>
  #end
  #if($error.Context && $error.Context != "")
    <pre><code class="input">$error.Context</code></pre>
  #end
  <div class="ve mid-127">
  #foreach($longMessage in $error.Longmessage)
      <p>
      	#foreach($longMessagePiece in $longMessage.Content)
			$longMessagePiece
        #end
      </p>
  #end
  </div>
#end

#macro(info $information)
  <span class="err_type">Info</span>
  <em>#if($information.Line)Line $information.Line #end #if($information.Column)Column $information.Column #end</em>:
  #foreach($message in $information.Message)
    <span class="msg">$message</span>
  #end
  #if($information.Context && $information.Context != "")
    <pre><code class="input">$information.Context</code></pre>
  #end
  <div class="ve mid-127">
  #foreach($longMessage in $information.Longmessage)
      <p>
        #foreach($longMessagePiece in $longMessage.Content)
            $longMessagePiece
        #end
      </p>
  #end
  </div>
#end

#macro(warning $warning)
  <span class="err_type">Warning</span>
  <em>#if($warning.Line)Line $warning.Line #end #if($warning.Column)Column $warning.Column #end</em>:
  #foreach($message in $warning.Message)
    <span class="msg">$message</span>
  #end
  #if($warning.Context && $warning.Context != "")
    <pre><code class="input">$warning.Context</code></pre>
  #end
  <div class="ve mid-127">
  #foreach($longMessage in $warning.Longmessage)
      <p>
        #foreach($longMessagePiece in $longMessage.Content)
            $longMessagePiece
        #end
      </p>
  #end
  </div>
#end

#macro(produceErrors $errors)
    <ol class="error_list">
    #foreach($error in $errors)
      <li class="msg_err">
        #error($error)
      </li>
    #end
    </ol>
#end

#macro(produceWarnings $warnings)
      <ol class="warning_list">
      #foreach($warning in $warnings)
        <li class="msg_warn">
          #warning($warning)
        </li>
      #end
      </ol>
#end

#macro(produceInfos $infos)
    <ol class="info_list">
    #foreach($information in $infos)
      <li class="msg_info">
        #info($information)
      </li>
    #end
    </ol>
#end
	
  <div id="result">
  #set($observationList = $unicorncall.ObservationList)
  #foreach($observationName in $observationList.keySet())
    #set($observation = $observationList.get($observationName))
    #if($observation.isPassed())
      <h2 class="valid">$test_ok_1 
      #if($observation.getVersion())
        $observation.getVersion().toUpperCase()
      #else 
        $observationName
      #end
      $test_ok_2</h2>
    #else
      <h2 id="results" class="invalid">$test_fail_1 
      #if($observation.getVersion())
        $observation.getVersion().toUpperCase()
      #else 
        $observationName
      #end
      $test_fail_2</h2>
      #foreach($result in $observation.getResultsList())
        #if(!$result.Errors.isEmpty())
          <h3>$location: $result.Uri</h3>
      	  #produceErrors($result.Errors)
      	#end
      #end
    #end
    
    
    #foreach($result in $observation.getResultsList())
      #if(!$result.Infos.isEmpty() || !$result.Warnings.isEmpty())
        <h3>$location: $result.Uri</h3>
      #end
  
      #if(!$result.Infos.isEmpty())
        #produceInfos($result.Infos)
      #end
    
      #if(!$result.Warnings.isEmpty())
        #produceWarnings($result.Warnings)
      #end
    #end
   <hr/>
   
  #end



  </div>

#parse( 'includes/footer.vm' )
Received on Wednesday, 12 August 2009 13:15:34 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:38 UTC