URIs Module

"John L. Clark" <[email protected]>
Newsgroups gmane.text.xml.xslt.extensions
Message-ID <20060319001835.GF7127@rejoice>
Next up in my specification queue is the URIs module.  I've written
brief specifications for both of this module's functions: `uri:base-uri`
and `uri:resolve-uri`.  The source for both specifications should be
attached to this email, as well as a HTML view of each.

I also started a branch within our Subversion repository for my
draft specs and other experimental changes.  You can browse through this
branch at your leisure through the Trac interface[0].

Take care,

    John L. Clark

[0] http://www.exslt.com/cgi-bin/trac.cgi/browser/branches/jlc/

_______________________________________________
exslt mailing list
[email protected]
http://www.exslt.org/list
uri.base-uri.xml (text/plain, 1.6 KB)
<?xml version="1.0"?>
<exslt:function xmlns:exslt="http://exslt.org/documentation" 
                version="1" module="uri" status="new">

<exslt:name>base-uri</exslt:name>

<rdf:Description xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
                 xmlns:dc="http://purl.org/dc/elements/1.1/"
                 ID="uri:base-uri">
  <dc:subject>EXSLT</dc:subject>
  <dc:subject>uri</dc:subject>
  <dc:subject>base-uri</dc:subject>
  <dc:rights>public domain</dc:rights>
  <exslt:revision>
    <rdf:Description xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
                     xmlns:dc="http://purl.org/dc/elements/1.1/"
                     ID="uri:base-uri.1">
      <exslt:version>1</exslt:version>
      <dc:creator email="[email protected]" 
                 url="http://infinitesque.net/">John L. Clark</dc:creator>
      <dc:date>2006-03-15</dc:date>
      <dc:description>Obtains the base URI for a node.</dc:description>
    </rdf:Description>
  </exslt:revision>
</rdf:Description>

<exslt:doc xmlns="http://www.w3.org/1999/xhtml">
  <p>The <code>uri:base-uri</code> function returns the base
  URI&#x2014;computed as described in <a
  href="http://www.w3.org/TR/xmlbase/">the XML Base
  Recommendation</a>&#x2014;for the first node of its argument.  If this 
  argument is not specified, then it defaults to the context node.  It is an
  error if this argument is not a node-set or is the empty node-set.</p>
</exslt:doc>

<exslt:definition>
  <exslt:return type="string" />
  <exslt:arg name="node-set" type="node-set" optional="yes" />
</exslt:definition>

</exslt:function>
index.html (text/html, 2.8 KB)
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "/schema/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>EXSLT - uri:base-uri</title><link href="http://exslt.org/base.css" rel="stylesheet"/></head><body><h1 id="#title"><a href="http://www.exslt.org/">EXSLT</a> - <a href="http://www.exslt.org/uri">uri</a>:<a href="http://www.exslt.org/uri/functions/base-uri">base-uri</a></h1><h2 id="#subtitle">EXPERIMENTAL <a href="http://infinitesque.net/">INFINITESQUE</a> DRAFT</h2><table><tr><td id="menu"><p class="level1"><a href="uri.base-uri.html">Implementer Page</a></p><p class="level1"><a href="../../../howto.html">How To</a></p><p class="level1"><a href="../../../download.html">Downloads</a></p><p class="level1">Modules</p><p class="level2"><a href="../../../date/index.html">Dates and Times</a></p><p class="level2"><a href="../../../dyn/index.html">Dynamic</a></p><p class="level2"><a href="../../../exsl/index.html">Common</a></p><p class="level2"><a href="../../../func/index.html">Functions</a></p><p class="level2"><a href="../../../math/index.html">Math</a></p><p class="level2"><a href="../../../random/index.html">Random</a></p><p class="level2"><a href="../../../regexp/index.html">Regular Expressions</a></p><p class="level2"><a href="../../../res/index.html">Resource</a></p><p class="level2"><a href="../../../set/index.html">Sets</a></p><p class="level2"><a href="../../../str/index.html">Strings</a></p><p class="level2"><a href="../../../sys/index.html">System</a></p><p class="level2"><a href="../../../uri/index.html">URIs</a></p><p class="level3"><a href="../../functions/base-uri/index.html">uri:base-uri()</a></p><p class="level3"><a href="../../functions/resolve-uri/index.html">uri:resolve-uri()</a></p><p class="level1"><a href="../../../submissions/">Submissions</a></p><p class="level1"><a href="../../../list">Mailing List</a></p><p class="level1"><a href="../../../contact.html">Contact</a></p></td><td id="content"><p><b>Implementer Page: </b><a href="uri.base-uri.html">uri.base-uri.html</a><br/><b>Function Package: </b><a href="uri.base-uri.zip">uri.base-uri.zip</a></p><h4>Function Syntax</h4><pre><var>string</var> <b>uri:base-uri</b>(<var>node-set</var>?)</pre><p>The <code>uri:base-uri</code> function returns the base
  URI&#8212;computed as described in <a href="http://www.w3.org/TR/xmlbase/">the XML Base
  Recommendation</a>&#8212;for the first node of its argument.  If this 
  argument is not specified, then it defaults to the context node.  It is an
  error if this argument is not a node-set or is the empty node-set.</p></td></tr></table><div id="colophon"><p><a href="http://www.exslt.org/uri/functions/base-uri/index.html">http://www.exslt.org/uri/functions/base-uri/index.html</a> last modified 2006-03-15</p></div></body></html>
uri.resolve-uri.xml (text/plain, 1.8 KB)
<?xml version="1.0"?>
<exslt:function xmlns:exslt="http://exslt.org/documentation" 
                version="1" module="uri" status="new">

<exslt:name>resolve-uri</exslt:name>

<rdf:Description xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
                 xmlns:dc="http://purl.org/dc/elements/1.1/"
                 ID="uri:resolve-uri">
  <dc:subject>EXSLT</dc:subject>
  <dc:subject>uri</dc:subject>
  <dc:subject>resolve-uri</dc:subject>
  <dc:rights>public domain</dc:rights>
  <exslt:revision>
    <rdf:Description xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
                     xmlns:dc="http://purl.org/dc/elements/1.1/"
                     ID="uri:resolve-uri.1">
      <exslt:version>1</exslt:version>
      <dc:creator email="[email protected]" 
                 url="http://infinitesque.net/">John L. Clark</dc:creator>
      <dc:date>2006-03-18</dc:date>
      <dc:description>Resolves a URI reference against a base URI.</dc:description>
    </rdf:Description>
  </exslt:revision>
</rdf:Description>

<exslt:doc xmlns="http://www.w3.org/1999/xhtml">
  <p>The <code>uri:resolve-uri</code> function resolves its first argument
  against the absolute URI in the second argument according to the mechanism
  specified in <a
  href="http://www.gbiv.com/protocols/uri/rfc/rfc3986.html#reference-resolution">RFC
  3986, section 5</a>.  If the second argument is not specified, it defaults
  to the value of the expression <code>uri:base-uri()</code>.  It is an error
  if the string value of the first argument is not a valid URI reference or if
  the string value of the second argument is not a valid absolute URI.</p>
</exslt:doc>

<exslt:definition>
  <exslt:return type="string" />
  <exslt:arg name="relative" type="string" optional="no" />
  <exslt:arg name="base" type="string" optional="yes" />
</exslt:definition>

</exslt:function>
index.html (text/html, 3 KB)
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "/schema/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>EXSLT - uri:resolve-uri</title><link href="http://exslt.org/base.css" rel="stylesheet"/></head><body><h1 id="#title"><a href="http://www.exslt.org/">EXSLT</a> - <a href="http://www.exslt.org/uri">uri</a>:<a href="http://www.exslt.org/uri/functions/resolve-uri">resolve-uri</a></h1><h2 id="#subtitle">EXPERIMENTAL <a href="http://infinitesque.net/">INFINITESQUE</a> DRAFT</h2><table><tr><td id="menu"><p class="level1"><a href="uri.resolve-uri.html">Implementer Page</a></p><p class="level1"><a href="../../../howto.html">How To</a></p><p class="level1"><a href="../../../download.html">Downloads</a></p><p class="level1">Modules</p><p class="level2"><a href="../../../date/index.html">Dates and Times</a></p><p class="level2"><a href="../../../dyn/index.html">Dynamic</a></p><p class="level2"><a href="../../../exsl/index.html">Common</a></p><p class="level2"><a href="../../../func/index.html">Functions</a></p><p class="level2"><a href="../../../math/index.html">Math</a></p><p class="level2"><a href="../../../random/index.html">Random</a></p><p class="level2"><a href="../../../regexp/index.html">Regular Expressions</a></p><p class="level2"><a href="../../../res/index.html">Resource</a></p><p class="level2"><a href="../../../set/index.html">Sets</a></p><p class="level2"><a href="../../../str/index.html">Strings</a></p><p class="level2"><a href="../../../sys/index.html">System</a></p><p class="level2"><a href="../../../uri/index.html">URIs</a></p><p class="level3"><a href="../../functions/base-uri/index.html">uri:base-uri()</a></p><p class="level3"><a href="../../functions/resolve-uri/index.html">uri:resolve-uri()</a></p><p class="level1"><a href="../../../submissions/">Submissions</a></p><p class="level1"><a href="../../../list">Mailing List</a></p><p class="level1"><a href="../../../contact.html">Contact</a></p></td><td id="content"><p><b>Implementer Page: </b><a href="uri.resolve-uri.html">uri.resolve-uri.html</a><br/><b>Function Package: </b><a href="uri.resolve-uri.zip">uri.resolve-uri.zip</a></p><h4>Function Syntax</h4><pre><var>string</var> <b>uri:resolve-uri</b>(<var>string</var>, <var>string</var>?)</pre><p>The <code>uri:resolve-uri</code> function resolves its first argument
  against the absolute URI in the second argument according to the mechanism
  specified in <a href="http://www.gbiv.com/protocols/uri/rfc/rfc3986.html#reference-resolution">RFC
  3986, section 5</a>.  If the second argument is not specified, it defaults
  to the value of the expression <code>uri:base-uri()</code>.  It is an error
  if the string value of the first argument is not a valid URI reference or if
  the string value of the second argument is not a valid absolute URI.</p></td></tr></table><div id="colophon"><p><a href="http://www.exslt.org/uri/functions/resolve-uri/index.html">http://www.exslt.org/uri/functions/resolve-uri/index.html</a> last modified 2006-03-18</p></div></body></html>
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.7 (GNU/Linux)

iD8DBQFEHKNbjkcskvOyl78RAgPIAKDGt5u6cPlHapZ3W86IuO6dAQr0dQCfQ1yx
77paH+E3S4VQYzm9ofTSh7k=
=kgHH
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.