Re: Question on https://github.com/finnle/ITS-2.0-Testsuite/pull/22/

Am 21.08.13 14:12, schrieb Yves Savourel:
>
> Shouldn't the anchor include the content?
>
> Like:
>
> <p class="prov-records-ref"><a href="#pr1">This paragraph was 
> translated from the machine. </a></p>
>

Probably rather not - the empty anchor emphasizes that this is not 
something to click on. If it includes the content a brower would display 
it with blue underline.

- Felix

> *From:*Felix Sasaki [mailto:fsasaki@w3.org]
> *Sent:* Wednesday, August 21, 2013 1:47 PM
> *To:* Leroy Finn
> *Cc:* Yves Savourel; Multilingual Web LT-TESTS Public
> *Subject:* Re: Question on 
> https://github.com/finnle/ITS-2.0-Testsuite/pull/22/
>
> Am 21.08.13 13:28, schrieb Leroy Finn:
>
>     Just to clarify before I make the update to the HTML test suite
>     files and remove the global examples for HTML that the following
>     is stated in the draft (see underlined):
>
>         */"The /**/Provenance
>         <http://www.w3.org/International/multilingualweb/lt/drafts/its20/its20.html#provenance>/**/ data
>         category can be expressed with _global rules_, or locally on
>         individual elements. For elements, the data category
>         information /**/inherits
>         <http://www.w3.org/International/multilingualweb/lt/drafts/its20/its20.html#def-inheritance>/**/ to
>         the textual content of the element, including child elements
>         and attributes."/*
>
>     If we are saying we can't do it for HTML but we can for XML this
>     should probably be changed in the draft.  As Felix stated:
>
>         *What would be the proper replacement for the "id"  attribute
>         here - any idea? .. e.g. HTML "p" you can only use id, class,
>         style, title, align - nothing seems to fit.*
>
>     Any thoughts?
>
>
> Good point. However, I wouldn't change that in the draft. It would be 
> strange to have global provenance only for XML. How about this:
>
> <html>
>   <head>
>     <meta charset=utf-8>
>     <title>Test</title>
>     <script id=pr1 type=application/its+xml>
>       <its:provenanceRecords xml:id="pr1" 
> xmlns:its="http://www.w3.org/2005/11/its" <http://www.w3.org/2005/11/its>>
>         <its:provenanceRecord
>          toolRef="http://www.onlinemtex.com/2012/7/25/wsdl/" 
> <http://www.onlinemtex.com/2012/7/25/wsdl/>
>          org="acme-CAT-v2.3"
>          
> provRef="http://www.examplelsp.com/excontent987/production/prov/e6354" 
> <http://www.examplelsp.com/excontent987/production/prov/e6354>
>          revToolRef="http://www.mycat.com/v1.0/download" 
> <http://www.mycat.com/v1.0/download>
>          revOrg="acme-CAT-v2.3" />
>       </its:provenanceRecords>
>     </script>
>     <script id=pr2 type=application/its+xml>
>       <its:provenanceRecords xml:id="pr2" 
> xmlns:its="http://www.w3.org/2005/11/its" <http://www.w3.org/2005/11/its>>
>         <its:provenanceRecord
>          person="John Doe"
>          orgRef="http://www.legaltrans-ex.com/" 
> <http://www.legaltrans-ex.com/>
>          
> provRef="http://www.examplelsp.com/excontent987/legal/prov/e6354" 
> <http://www.examplelsp.com/excontent987/legal/prov/e6354>
>          revPerson="Tommy Atkins"
>          revOrgRef="http://www.example.myorg.com" 
> <http://www.example.myorg.com> />
>         <its:provenanceRecord
>          revPerson="John Smith"
>          revOrgRef="http://john-smith.qa.example.com" 
> <http://john-smith.qa.example.com> />
>         </its:provenanceRecords>
>       </script>
>   </head>
>   <body>
>     <p class="prov-records-ref"><a href="#pr1"></a>This paragraph was 
> translated from the machine.</p>
>     <p class="prov-records-ref"><a href="#pr2"></a>This text was 
> translated directly by a person.</p>
>   </body>
> </html>
>
> and a rules file like this
>
> <its:rules version="2.0">
>     <its:provRule selector="//*[@class='prov-records-ref']" 
> provenanceRecordsRefPointer="h:a/@href"/>
>   </its:rules>
>
>
> I see a use case in which users don't want to have local its-* 
> attributes in HTML. They then could so something like the above (using 
> the empty "a" elements).
>
> - Felix
>
>
> Leroy
>
> On 21 August 2013 11:32, Leroy Finn <finnle@tcd.ie 
> <mailto:finnle@tcd.ie>> wrote:
>
> I have pushed the XML update. I did it in a similar fashion that 
> you recommended Felix see the commit here both input and output for 
> XML were updated . I will do the HTML update now.
>
> XML Commit: 
> https://github.com/finnle/ITS-2.0-Testsuite/commit/0e5171eb9cf465a3536f330dfe253337c9ca8efd
>
> Leroy
>
> On 21 August 2013 10:19, Felix Sasaki <fsasaki@w3.org 
> <mailto:fsasaki@w3.org>> wrote:
>
> Makes both sense, thanks a lot, Leroy.
>
> Best,
>
> Felix
>
> Am 21.08.13 11:17, schrieb Leroy Finn:
>
>     Also I will correct the xml files now.
>
>     Thanks,
>
>     Leroy
>
>     On 21 August 2013 10:10, Leroy Finn <finnle@tcd.ie
>     <mailto:finnle@tcd.ie>> wrote:
>
>     Yeah I see what you mean the error occurs with 'id' attribute in 4
>     out of the 8 HTML examples namely : 1,2,5 and 8. What course of
>     action should I take? Should i just replace id with
>     its-provenance-records-ref?
>
>     Thanks,
>
>     Leroy
>
>     On 21 August 2013 08:50, Yves Savourel <ysavourel@enlaso.com
>     <mailto:ysavourel@enlaso.com>> wrote:
>
>     I was wondering that too.
>     Not sure. I suppose class could hold the URI even of the value is
>     not a URI type.
>
>     The truth is probably that it's unlikely that someone use a global
>     rule with provenanceRecordsRefPointer when the attribute
>     its-provenance-records-ref can be used inside the document.
>
>
>     -ys
>
>     From: Felix Sasaki [mailto:fsasaki@w3.org <mailto:fsasaki@w3.org>]
>
>     Sent: Wednesday, August 21, 2013 9:08 AM
>     To: Yves Savourel
>     Cc: 'Multilingual Web LT-TESTS Public'
>     Subject: Re: Question on
>     https://github.com/finnle/ITS-2.0-Testsuite/pull/22/
>
>
>     Am 21.08.13 08:35, schrieb Yves Savourel:
>     By the way: it looks like we have the same incorrect use of id in
>     most of the HTML examples too.
>
>     Good point. What would be the proper replacement for the "id"
>     attribute here - any idea? At e.g. HTML "p" you can only use id,
>     class, style, title, align - nothing seems to fit.
>
>     - Felix
>
>
>
>     -ys
>
>     From: Felix Sasaki [mailto:fsasaki@w3.org <mailto:fsasaki@w3.org>]
>     Sent: Wednesday, August 21, 2013 8:13 AM
>     To: Multilingual Web LT-TESTS Public
>     Subject: Question on
>     https://github.com/finnle/ITS-2.0-Testsuite/pull/22/
>
>     Hi all,
>
>     see
>     https://github.com/finnle/ITS-2.0-Testsuite/pull/22/
>     and the proposed change at
>     https://github.com/garfieldnate/ITS-2.0-Testsuite/commit/1417ef0408876a0bc525d1e9b51c5e5b7c016197
>     garfieldnate is right about xml:id. I am just wondering whether
>     xml:id is the right attribute here. Or should the file (relevent
>     part below) rather look like this?
>
>
>     <its:rules version="2.0">
>         <its:provRule selector="/text/body/par"
>     provenanceRecordsRefPointer="@ref"/>
>         <its:provRule selector="/text/body/legalnotice"
>     provenanceRecordsRefPointer="@ref"/>
>       </its:rules>
>       <title>Translation Revision Provenance Agent: Global Test in
>     XML</title>
>       <body>
>         <par ref="#pr1"> This paragraph was translated from the
>     machine.</par>
>         <legalnotice ref="#pr2">This text was
>           translated directly by a person.</legalnotice>
>       </body>
>
>     Best,
>
>     Felix
>
>
>

Received on Wednesday, 21 August 2013 12:17:52 UTC