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

2006/unicorn/WebContent/WEB-INF/resources/templates io_error.vm,1.1,1.2 index.vm,1.1,1.2 text.vm,1.1,1.2 xhtml10.vm,1.1,1.2 text.error.vm,1.1,1.2 xhtml10.error.vm,1.1,1.2

From: Jean-Guilhem Rouel via cvs-syncmail <cvsmail@w3.org>
Date: Fri, 28 Aug 2009 12:40:02 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1Mh0kM-0005wv-I4@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/WebContent/WEB-INF/resources/templates
In directory hutz:/tmp/cvs-serv22368/WebContent/WEB-INF/resources/templates

Added Files:
	io_error.vm index.vm text.vm xhtml10.vm text.error.vm 
	xhtml10.error.vm 
Log Message:
Merging dev2 in HEAD

--- NEW FILE: xhtml10.vm ---
#if($unicorncall.DocumentName)
#set ($noEscape_title = "$result_for $unicorncall.DocumentName")
#else
#set ($noEscape_title = $result_for_upload)
#end  
#set ($css = ['base_ucn.css'])
#set ($js = ['scripts/mootools-1.2.3-core-nc.js', 'scripts/mootools-1.2.3.1-more.js', 'scripts/w3c_unicorn_results.js'])
#parse('includes/head.vm')

#set($observationList = $unicorncall.ObservationList)


<div id="observations">
#foreach($observationName in $observationList.keySet())
#set($observation = $observationList.get($observationName))
#set ($infoCount = $observation.getInfoCount())
#set ($errorCount = $observation.getErrorCount())
#set ($warningCount = $observation.getWarningCount())

#if($observation.isPassed())
<div class="observer $observationName valid">
#else
<div class="observer $observationName invalid">
#end
	<h2>
		<span class="icons">
			#if ($infoCount && $infoCount > 0)<img src="images/icone_info.png" alt="info icon" /><span>$infoCount</span> #end
			#if ($errorCount && $errorCount > 0)<img src="images/icone_error.png" alt="error icon" /><span>$errorCount</span> #end
			#if ($warningCount && $warningCount > 0)<img src="images/icone_warning.png" alt="warning icon" /><span>$warningCount</span> #end
		</span>
		#if($observation.isPassed())
		$test_ok_1
		#else
		$test_fail_1
		#end
		<span class="name">$unicorncall.getObserverName($observationName, $lang)</span>
	</h2>
	
	<div class="results">
	#if ($infoCount && $infoCount > 0)
		<div class="infos">
			<h3>Infos ($infoCount)</h3>
			<div class="result">
			#foreach($result in $observation.getResultsList())
				#if(!$result.Infos.isEmpty())
				<div class="info-section">
					<h4>
						#if ($unicorncall.getInputMethod() == "URI")<span>URI : </span><a href="$result.Uri">$result.Uri</a>#end
						#if ($unicorncall.getInputMethod() == "UPLOAD")<span>File : </span>$result.Uri#end
						#if ($unicorncall.getInputMethod() == "DIRECT")<span>File : </span>Direct Input#end
					</h4>
					<table>
						<tbody>
#foreach($info in $result.Infos)
							<tr>
								<td class="linenumber" title="#if($info.Line)Line:$info.Line#end #if($info.Column)Column: $info.Column#end">#if($info.Line)$info.Line#end#if($info.Column)/$info.Column #end</td>
								<td class="codeContext"> #if($info.Context) $info.Context #end </td>
								<td class="info">
								#foreach($message in $info.Message)<span class="msg">$message</span>#end
									#foreach($longMessage in $info.Longmessage)
									<p class="longmsg">
									#foreach($longMessagePiece in $longMessage.Content)
										$longMessagePiece
									#end
									</p>
									#end
								</td>
							</tr>
#end
						</tbody>
					</table>
				</div>
				#end
			#end
			</div>
		</div>
	#end
	
	#if ($errorCount && $errorCount > 0)
		<div class="errors">
			<h3>Errors ($errorCount)</h3>
			<div class="result">
			#foreach($result in $observation.getResultsList())
				#if(!$result.Errors.isEmpty())
				<div class="error-section">
					<h4>
						#if ($unicorncall.getInputMethod() == "URI")<span>URI : </span><a href="$result.Uri">$result.Uri</a>#end
						#if ($unicorncall.getInputMethod() == "UPLOAD")<span>File : </span>$result.Uri#end
						#if ($unicorncall.getInputMethod() == "DIRECT")<span>File : </span>Direct Input#end
					</h4>
					<table>
						<tbody>
#foreach($error in $result.Errors)
							<tr>
								<td class="linenumber" title="#if($error.Line)Line: $error.Line#end #if($error.Column)Column: $error.Column #end">#if($error.Line)$error.Line#end#if($error.Column)/$error.Column #end</td>
								<td class="codeContext">#if($error.Context) $error.Context #end</td>
								<td class="error">
								#foreach($message in $error.Message)<span class="msg">$message</span>#end
									#foreach($longMessage in $error.Longmessage)
									<p class="longmsg">
									#foreach($longMessagePiece in $longMessage.Content)
										$longMessagePiece
									#end
									</p>
									#end
								</td>
							</tr>
#end
						</tbody>
					</table>
				</div>
				#end
			#end
			</div>
		</div>
	#end
	
	#if ($warningCount && $warningCount > 0)
		<div class="warnings">
			<h3>Warnings ($warningCount)</h3>
			<div class="result">
			#foreach($result in $observation.getResultsList())
				#if(!$result.Warnings.isEmpty())
				<div class="warning-section">
					<h4>
						#if ($unicorncall.getInputMethod() == "URI")<span>URI : </span><a href="$result.Uri">$result.Uri</a>#end
						#if ($unicorncall.getInputMethod() == "UPLOAD")<span>File : </span>$result.Uri#end
						#if ($unicorncall.getInputMethod() == "DIRECT")<span>File : </span>Direct Input#end
					</h4>
					<table>
						<tbody>
#foreach($warning in $result.Warnings)
							<tr>
								<td class="linenumber" title="#if($warning.Line)Line: $warning.Line#end #if($warning.Column)Column: $warning.Column #end">#if($warning.Line)$warning.Line#end#if($warning.Column)/$warning.Column #end</td>
								<td class="codeContext">#if($warning.Context) $warning.Context #end</td>
								<td class="warning level$warning.getLevel()">
								#foreach($message in $warning.Message)<span class="msg">$message</span>#end
									#foreach($longMessage in $warning.Longmessage)
									<p class="longmsg">
									#foreach($longMessagePiece in $longMessage.Content)
										$longMessagePiece
									#end
									</p>
									#end
								</td>
							</tr>
#end
						</tbody>
					</table>
				</div>
				#end
			#end
			</div>
		</div>
	#end
	</div>
</div>
#end
</div>

#parse( 'includes/footer.vm' )

--- 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: 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: index.vm ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: xhtml10.error.vm ---
#if($unicorncall.DocumentName)
  #set ($title = "$result_for $unicorncall.DocumentName")
#else
  #set ($title = $result_for_upload)
#end  
#set ($css = ['base_ucn.css'])
#parse( 'includes/head.vm' )
  
    <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: 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>
Received on Friday, 28 August 2009 12:40:11 UTC

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