~ubuntu-branches/ubuntu/lucid/erlang/lucid-proposed

« back to all changes in this revision

Viewing changes to lib/xmerl/src/xmerl_sax_old_dom.hrl

  • Committer: Bazaar Package Importer
  • Author(s): Sergei Golovan
  • Date: 2009-06-11 12:18:07 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090611121807-ks7eb4xrt7dsysgx
Tags: 1:13.b.1-dfsg-1
* New upstream release.
* Removed unnecessary dependency of erlang-os-mon on erlang-observer and
  erlang-tools and added missing dependency of erlang-nox on erlang-os-mon
  (closes: #529512).
* Removed a patch to eunit application because the bug was fixed upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
%%
 
2
%% %CopyrightBegin%
 
3
%% 
 
4
%% Copyright Ericsson AB 2009. All Rights Reserved.
 
5
%% 
 
6
%% The contents of this file are subject to the Erlang Public License,
 
7
%% Version 1.1, (the "License"); you may not use this file except in
 
8
%% compliance with the License. You should have received a copy of the
 
9
%% Erlang Public License along with this software. If not, it can be
 
10
%% retrieved online at http://www.erlang.org/.
 
11
%% 
 
12
%% Software distributed under the License is distributed on an "AS IS"
 
13
%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
 
14
%% the License for the specific language governing rights and limitations
 
15
%% under the License.
 
16
%% 
 
17
%% %CopyrightEnd%
 
18
%% Contributor(s):
 
19
%%    <michael.remond@IDEALX.com>: suggested #xmlDocument{}
 
20
%%
 
21
%%----------------------------------------------------------------------
 
22
%% #0.    BASIC INFORMATION
 
23
%%----------------------------------------------------------------------
 
24
%% File:       xmerl.hrl
 
25
%% Author       : Ulf Wiger <ulf.wiger@ericsson.com>
 
26
%% Date         : 00-09-22
 
27
%% Description  : Record and macro definitions for xmerl
 
28
%%----------------------------------------------------------------------
 
29
 
 
30
 
 
31
 
 
32
%% records generated by the scanner
 
33
%% --------------------------------
 
34
 
 
35
%% XML declaration
 
36
-record(xmlDecl,{
 
37
          vsn,        % string() XML version
 
38
          encoding,   % string() Character encoding 
 
39
          standalone, % (yes | no)
 
40
          attributes  % [#xmlAttribute()] Other attributes than above
 
41
         }).
 
42
 
 
43
%% Attribute
 
44
-record(xmlAttribute,{
 
45
          name,            % atom()
 
46
          expanded_name=[],% atom() | {string(),atom()}
 
47
          nsinfo = [],     % {Prefix, Local} | []
 
48
          namespace = [],  % inherits the element's namespace
 
49
          parents = [],    % [{atom(),integer()}]
 
50
          pos,             % integer()
 
51
          language = [],   % inherits the element's language
 
52
          value,           % IOlist() | atom() | integer()
 
53
          normalized       % atom() one of (true | false)
 
54
         }).
 
55
 
 
56
%% namespace record
 
57
-record(xmlNamespace,{
 
58
          default = [],
 
59
          nodes = []
 
60
         }).
 
61
 
 
62
%% namespace node - i.e. a {Prefix, URI} pair
 
63
%% TODO: these are not currently used?? /RC
 
64
-record(xmlNsNode,{
 
65
          prefix,
 
66
          uri = []
 
67
         }).
 
68
 
 
69
%% XML Element
 
70
%% content = [#xmlElement()|#xmlText()|#xmlPI()|#xmlComment()|#xmlDecl()]
 
71
-record(xmlElement,{
 
72
          name,                 % atom()
 
73
          expanded_name = [],   % string() | {URI,Local} | {"xmlns",Local}
 
74
          nsinfo = [],          % {Prefix, Local} | []
 
75
          namespace=#xmlNamespace{},
 
76
          parents = [],         % [{atom(),integer()}]
 
77
          pos,                  % integer()
 
78
          attributes = [],      % [#xmlAttribute()]
 
79
          content = [],
 
80
          language = "",        % string()
 
81
          xmlbase="",           % string() XML Base path, for relative URI:s
 
82
          elementdef=undeclared % atom(), one of [undeclared | prolog | external | element]
 
83
         }).
 
84
 
 
85
%% plain text
 
86
%% IOlist = [char() | binary () | IOlist]
 
87
-record(xmlText,{
 
88
          parents = [], % [{atom(),integer()}]
 
89
          pos,          % integer()
 
90
          language = [],% inherits the element's language
 
91
          value,        % IOlist()
 
92
          type = text   % atom() one of (text|cdata)
 
93
         }).
 
94
 
 
95
%% plain text
 
96
-record(xmlComment,{
 
97
          parents = [],  % [{atom(),integer()}]
 
98
          pos,           % integer()
 
99
          language = [], % inherits the element's language
 
100
          value          % IOlist()
 
101
         }).
 
102
 
 
103
%% processing instruction
 
104
-record(xmlPI,{
 
105
          name, % atom()
 
106
          pos,  % integer()
 
107
          value % IOlist()
 
108
         }).
 
109
 
 
110
-record(xmlDocument,{
 
111
          content
 
112
         }).
 
113
 
 
114
 
 
115
%% XPATH (xmerl_xpath, xmerl_pred_funcs) records
 
116
 
 
117
-record(xmlContext, {
 
118
                     axis_type = forward,
 
119
                     context_node,
 
120
                     context_position = 1,
 
121
                     nodeset = [],
 
122
                     bindings = [],
 
123
                     functions = [],
 
124
                     namespace = [],
 
125
                     whole_document
 
126
                    }).
 
127
 
 
128
-record(xmlNode, {
 
129
                  type = element,
 
130
                  node,
 
131
                  parents = [],
 
132
                  pos = 1
 
133
                 }).
 
134
 
 
135
-record(xmlObj, {
 
136
                 type,
 
137
                 value
 
138
                 }).