<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/xml.xsl" type="text/xsl"?><feed xmlns="http://www.w3.org/2005/Atom">
  <title>nulog, NULL::something : out of the headphone &gt; 2005 &gt; September &gt; 17 &gt; URI? URI-reference?</title>
  <link href="http://lowreal.net/logs/2005/09/17/1"/>
  <icon>http://lowreal.net/img/banner.png</icon>
  <link rel="self" type="application/atom+xml" href="http://lowreal.net/logs/2005/09/17/1.atom"/>
  <link rel="alternate" type="application/xhtml+xml" href="http://lowreal.net/logs/2005/09/17/1.xhtml"/>
  <updated>2005-09-17T00:56:15+09:00</updated>
  <author>
    <name>cho45(砂糖)</name>
  </author>
  <id>http://lowreal.net/2005/09/17/1</id>
  <entry>
    <title>URI? URI-reference?</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2005/09/17/1.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2005/09/17/1.xhtml"/>
    <updated>2005-09-17T00:56:15+09:00</updated>
    <published>2005-09-17T00:56:15+09:00</published>
    <id>http://lowreal.net/2005/09/17/1</id>
    <category term="web"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p><abbr title="Internet Relay Chat">IRC</abbr> ネタ。<a href="http://www.ietf.org/rfc/rfc2396.txt">RFC2396</a> ではフラグメントを含まないのが <abbr title="Uniform Resource Identifer | Universal Resource Identifer">URI</abbr> らしい (フラグメント含むのは <abbr title="Uniform Resource Identifer | Universal Resource Identifer">URI</abbr> 参照。なんで区別があるのかは知らん) のだけど、みんな (誰) が知っているとおり、<abbr title="Hyper Text Markup Language">HTML</abbr> の a 要素 href 属性にはデータ型が URI にも関わらずフラグメント書いたりしちゃってるわけで、しかも <abbr title="Extensible Markup Language">XML</abbr>Schema の anyURI 型も例にフラグメント含めたやつを書いていたりしちゃってるわけで、てんで意味不明だよボケと突っ込みたいところだけど、その RFC2396 を <a href="http://www.ietf.org/rfc/rfc3986.txt">RFC3986</a> が上書きした (今年の一月) らしく、ちゃんとフラグメントつけても <abbr title="Uniform Resource Identifer | Universal Resource Identifer">URI</abbr> って言えるみたいです。よかったよかった。</p>
        <p>該当部分を抜粋する。</p>
        <blockquote cite="http://www.ietf.org/rfc/rfc2396.txt" title="RFC2396">
          <p>URI-reference = [ absoluteURI | relativeURI ] [ "#" fragment ]</p>
        </blockquote>
        <blockquote cite="http://www.ietf.org/rfc/rfc3986.txt" title="RFC3986">
          <p>URI         = scheme ":" hier-part [ "?" query ] [ "#" fragment ]</p>
        </blockquote>
        <p>ふぁっきん <abbr title="Uniform Resource Identifer | Universal Resource Identifer">URI</abbr> 参照。ちなみに RFC2396 には <em>URI = foobar</em> っていう項目はないみたいで、文章中に書いてあるみたいです。読むのめんどいから知らないけど。</p>
        <ins datetime="2005-09-17T12:04:06+09:00">
          <p>XMLSchema の anyURI 型には以下のように書いてあるから (ややこしいけど) 問題にならないか。</p>
          <blockquote cite="http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/datatypes.html#anyURI" title="XML Schema Part 2: Datatypes Second Edition">
            <p>anyURI represents a Uniform Resource Identifier Reference (URI). An anyURI value can be absolute or relative, and may have an optional fragment identifier (i.e., it may be a URI Reference).</p>
          </blockquote>
        </ins>
      </div>
    </content>
  </entry>
</feed>
