its20 CVS commit

Update of /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/examples/html5
In directory hutz:/tmp/cvs-serv12981/examples/html5

Added Files:
	EX-locQualityIssue-html5-local-2.html.~1.5.~ 
	EX-translation-agent-provenance-html5-global-1.html 
	EX-translation-agent-provenance-html5-local-1.html 
	EX-translation-agent-provenance-html5-local-2.html 
	EX-translation-agent-provenance-rule-html5-global-1.xml 
	qaissues.js.~1.2.~ 
Log Message:
draft re-generation, added provenance examples

--- NEW FILE: qaissues.js.~1.2.~ ---
function addqaissueattrs ()
{
    var issuefoundtext = document.createTextNode("This file has a quality issue. Click on the yellow text to find out more.");
    var mypara = document.createElement("p");
    mypara.appendChild(issuefoundtext);
    myb = document.getElementsByTagName("body")[0];
    myb.appendChild(mypara);
    var spanlist = document.getElementsByTagName('span');
    for(i=0; i<spanlist.length; i++) {
	if(spanlist[i].getAttribute('its-loc-quality-issues-ref') != '') { 
	    spanlist[i].setAttribute("onclick","getqaissue(this.getAttribute('its-loc-quality-issues-ref'))");
	    spanlist[i].setAttribute("class","qaissue");  
	}
    }
}
function getqaissue (qiref) {
    var qielem = document.getElementById(qiref.substr(1));
    var issues = qielem.childNodes;
    var issueslist = new String;
    for(i=0; i<issues.length; i++) {
	if(issues[i].nodeType==1) { issueslist = issueslist +
				    issues[i].getAttribute('its-loc-quality-issue-type') + " "; } }
    window.alert("QA issues found. Type(s) of issues: " + issueslist);
}
--- NEW FILE: EX-translation-agent-provenance-html5-local-2.html ---
<!DOCTYPE html>
<html>
    <head>
        <meta charset=utf-8>
            <title>Test</title>
            <script id=its-standoff-no-2 type=application/xml>
    <its:translationProvenanceRecords xml:id="pr1">
        <its:translationProvenanceRecord
            transToolRef="http://www.onlinemtex.com/2012/7/25/wsdl/" 
            transOrg="acme-CAT-v2.3"
            transRevToolRef="http://www.mycat.com/v1.0/download" 
            transRevOrg="acme-CAT-v2.3"
            provRef="http://www.examplelsp.com/excontent987/production/prov/e6354"/>
    </its:translationProvenanceRecords>
    <its:translationProvenanceRecords xml:id="pr2">
        <its:translationProvenanceRecord
            transPerson="John Doe"
            transOrgRef="http://www.legaltrans-ex.com/"
            transRevPerson="Tommy Atkins" 
            transRevOrgRef="http://www.vistatec.com/"
            provRef="http://www.examplelsp.com/excontent987/legal/prov/e6354 http://www.vistatec.com/job-12-7-15-X31/reviewed/prov/re8573469"/>
        <its:translationProvenanceRecord
            transRevPerson="John Smith" 
            transRevOrgRef="http://john-smith.qa.example.com"/>
    </its:translationProvenanceRecords> 
   </script>
    </head>
    <body>
        <p its-translation-provenance-records-ref="#pr1"> This paragraph was translated from the machine.</p>
        <p its-translation-provenance-records-ref="#pr2">This text was translated directly by a person.</p>
    </body>
</html> 

--- NEW FILE: EX-locQualityIssue-html5-local-2.html.~1.5.~ ---
<!DOCTYPE html>
<html>
    <head>
        <meta charset=utf-8>
            <title>Test</title>
            <script src=qaissues.js type=text/javascript></script>
            <style type=text/css>.qaissue { background-color: yellow; } </style>
    </head>
    <body onload=addqaissueattrs()>
        <p>
            <span its-loc-quality-issues-ref=#lq1>c'es</span> le contenu</p>
                <span id=lq1 its-loc-quality-issues=its-loc-quality-issues>
                    <span
                        its-loc-quality-issue=its-loc-quality-issue
                        its-loc-quality-issue-coment="Sentence without capitalization"
                        its-loc-quality-issue-severity=30
                        its-loc-quality-issue-type=typographical></span>
                    <span
                        its-loc-quality-issue=its-loc-quality-issue
                        its-loc-quality-issue-coment="'c'es' is unknown. Could be 'c'est'"
                        its-loc-quality-issue-severity=50
                        its-loc-quality-issue-type=misspelling></span>
                </span>
    </body>
</html>
--- NEW FILE: EX-translation-agent-provenance-html5-global-1.html ---
<!DOCTYPE html>
<html lang=en>
    <head>
        <meta charset=utf-8>
            <title>Example</title>
            <link href=EX-translation-agent-provenance-rule-html5-global-l.xml rel=its-rules>
    </head>
    <body>
        <p id="p1"> This paragraph was translated from the machine.</p>
        
        <p class="legal-notice">This text was translated directly by a person.</p>
    </body>
</html>
--- NEW FILE: EX-translation-agent-provenance-html5-local-1.html ---
<!DOCTYPE html>
<html lang=en>
    <head>
        <meta charset=utf-8>
            <title>Translation Revision Provenance Agent: Local Test in HTML5</title>
    <body>
        <p its-trans-tool-ref="http://www.onlinemtex.com/2012/7/25/wsdl/"
            its-trans-org="acme-CAT-v2.3" its-transRevToolRef="http://www.mycat.com/v1.0/download"
            its-trans-rev-org="acme-CAT-v2.3"
            its-prov-ref="http://www.examplelsp.com/excontent987/production/prov/e6354"> This
            paragraph was translated from the machine.</par>
        <p class="legal-notice" its-trans-person="John Doe" its-transOrgRef="http://www.legaltrans-ex.com/"
            its-trans-rev-person="Tommy Atkins" its-transRevOrgRef="http://www.vistatec.com/"
            its-prov-ref="http://www.examplelsp.com/excontent987/legal/prov/e6354 http://www.vistatec.com/job-12-7-15-X31/reviewed/prov/re8573469"
            >This text was translated directly by a person.</legalnotice>
    </body></html>

--- NEW FILE: EX-translation-agent-provenance-rule-html5-global-1.xml ---

<its:rules version="2.0" xmlns:its="http://www.w3.org/2005/11/its" xmlns:h="http://www.w3.org/1999/xhtml">
    <its:transProvRule selector="/h:html/h:body/h:p[@id='p1']"
        transToolRef="http://www.onlinemtex.com/2012/7/25/wsdl/" transOrg="acme-CAT-v2.3"
        transRevToolRef="http://www.mycat.com/v1.0/download" transRevOrg="acme-CAT-v2.3"
        provRef="http://www.examplelsp.com/excontent987/production/prov/e6354"/>
    <its:transProvRule selector="/h:html/h:body/h:p[@class='legal-notice']" transPerson="John Doe"
        transOrgRef="http://www.legaltrans-ex.com/" transRevPerson="Tommy Atkins"
        transRevOrgRef="http://www.vistatec.com/"
        provRef=" http://www.examplelsp.com/excontent987/legal/prov/e6354 http://www.vistatec.com/job-12-7-15-X31/reviewed/prov/re8573469"
    />
</its:rules>

Received on Thursday, 18 October 2012 09:38:37 UTC