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

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

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 11 Aug 2009 16:05:43 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1Matr5-0001Gi-8a@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/WebContent/WEB-INF/resources/templates
In directory hutz:/tmp/cvs-serv2609/WebContent/WEB-INF/resources/templates

Added Files:
      Tag: dev2
	text.vm xhtml10.error.vm xhtml10.vm index.vm io_error.vm 
	text.error.vm 
Log Message:
all initialization actions in Init.java
+ compatibility windows/linux

--- 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

<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>
<img src="images/unicorn.png" alt="Unicorn" /></h1>
 
	
 
  </div>
  <p id="tagline">
        the Web's Universal Conformance Checker - <strong>ALPHA Test Version</strong>
  </p>
  <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' )

--- 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 ---
#set ($title = "Unicorn")
#set ($css = ['base.css'])
#set ($js = ['tabtastic/addclasskillclass.js', 'tabtastic/attachevent.js',
			'tabtastic/addcss.js', 'tabtastic/tabtastic.js', 'en_parameters.js'])
#parse( 'includes/head.vm' )

#macro(genTasklist $i)
	<div>
		$task:
		<select name="${param_prefix}task" onchange="javascript:taskChanged(this.options[this.options.selectedIndex].value, $i);">
			#foreach( $task in $tasklist ) 
				<option value="$task.getID()">$task.getLongName("${lang}")</option> 
			#end
		</select>
	</div>
#end

	<body onload="init()">

		<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>
				<img src="images/unicorn.png" alt="Unicorn" />
			</h1>
		</div>

		<p id="tagline">the Web's Universal Conformance Checker - <strong>ALPHA Test Version</strong></p>
		
		<ul id="lang_choice">
		#foreach( $key in $languages.keySet() )
			<li><a lang="$key"
	              xml:lang="$key"
	              hreflang="$key"
	              rel="alternate"
	              href="index.${key}.html">$languages.get($key)</a>
	        </li>
		#end
		</ul>



		<div id="frontforms">
			<ul class="tabset_tabs">
				<li><a href="#validate-by-uri" class="active">$validate-by-uri</a></li><!--
				--><li><a href="#validate-by-upload">$validate-by-upload</a></li><!--
				--><li><a href="#validate-by-input">$validate-by-input</a></li>
			</ul>
		    <div id="fields">

			<fieldset id="validate-by-uri" class="tabset_content front">
				<legend class="tabset_label">$legend-by-uri</legend>
				<form method="get" action="observe">
					#genTasklist(0)
					<p class="instructions">$instruction-by-uri</p>
					<p>
						<label title="$uri_title" for="${param_prefix}uri">
							$uri:
							<input type="text" name="${param_prefix}uri" id="${param_prefix}uri" size="45" />
						</label>
						<input type="hidden" name="${param_prefix}lang" value="${lang}" />

					</p>
					<fieldset id="opt_uri" class="options">
						<p title="$simple_options">$simple_options</p>
						<div class="simpleParamList"></div>
					</fieldset>
					<fieldset id="extra_opt_uri" class="moreoptions">
						<p class="toggle closed" title="Show/Hide extra options" onclick="expand()">$extra_options</p>
						<!-- invisible -->
						<div class="advancedParamList"></div>
						<!-- / invisible -->
					</fieldset>
					<p class="submit_button">
						<label title="$submit_title"><input type="submit" value="$submit" /></label>
					</p>
				</form>
			</fieldset>

			<fieldset id="validate-by-upload"  class="tabset_content front">
				<legend class="tabset_label">$legend-by-upload</legend>
				<form method="post" enctype="multipart/form-data" action="observe">
					#genTasklist(1)
					
					<p class="instructions">$instruction-by-upload</p>
					<p>
						<label title="$instruction-by-upload" for="${param_prefix}file">
							$local_file
							<input type="file" id="${param_prefix}file" name="${param_prefix}file" size="30" />
							<input type="hidden" name="${param_prefix}lang" value="fr" />
						</label>
						
					</p>
					<fieldset id="opt_upload" class="options">
						<p title="$simple_options">$simple_options</p>
						<div class="simpleParamList"></div>
					</fieldset>
					<fieldset id="extra_opt_upload" class="moreoptions">
						<p class="toggle closed" title="Show/Hide extra options" onclick="expand()">$extra_options</p>
						<!-- invisible -->
						<div class="advancedParamList"></div>
						<!-- / invisible -->
					</fieldset>
					<p class="submit_button">
						<label title="$submit_title">
							<input type="submit" value="$submit" />
						</label>
					</p>
				</form>
			</fieldset>

			<fieldset id="validate-by-input"  class="tabset_content front">
				<legend class="tabset_label">$legend-by-input</legend>
				<form action="observe" method="get">
					#genTasklist(2)
					<p class="instructions">$instruction-by-input</p>
					<p>
						<textarea name="${param_prefix}text" rows="12" cols="70"></textarea>
						<span id="${param_prefix}text_mime"></span>
						<input type="hidden" name="${param_prefix}lang" value="fr" />
					</p>      
					<fieldset id="opt_direct" class="options">
						<p title="$simple_options">$simple_options</p>
						<div class="simpleParamList"></div>
					</fieldset>
					<fieldset id="extra_opt_direct" class="moreoptions">
						<p class="toggle closed" title="Show/Hide extra options" onclick="expand()">$extra_options</p>
						<!-- invisible -->
						<div class="advancedParamList"></div>
						<!-- / invisible -->
					</fieldset>
					<p class="submit_button">
						<label title="$submit_title">
							<input type="submit" value="$submit" />
						</label>
					</p>
				</form>
			</fieldset>
		    </div><!-- fiends -->
		</div><!-- end div id = frontforms -->
<h2>$last_news</h2>
<h3>$news_subtitle</h3>
<p>$news</p>

<p><strong>Note</strong>: Vous devez activer JavaScript pour pouvoir v&eacute;rifier des documents.</p>

#parse( 'includes/footer.vm' )

--- 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: 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 Tuesday, 11 August 2009 16:08:41 UTC

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