<?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>3050</bug_id>
          
          <creation_ts>2006-03-27 06:11:29 +0000</creation_ts>
          <short_desc>Linking mechanism</short_desc>
          <delta_ts>2006-07-24 10:32:46 +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>Windows XP</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>normal</bug_severity>
          <target_milestone>LastCall20May</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Felix Sasaki">fsasaki</reporter>
          <assigned_to name="Felix Sasaki">fsasaki</assigned_to>
          
          
          <qa_contact name="Felix Sasaki">fsasaki</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>8876</commentid>
    <comment_count>0</comment_count>
    <who name="Felix Sasaki">fsasaki</who>
    <bug_when>2006-03-27 06:11:29 +0000</bug_when>
    <thetext>Background: http://www.w3.org/2006/03/22-i18nits-minutes.html#item04

Purpose: A mechanism to link from an XML document to an external file containing ITS global rules.
Proposal: Use an element ITS link:

&lt;its:link href=&quot;someRules.xml&quot;/&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8890</commentid>
    <comment_count>1</comment_count>
    <who name="Sebastian Rahtz">sebastian.rahtz</who>
    <bug_when>2006-03-27 11:25:58 +0000</bug_when>
    <thetext>since the rules elements are the same in the external file as the instance file, the rules could be referenced using XInclude very easily. WHy invent a new mechanism?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8894</commentid>
    <comment_count>2</comment_count>
    <who name="Felix Sasaki">fsasaki</who>
    <bug_when>2006-03-27 11:55:27 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; since the rules elements are the same in the external file as the instance
&gt; file, the rules could be referenced using XInclude very easily. WHy invent a
&gt; new mechanism?
&gt; 

Because people might want to implement ITS without having an XInclude processor available. However, most of them will have in their programming language a function to access a document, which takes as an argument the document Uri. Hence, the @href attribute.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8904</commentid>
    <comment_count>3</comment_count>
    <who name="Yves Savourel">ysavourel</who>
    <bug_when>2006-03-27 15:29:18 +0000</bug_when>
    <thetext>
Then maybe using XLink&apos;s simple link would be better: not re-inventing something and keeping it processable by simple tools. I&apos;m not very familiar with XLink but it seems we should be able to do:

&lt;its:link xlink:href=&quot;someRules.xml&quot;/&gt;

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8906</commentid>
    <comment_count>4</comment_count>
    <who name="Yves Savourel">ysavourel</who>
    <bug_when>2006-03-27 17:55:01 +0000</bug_when>
    <thetext>
&lt;its:rulesLink&gt; sounds good to me.

One question: Where does it go? stand-alone (wherever the host format allows it)? or as the first entry in a &lt;its:documentRules&gt;?

For being sure we look at all the possibilities:

- This link could be also done or as a standalone attribute: &lt;myDoc its:link=&quot;href&quot;&gt;

- Or as a PI (like for CSS): &lt;?its-rules href=&quot;file.xml&quot; ?&gt;

The PI has the advantage of working everywhere (always valid even in DTD-based formats).

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8912</commentid>
    <comment_count>5</comment_count>
    <who name="Felix Sasaki">fsasaki</who>
    <bug_when>2006-03-27 22:00:28 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; &lt;its:rulesLink&gt; sounds good to me.
&gt; 
&gt; One question: Where does it go? stand-alone (wherever the host format allows
&gt; it)? or as the first entry in a &lt;its:documentRules&gt;?

I think it would not make sense in &lt;its:documentRules&gt;. Rather standalone.

&gt; 
&gt; For being sure we look at all the possibilities:
&gt; 
&gt; - This link could be also done or as a standalone attribute: &lt;myDoc
&gt; its:link=&quot;href&quot;&gt;

I would prefer XLink, as Sebastian proposed at http://www.w3.org/Bugs/Public/show_bug.cgi?id=3050#c3 .

&gt; 
&gt; - Or as a PI (like for CSS): &lt;?its-rules href=&quot;file.xml&quot; ?&gt;
&gt; 
&gt; The PI has the advantage of working everywhere (always valid even in DTD-based
&gt; formats).

What do you mean by &quot;valid&quot;? Processable? That would be the case with XLink too.

&gt; 

(In reply to comment #3)
&gt; Then maybe using XLink&apos;s simple link would be better: not re-inventing
&gt; something and keeping it processable by simple tools. I&apos;m not very familiar
&gt; with XLink but it seems we should be able to do:
&gt; 
&gt; &lt;its:link xlink:href=&quot;someRules.xml&quot;/&gt;
&gt; 

++1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8920</commentid>
    <comment_count>6</comment_count>
    <who name="Yves Savourel">ysavourel</who>
    <bug_when>2006-03-27 23:02:06 +0000</bug_when>
    <thetext>
&gt;&gt; The PI has the advantage of working everywhere 
&gt;&gt; (always valid even in DTD-based formats).
&gt;
&gt; What do you mean by &quot;valid&quot;? Processable? That 
&gt; would be the case with XLink too.

You&apos;re right. What I meant to say was different:
Using a PI would allow DTD-based formats to use the ITS-link function even when the users cannot modify the DTD. The DTD does not to know anything at all of ITS, while with the link element (or attribute) it needs to know at least about that.

-ys
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8926</commentid>
    <comment_count>7</comment_count>
    <who name="Felix Sasaki">fsasaki</who>
    <bug_when>2006-03-28 06:12:18 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; &gt;&gt; The PI has the advantage of working everywhere 
&gt; &gt;&gt; (always valid even in DTD-based formats).
&gt; &gt;
&gt; &gt; What do you mean by &quot;valid&quot;? Processable? That 
&gt; &gt; would be the case with XLink too.
&gt; 
&gt; You&apos;re right. What I meant to say was different:
&gt; Using a PI would allow DTD-based formats to use the ITS-link function even when
&gt; the users cannot modify the DTD. The DTD does not to know anything at all of
&gt; ITS, while with the link element (or attribute) it needs to know at least about
&gt; that.
&gt; 
&gt; -ys
&gt; 

Ah, o.k., I see. The disadvantage is just the other way round: you cannot validate a PI. Hence, if somebody types
&lt;its:rulesLink xlink:hrefs=&quot;someUri&quot;/&gt;
it is an error since &quot;hrefs&quot; should be &quot;href&quot;. However, if you type
&lt;?its-rules hrefs=&quot;file.xml&quot; ?&gt;
nobody will find the error.

I am wondering what is more important here: The easy of validation, or being on disturbance to validation ...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8931</commentid>
    <comment_count>8</comment_count>
    <who name="Sebastian Rahtz">sebastian.rahtz</who>
    <bug_when>2006-03-28 18:13:22 +0000</bug_when>
    <thetext>&gt; I am wondering what is more important here: The easy of validation, or being on
&gt; disturbance to validation ...

My view is that people who want minimal disturbance can
specify the rules files some other way (in their
processing tools); people who want decent XML
validation should be encouraged to do it well. But I am not rabid on the subject</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8932</commentid>
    <comment_count>9</comment_count>
    <who name="Yves Savourel">ysavourel</who>
    <bug_when>2006-03-28 18:34:47 +0000</bug_when>
    <thetext>
I&apos;m fine with &lt;its:rulesLink xlink:href=&quot;someUri&quot;/&gt;.
I just wanted to be sure we had looked at all possibilities.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9081</commentid>
    <comment_count>10</comment_count>
    <who name="Yves Savourel">ysavourel</who>
    <bug_when>2006-04-07 20:12:22 +0000</bug_when>
    <thetext>
Resolution: The link is to be an xlink:href attribute in &lt;its:rules&gt;.
(See http://www.w3.org/2006/03/29-i18nits-minutes.html#item08)
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10680</commentid>
    <comment_count>11</comment_count>
    <who name="Felix Sasaki">fsasaki</who>
    <bug_when>2006-07-24 10:32:46 +0000</bug_when>
    <thetext>Closed, no further action necessary.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>