diff options
author | Anthony Ramine <[email protected]> | 2010-12-07 11:30:05 +0100 |
---|---|---|
committer | Lars Thorsen <[email protected]> | 2011-11-11 11:58:43 +0100 |
commit | ef8ba559efdef989a5c608ac40635410500395df (patch) | |
tree | f45005e0b683676ef0393008d4452d39da459d21 /lib/xmerl/include | |
parent | 5b9aeb694cc7839163f684244c37a3029b9a1c8e (diff) | |
download | otp-ef8ba559efdef989a5c608ac40635410500395df.tar.gz otp-ef8ba559efdef989a5c608ac40635410500395df.tar.bz2 otp-ef8ba559efdef989a5c608ac40635410500395df.zip |
Implement namespace axis
Namespace nodes are represented as `#xmlNsNode` records.
Now that the namespace axis is correctly implemented, attributes nodes
corresponding to attributes that declare namespaces are ignored.
See [5.3 Attribute Nodes][xpath-5.3]:
> There are no attribute nodes corresponding to attributes
> that declare namespaces.
[xpath-5.3]: http://www.w3.org/TR/xpath/#attribute-nodes
Diffstat (limited to 'lib/xmerl/include')
-rw-r--r-- | lib/xmerl/include/xmerl.hrl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/xmerl/include/xmerl.hrl b/lib/xmerl/include/xmerl.hrl index 2e18e216e2..e75528ae34 100644 --- a/lib/xmerl/include/xmerl.hrl +++ b/lib/xmerl/include/xmerl.hrl @@ -61,10 +61,11 @@ }). %% namespace node - i.e. a {Prefix, URI} pair -%% TODO: these are not currently used?? /RC -record(xmlNsNode,{ - prefix, - uri = [] + parents = [], % [{atom(),integer()}] + pos, % integer() + prefix, % string() + uri = [] % [] | atom() }). %% XML Element |