This file is indexed.

/usr/share/doc/libghc-haxml-doc/html/Text-XML-HaXml-Namespaces.html is in libghc-haxml-doc 1:1.25.3-4build1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Text.XML.HaXml.Namespaces</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Text-XML-HaXml-Namespaces.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Text-XML-HaXml-Namespaces.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">HaXml-1.25.3: Utilities for manipulating XML documents</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>Safe</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Text.XML.HaXml.Namespaces</p></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><a href="#v:nullNamespace">nullNamespace</a> :: <a href="Text-XML-HaXml-Types.html#t:Namespace">Namespace</a></li><li class="src short"><a href="#v:expandedName">expandedName</a> :: <a href="Text-XML-HaXml-Types.html#t:QName">QName</a> -&gt; (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Text-XML-HaXml-Types.html#t:Namespace">Namespace</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a>)</li><li class="src short"><a href="#v:namespaceName">namespaceName</a> :: <a href="Text-XML-HaXml-Types.html#t:QName">QName</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Text-XML-HaXml-Types.html#t:Namespace">Namespace</a></li><li class="src short"><a href="#v:localName">localName</a> :: <a href="Text-XML-HaXml-Types.html#t:QName">QName</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:printableName">printableName</a> :: <a href="Text-XML-HaXml-Types.html#t:QName">QName</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:qualify">qualify</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Text-XML-HaXml-Types.html#t:Namespace">Namespace</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/containers-0.5.6.2/Data-Map-Lazy.html#t:Map">Map</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a> <a href="Text-XML-HaXml-Types.html#t:Namespace">Namespace</a> -&gt; <a href="Text-XML-HaXml-Types.html#t:QName">QName</a> -&gt; <a href="Text-XML-HaXml-Types.html#t:QName">QName</a></li><li class="src short"><a href="#v:deQualify">deQualify</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Text-XML-HaXml-Types.html#t:Namespace">Namespace</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/containers-0.5.6.2/Data-Map-Lazy.html#t:Map">Map</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a> <a href="Text-XML-HaXml-Types.html#t:Namespace">Namespace</a> -&gt; <a href="Text-XML-HaXml-Types.html#t:QName">QName</a> -&gt; <a href="Text-XML-HaXml-Types.html#t:QName">QName</a></li><li class="src short"><a href="#v:qualifyExceptLocal">qualifyExceptLocal</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Text-XML-HaXml-Types.html#t:Namespace">Namespace</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/containers-0.5.6.2/Data-Map-Lazy.html#t:Map">Map</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a> <a href="Text-XML-HaXml-Types.html#t:Namespace">Namespace</a> -&gt; <a href="Text-XML-HaXml-Types.html#t:QName">QName</a> -&gt; <a href="Text-XML-HaXml-Types.html#t:QName">QName</a></li><li class="src short"><a href="#v:initNamespaceEnv">initNamespaceEnv</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/containers-0.5.6.2/Data-Map-Lazy.html#t:Map">Map</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a> <a href="Text-XML-HaXml-Types.html#t:Namespace">Namespace</a></li><li class="src short"><a href="#v:augmentNamespaceEnv">augmentNamespaceEnv</a> :: <a href="Text-XML-HaXml-Types.html#t:Namespace">Namespace</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/containers-0.5.6.2/Data-Map-Lazy.html#t:Map">Map</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a> <a href="Text-XML-HaXml-Types.html#t:Namespace">Namespace</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/containers-0.5.6.2/Data-Map-Lazy.html#t:Map">Map</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a> <a href="Text-XML-HaXml-Types.html#t:Namespace">Namespace</a></li><li class="src short"><a href="#v:resolveAllNames">resolveAllNames</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Text-XML-HaXml-Types.html#t:Namespace">Namespace</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/containers-0.5.6.2/Data-Map-Lazy.html#t:Map">Map</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a> <a href="Text-XML-HaXml-Types.html#t:Namespace">Namespace</a> -&gt; <a href="Text-XML-HaXml-Types.html#t:QName">QName</a> -&gt; <a href="Text-XML-HaXml-Types.html#t:QName">QName</a>) -&gt; <a href="Text-XML-HaXml-Types.html#t:Document">Document</a> i -&gt; <a href="Text-XML-HaXml-Types.html#t:Document">Document</a> i</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a name="v:nullNamespace" class="def">nullNamespace</a> :: <a href="Text-XML-HaXml-Types.html#t:Namespace">Namespace</a> <a href="src/Text-XML-HaXml-Namespaces.html#nullNamespace" class="link">Source</a></p><div class="doc"><p>The null Namespace (no prefix, no URI).</p></div></div><div class="top"><p class="src"><a name="v:expandedName" class="def">expandedName</a> :: <a href="Text-XML-HaXml-Types.html#t:QName">QName</a> -&gt; (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Text-XML-HaXml-Types.html#t:Namespace">Namespace</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a>) <a href="src/Text-XML-HaXml-Namespaces.html#expandedName" class="link">Source</a></p><div class="doc"><p>Every Name can be split into a Namespace and local Name.  The Namespace
   might of course be missing.</p></div></div><div class="top"><p class="src"><a name="v:namespaceName" class="def">namespaceName</a> :: <a href="Text-XML-HaXml-Types.html#t:QName">QName</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Text-XML-HaXml-Types.html#t:Namespace">Namespace</a> <a href="src/Text-XML-HaXml-Namespaces.html#namespaceName" class="link">Source</a></p><div class="doc"><p>Return the (possibly absent) Namespace component of a Name.</p></div></div><div class="top"><p class="src"><a name="v:localName" class="def">localName</a> :: <a href="Text-XML-HaXml-Types.html#t:QName">QName</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a> <a href="src/Text-XML-HaXml-Namespaces.html#localName" class="link">Source</a></p><div class="doc"><p>Return the local component of a Name, without its Namespace.</p></div></div><div class="top"><p class="src"><a name="v:printableName" class="def">printableName</a> :: <a href="Text-XML-HaXml-Types.html#t:QName">QName</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a> <a href="src/Text-XML-HaXml-Namespaces.html#printableName" class="link">Source</a></p><div class="doc"><p>Return the printable string for a Name, i.e. attaching a prefix
   for its namespace (if it has one).</p></div></div><div class="top"><p class="src"><a name="v:qualify" class="def">qualify</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Text-XML-HaXml-Types.html#t:Namespace">Namespace</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/containers-0.5.6.2/Data-Map-Lazy.html#t:Map">Map</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a> <a href="Text-XML-HaXml-Types.html#t:Namespace">Namespace</a> -&gt; <a href="Text-XML-HaXml-Types.html#t:QName">QName</a> -&gt; <a href="Text-XML-HaXml-Types.html#t:QName">QName</a> <a href="src/Text-XML-HaXml-Namespaces.html#qualify" class="link">Source</a></p><div class="doc"><p><code><a href="Text-XML-HaXml-Namespaces.html#v:qualify">qualify</a></code> splits a Name of the form &quot;pr:nm&quot; into the
   prefix &quot;pr&quot; and local name &quot;nm&quot;, and looks up the prefix in the
   given environment to determine its Namespace.  There may also be a
   default namespace (the first argument) for unqualified names.
   In the absence of a default Namespace, a Name that does not have
   a prefix remains unqualified.  A prefix that is not known in the
   environment becomes a fresh namespace with null URI.  A Name that is
   already qualified is passed unchanged, unless its URI was null, in
   which case we check afresh for that prefix in the environment.</p></div></div><div class="top"><p class="src"><a name="v:deQualify" class="def">deQualify</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Text-XML-HaXml-Types.html#t:Namespace">Namespace</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/containers-0.5.6.2/Data-Map-Lazy.html#t:Map">Map</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a> <a href="Text-XML-HaXml-Types.html#t:Namespace">Namespace</a> -&gt; <a href="Text-XML-HaXml-Types.html#t:QName">QName</a> -&gt; <a href="Text-XML-HaXml-Types.html#t:QName">QName</a> <a href="src/Text-XML-HaXml-Namespaces.html#deQualify" class="link">Source</a></p><div class="doc"><p><code><a href="Text-XML-HaXml-Namespaces.html#v:deQualify">deQualify</a></code> has the same signature as <code><a href="Text-XML-HaXml-Namespaces.html#v:qualify">qualify</a></code>, but ignores the
   arguments for default namespace and environment, and simply removes any
   pre-existing qualification.</p></div></div><div class="top"><p class="src"><a name="v:qualifyExceptLocal" class="def">qualifyExceptLocal</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Text-XML-HaXml-Types.html#t:Namespace">Namespace</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/containers-0.5.6.2/Data-Map-Lazy.html#t:Map">Map</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a> <a href="Text-XML-HaXml-Types.html#t:Namespace">Namespace</a> -&gt; <a href="Text-XML-HaXml-Types.html#t:QName">QName</a> -&gt; <a href="Text-XML-HaXml-Types.html#t:QName">QName</a> <a href="src/Text-XML-HaXml-Namespaces.html#qualifyExceptLocal" class="link">Source</a></p><div class="doc"><p><code><a href="Text-XML-HaXml-Namespaces.html#v:qualifyExceptLocal">qualifyExceptLocal</a></code> converts names to qualified names, except where
   an existing qualification matches the default namespace, in which case
   the qualification is removed.  (This is useful when translating QNames
   to Haskell, because Haskell qualified names cannot use the current
   module name.)</p></div></div><div class="top"><p class="src"><a name="v:initNamespaceEnv" class="def">initNamespaceEnv</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/containers-0.5.6.2/Data-Map-Lazy.html#t:Map">Map</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a> <a href="Text-XML-HaXml-Types.html#t:Namespace">Namespace</a> <a href="src/Text-XML-HaXml-Namespaces.html#initNamespaceEnv" class="link">Source</a></p><div class="doc"><p>The initial Namespace environment.  It always has bindings for the
   prefixes <code>xml</code> and <code>xmlns</code>.</p></div></div><div class="top"><p class="src"><a name="v:augmentNamespaceEnv" class="def">augmentNamespaceEnv</a> :: <a href="Text-XML-HaXml-Types.html#t:Namespace">Namespace</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/containers-0.5.6.2/Data-Map-Lazy.html#t:Map">Map</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a> <a href="Text-XML-HaXml-Types.html#t:Namespace">Namespace</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/containers-0.5.6.2/Data-Map-Lazy.html#t:Map">Map</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a> <a href="Text-XML-HaXml-Types.html#t:Namespace">Namespace</a> <a href="src/Text-XML-HaXml-Namespaces.html#augmentNamespaceEnv" class="link">Source</a></p><div class="doc"><p>Add a fresh Namespace into the Namespace environment.  It is not
   permitted to rebind the prefixes <code>xml</code> or <code>xmlns</code>, but that is not
   checked here.</p></div></div><div class="top"><p class="src"><a name="v:resolveAllNames" class="def">resolveAllNames</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Text-XML-HaXml-Types.html#t:Namespace">Namespace</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/containers-0.5.6.2/Data-Map-Lazy.html#t:Map">Map</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a> <a href="Text-XML-HaXml-Types.html#t:Namespace">Namespace</a> -&gt; <a href="Text-XML-HaXml-Types.html#t:QName">QName</a> -&gt; <a href="Text-XML-HaXml-Types.html#t:QName">QName</a>) -&gt; <a href="Text-XML-HaXml-Types.html#t:Document">Document</a> i -&gt; <a href="Text-XML-HaXml-Types.html#t:Document">Document</a> i <a href="src/Text-XML-HaXml-Namespaces.html#resolveAllNames" class="link">Source</a></p><div class="doc"><p>resolveAllNames in a document, causes every name to be properly
   qualified with its namespace.  There is a default namespace for any
   name that was originally unqualified.  This is likely only useful when
   dealing with parsed document, less useful when generating a document
   from scratch.</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.1</p></div></body></html>