<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>2808</bug_id>
          
          <creation_ts>2006-02-07 15:24:24 +0000</creation_ts>
          <short_desc>Existing locInfo-like markup cannot be mapped using the locInfoSelector method</short_desc>
          <delta_ts>2006-09-18 04:41:48 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>ITS</product>
          <component>ITS tagset</component>
          <version>WorkingDraft</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>LastCall20May</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yves Savourel">ysavourel</reporter>
          <assigned_to name="Felix Sasaki">fsasaki</assigned_to>
          
          
          <qa_contact name="ITS mailing-list">public-i18n-its</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>8141</commentid>
    <comment_count>0</comment_count>
    <who name="Yves Savourel">ysavourel</who>
    <bug_when>2006-02-07 15:24:27 +0000</bug_when>
    <thetext>For the cases where a format has already a locInfo type of markup (like 
XMLSPEC-i18n which has a locn-alert attribute) there is no way to map this 
existing markup to the ITS locInfo data category because the content of 
locInfo is not a finite list of value but user-defined text.
So something like:

&lt;its:documentRule its:locInfo=&quot;&quot;  
 its:locInfoType=&quot;alert&quot;
 its:locInfoSelector=&quot;parent:://@locn-alert&quot;/&gt;

simply assign empty comments for the targeted conetnt.

We would need something like

its:locInfo=&quot;content-of(@locn-alert)&quot; to be able to use the mapping method.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8160</commentid>
    <comment_count>1</comment_count>
    <who name="Felix Sasaki">fsasaki</who>
    <bug_when>2006-02-08 03:33:03 +0000</bug_when>
    <thetext>See for additional discussion the thread starting at
http://lists.w3.org/Archives/Public/public-i18n-its/2006JanMar/0119.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8281</commentid>
    <comment_count>2</comment_count>
    <who name="Felix Sasaki">fsasaki</who>
    <bug_when>2006-02-16 11:15:46 +0000</bug_when>
    <thetext>See thread at
http://lists.w3.org/Archives/Public/public-i18n-its/2006JanMar/0128.html

I have the feeling that there are two requirements here:

1) adding locInfo to some markup
2) Identifying locInfo which is already in the existing document

Below I have tried to separate these.

1) can be done
- in situ, via its:locInfo and its:locInfoType, or
- dislocated, via its:locInfo plus its:locInfoType plus  
its:locInfoSelector.
Example dislocated (already in the draft):
&lt;its:documentRule its:locInfo=&quot;This p element has to be handled carefully&quot;
   its:locInfoType=&quot;alert&quot; its:locInfoSelector=&quot;/body/p[1]&quot;/&gt;

2) can be done only dislocated, e.g. via its:locInfoContent and  
its:locInfoType
In the current ITS tagset draft we have (in example 32):
  &lt;its:documentRule its:locInfo=&quot;&quot; its:locInfoType=&quot;alert&quot;
    its:locInfoSelector=&quot;//@locn-alert&quot;/&gt;
  &lt;its:documentRule its:locInfo=&quot;&quot; its:locInfoType=&quot;description&quot;
    its:locInfoSelector=&quot;//@locn-note&quot;/&gt;
This would be replaced by:
&lt;its:documentRule its:locInfoContent=&quot;//*[@locn-alert]&quot;
   its:locInfoType=&quot;alert&quot;/&gt;
&lt;its:documentRule its:locInfoContent=&quot;//*[@locn-alert]&quot;
   its:locInfoType=&quot;alert&quot;/&gt;

In that way, we would not have an additional attribute to  
its:locInfoSelector, but a different one. The benefit: an ITS processor  
knows
1 &quot;if I see its:locInfoSelector dislocated, I have to add the content of  
its:locInfo to a node in the XML document which has no localization  
information yet&quot; (case 1) above)
2 &quot;if I see its:locInfoContent, I have to extract existing localization  
information&quot; (case 2) above)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8403</commentid>
    <comment_count>3</comment_count>
    <who name="Felix Sasaki">fsasaki</who>
    <bug_when>2006-02-23 09:40:55 +0000</bug_when>
    <thetext>Implemented this in the working draft (text and ODD definition), see
http://www.w3.org/International/its/itstagset/itstagset.html#locInfoContent .
However, I will not close this bug, because I figured out a simpler solution:
instead of @locInfoContent with an XPath expression, we could have
@locInfoContent=&quot;yes&quot;. Advantages:
1 identical to @term=&quot;yes&quot;, in the value of the attribute and its functionality
2 no need for two selector attributes with different semantics (selection with
@locInfoSelector versus extraction with @locInfoContent)
3 no need for conflict resolution between multiple locInfo related selector
attributes
4 same functionality as @locInfoContent with XPath, but with advantages 1-3 :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8824</commentid>
    <comment_count>4</comment_count>
    <who name="Felix Sasaki">fsasaki</who>
    <bug_when>2006-03-22 07:25:31 +0000</bug_when>
    <thetext>This bug can be closed, since we agreed on having a functionality &quot;passing value&quot; for what is here called &quot;mapping&quot;.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>