W3C home > Mailing lists > Public > public-multilingualweb-lt@w3.org > February 2013

Re: TargetPointer DataCategory Expected Output

From: Philip <Philip.Oduffy@ul.ie>
Date: Tue, 19 Feb 2013 15:12:58 +0000
Message-ID: <5123967A.3040801@ul.ie>
To: Yves Savourel <ysavourel@enlaso.com>
CC: public-multilingualweb-lt@w3.org
Oh right. Thanks for the info guys! :)

On 19/02/13 15:07, Yves Savourel wrote:
>
> Hi Philip,
>
> Yes, as Leroy answered, this ‘pointer’ information is a bit different 
> from the other ones. In this data category we want the user agent to 
> know how to access the node where the target is, not to access the 
> content of the node. that content will be likely empty or even 
> inexistent in many cases. the idea is to provide the user agent with 
> the information on where to merge back the target (and possibly get 
> the target text if it exists in the source document).
>
> cheers,
>
> -ys
>
> *From:*Philip [mailto:Philip.Oduffy@ul.ie]
> *Sent:* Tuesday, February 19, 2013 7:30 AM
> *To:* public-multilingualweb-lt@w3.org
> *Subject:* TargetPointer DataCategory Expected Output
>
> Hey Guys,
>     I'm currently trying to validate the "TargetPointer" data 
> category. I think the expected output for some of the files may be wrong.
>
> *Input: targetpointer1xml.xml*
> <file xmlns:its="http://www.w3.org/2005/11/its" 
> <http://www.w3.org/2005/11/its>>
>  <its:rules version="2.0">
>   <its:targetPointerRule selector="//source" targetPointer="../target"/>
>  </its:rules>
>  <entry id="one">
>   <source>Remember last folder</source>
>   <target>lastFolder</target>
>  </entry>
>  <entry id="two">
>   <source>Custom file filter:</source>
>   <target>testFile.txt</target>
>  </entry>
> </file>
>
> *My output
> */file
> /file/its:rules[1]
> /file/its:rules[1]/@version
> /file/its:rules[1]/its:targetPointerRule[1]
> /file/its:rules[1]/its:targetPointerRule[1]/@selector
> /file/its:rules[1]/its:targetPointerRule[1]/@targetPointer
> /file/entry[1]
> /file/entry[1]/@id
> /file/entry[1]/source[1] *targetPointer="lastFolder"*
> /file/entry[1]/target[1]
> /file/entry[2]
> /file/entry[2]/@id
> /file/entry[2]/source[1] *targetPointer="testFile.txt"*
> /file/entry[2]/target[1]*
>
> Expected Output
> */file
> /file/its:rules[1]
> /file/its:rules[1]/@version
> /file/its:rules[1]/its:targetPointerRule[1]
> /file/its:rules[1]/its:targetPointerRule[1]/@selector
> /file/its:rules[1]/its:targetPointerRule[1]/@targetPointer
> /file/entry[1]
> /file/entry[1]/@id
> /file/entry[1]/source[1] *targetPointer="../target" *
> /file/entry[1]/target[1]
> /file/entry[2]
> /file/entry[2]/@id
> /file/entry[2]/source[1] *targetPointer="../target" *
> /file/entry[2]/target[1] *
>
> *I think targetPointer should equal "lastFolder" and "testFile.txt" 
> not "../target". I could be wrong though, but if anyone could shed 
> light on the issue, I would be grateful.
> Thanks,
> Philip
>
Received on Tuesday, 19 February 2013 15:13:26 UTC

This archive was generated by hypermail 2.3.1 : Sunday, 9 June 2013 00:25:08 UTC