~ubuntu-branches/ubuntu/trusty/pxp/trusty

« back to all changes in this revision

Viewing changes to doc/manual/html/ref/Pxp_reader.norm_system_id-c.html

  • Committer: Package Import Robot
  • Author(s): Stéphane Glondu
  • Date: 2013-07-11 11:21:26 UTC
  • mfrom: (6.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20130711112126-5wysiuf0cgjo376r
Tags: 1.2.4-1
* Team upload
* New upstream release
* Update Vcs-*

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
<link title="Example_readme" rel="Chapter" href="Example_readme.html"><title>PXP Reference : Pxp_reader.norm_system_id</title>
39
39
</head>
40
40
<body>
41
 
<div class="navbar"><a href="Pxp_reader.lookup_system_id_as_string-c.html">Previous</a>
42
 
&nbsp;<a href="Pxp_reader.html">Up</a>
43
 
&nbsp;<a href="Pxp_reader.rewrite_system_id-c.html">Next</a>
 
41
<div class="navbar"><a class="pre" href="Pxp_reader.lookup_system_id_as_string-c.html" title="Pxp_reader.lookup_system_id_as_string">Previous</a>
 
42
&nbsp;<a class="up" href="Pxp_reader.html" title="Pxp_reader">Up</a>
 
43
&nbsp;<a class="post" href="Pxp_reader.rewrite_system_id-c.html" title="Pxp_reader.rewrite_system_id">Next</a>
44
44
</div>
45
 
<center><h1>Class <a href="type_Pxp_reader.norm_system_id.html">Pxp_reader.norm_system_id</a></h1></center>
46
 
<br>
 
45
<h1>Class <a href="type_Pxp_reader.norm_system_id.html">Pxp_reader.norm_system_id</a></h1>
47
46
<pre><span name="TYPEnorm_system_id"><span class="keyword">class</span> norm_system_id</span> : <code class="type"><a href="Pxp_reader.resolver-c.html">resolver</a> -> </code><code class="type"><a href="Pxp_reader.resolver-c.html">resolver</a></code></pre>Normalizes URL's, and forwards the open request to the
48
47
 passed resolver. (Non-URL ID's are forwarded unchanged to the subresolver.)
49
48
<p>
56
55
</ul>
57
56
 
58
57
 Normalization is recommended for catalogs, e.g.
59
 
 <pre></pre><code class="code">&nbsp;<span class="keyword">new</span>&nbsp;norm_system_id<br>
 
58
 <code class="code">&nbsp;<span class="keyword">new</span>&nbsp;norm_system_id<br>
60
59
&nbsp;&nbsp;&nbsp;(<span class="keyword">new</span>&nbsp;lookup_system_id_as_file<br>
61
60
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[&nbsp;<span class="string">"http://h/p1"</span>,&nbsp;...;<br>
62
61
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="string">"http://h/p2"</span>,&nbsp;...;<br>
63
62
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;])<br>
64
 
&nbsp;</code><pre></pre>
 
63
&nbsp;</code>
65
64
 First, the catalog now even works if the URL is written in an
66
65
 unsual way, e.g. <code class="code">http://h/p1/../p2</code>, or <code class="code">http://h/p%31</code>. 
67
66
 Second, relative URLs can be used. For instance, the document