Sophie

Sophie

distrib > Mageia > 3 > x86_64 > by-pkgid > 334c73eb2cbee096307b926bf8d6e67a > files > 107

ocaml-pxp-devel-1.2.3-5.mga3.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css">
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<link rel="Start" href="index.html">
<link rel="previous" href="Pxp_document.super_root_impl-c.html">
<link rel="next" href="Pxp_document.namespace_impl-c.html">
<link rel="Up" href="Pxp_document.html">
<link title="Index of types" rel=Appendix href="index_types.html">
<link title="Index of exceptions" rel=Appendix href="index_exceptions.html">
<link title="Index of values" rel=Appendix href="index_values.html">
<link title="Index of class methods" rel=Appendix href="index_methods.html">
<link title="Index of classes" rel=Appendix href="index_classes.html">
<link title="Index of class types" rel=Appendix href="index_class_types.html">
<link title="Index of modules" rel=Appendix href="index_modules.html">
<link title="Index of module types" rel=Appendix href="index_module_types.html">
<link title="Pxp_types" rel="Chapter" href="Pxp_types.html">
<link title="Pxp_document" rel="Chapter" href="Pxp_document.html">
<link title="Pxp_dtd" rel="Chapter" href="Pxp_dtd.html">
<link title="Pxp_tree_parser" rel="Chapter" href="Pxp_tree_parser.html">
<link title="Pxp_core_types" rel="Chapter" href="Pxp_core_types.html">
<link title="Pxp_ev_parser" rel="Chapter" href="Pxp_ev_parser.html">
<link title="Pxp_event" rel="Chapter" href="Pxp_event.html">
<link title="Pxp_dtd_parser" rel="Chapter" href="Pxp_dtd_parser.html">
<link title="Pxp_codewriter" rel="Chapter" href="Pxp_codewriter.html">
<link title="Pxp_marshal" rel="Chapter" href="Pxp_marshal.html">
<link title="Pxp_yacc" rel="Chapter" href="Pxp_yacc.html">
<link title="Pxp_reader" rel="Chapter" href="Pxp_reader.html">
<link title="Intro_trees" rel="Chapter" href="Intro_trees.html">
<link title="Intro_extensions" rel="Chapter" href="Intro_extensions.html">
<link title="Intro_namespaces" rel="Chapter" href="Intro_namespaces.html">
<link title="Intro_events" rel="Chapter" href="Intro_events.html">
<link title="Intro_resolution" rel="Chapter" href="Intro_resolution.html">
<link title="Intro_getting_started" rel="Chapter" href="Intro_getting_started.html">
<link title="Intro_advanced" rel="Chapter" href="Intro_advanced.html">
<link title="Intro_preprocessor" rel="Chapter" href="Intro_preprocessor.html">
<link title="Example_readme" rel="Chapter" href="Example_readme.html"><title>PXP Reference : Pxp_document.attribute_impl</title>
</head>
<body>
<div class="navbar"><a class="pre" href="Pxp_document.super_root_impl-c.html" title="Pxp_document.super_root_impl">Previous</a>
&nbsp;<a class="up" href="Pxp_document.html" title="Pxp_document">Up</a>
&nbsp;<a class="post" href="Pxp_document.namespace_impl-c.html" title="Pxp_document.namespace_impl">Next</a>
</div>
<h1>Class <a href="type_Pxp_document.attribute_impl.html">Pxp_document.attribute_impl</a></h1>
<pre><span name="TYPEattribute_impl"><span class="keyword">class</span> <code class="type">[< clone : 'a; node : 'a <a href="Pxp_document.node-c.html">node</a>;<br>       set_node : 'a <a href="Pxp_document.node-c.html">node</a> -> unit; .. ><br>     as 'a]</code> attribute_impl</span> : <code class="type">element:string -> name:string -> <a href="Pxp_types.html#TYPEatt_value">Pxp_types.att_value</a> -> <a href="Pxp_dtd.dtd-c.html">Pxp_dtd.dtd</a> -> </code><code class="type">['a]</code> <code class="type"><a href="Pxp_document.node-c.html">node</a></code></pre>This class is an implementation of <code class="code">node</code> which
   realizes attribute nodes.
 Create a new node by
<p>

 <code class="code"><span class="keyword">new</span>&nbsp;attribute_impl&nbsp;element_name&nbsp;attribute_name&nbsp;attribute_value&nbsp;dtd</code>
<p>

 Note that attribute nodes do intentionally not have extensions.
<p>

 Attribute nodes are created on demand by the first invocation of
 <code class="code">attributes_as_nodes</code> of the element node. Attribute nodes are
 created directly and not by copying exemplar nodes, so you never
 need to create them yourself.
<p>

 Attribute nodes have the following properties:<ul>
<li>The node type is T_attribute name.</li>
<li>The parent node is the element node.</li>
<li>The method "attributes" returns <code class="code"> name, value </code>, i.e. such nodes
   have a single attribute "name". To get the value, call
   n # attribute name.</li>
<li>The method "data" returns the string representation of the 
   attribute value.</li>
<li>Attribute nodes are leaves of the tree.</li>
</ul>

 Attribute nodes are designed to be members of XPath node sets, and
 are only useful if you need such sets.<br>
<hr width="100%">
</body></html>