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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
|
// file : xsde/cxx/hybrid/any-type-pskel.cxx
// copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC
// license : GNU GPL v2 + exceptions; see accompanying LICENSE file
#include <xsde/cxx/hybrid/any-type-pskel.hxx>
namespace xsde
{
namespace cxx
{
namespace hybrid
{
#ifdef XSDE_POLYMORPHIC
bool any_type_pskel::
_start_element_impl (
#ifdef XSDE_PARSER_VALIDATION
const ro_string& ns, const ro_string& name, const char* type
#else
const ro_string&, const ro_string&, const char*
#endif
)
{
#ifdef XSDE_PARSER_VALIDATION
_context ().start_wildcard_content ();
_start_any_element (ns, name, type);
return true;
#else
return false;
#endif
}
#else
bool any_type_pskel::
_start_element_impl (
#ifdef XSDE_PARSER_VALIDATION
const ro_string& ns, const ro_string& name
#else
const ro_string&, const ro_string&
#endif
)
{
#ifdef XSDE_PARSER_VALIDATION
_context ().start_wildcard_content ();
_start_any_element (ns, name);
return true;
#else
return false;
#endif
}
#endif
bool any_type_pskel::
_end_element_impl (
#ifdef XSDE_PARSER_VALIDATION
const ro_string& ns, const ro_string& name
#else
const ro_string&, const ro_string&
#endif
)
{
#ifdef XSDE_PARSER_VALIDATION
_end_any_element (ns, name);
return true;
#else
return false;
#endif
}
#ifdef XSDE_PARSER_VALIDATION
bool any_type_pskel::
_attribute_impl_phase_two (const ro_string& ns,
const ro_string& name,
const ro_string& value)
{
_any_attribute (ns, name, value);
return true;
}
#else
bool any_type_pskel::
_attribute_impl (const ro_string&,
const ro_string&,
const ro_string&)
{
return false;
}
#endif
bool any_type_pskel::
_characters_impl (
#ifdef XSDE_PARSER_VALIDATION
const ro_string& s
#else
const ro_string&
#endif
)
{
#ifdef XSDE_PARSER_VALIDATION
_any_characters (s);
return true;
#else
return false;
#endif
}
#ifdef XSDE_POLYMORPHIC
const char* any_type_pskel::
_static_type ()
{
return "anyType http://www.w3.org/2001/XMLSchema";
}
const char* any_type_pskel::
_dynamic_type () const
{
return _static_type ();
}
#endif
}
}
}
|