From f0510d2f90467de8e8f260b47d79a9baaf9bef17 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 17 Sep 2009 07:15:29 +0200 Subject: Start tracking XSD with git --- .../xsd/cxx/parser/validating/xml-schema-pskel.txx | 69 ++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 libxsd/xsd/cxx/parser/validating/xml-schema-pskel.txx (limited to 'libxsd/xsd/cxx/parser/validating/xml-schema-pskel.txx') diff --git a/libxsd/xsd/cxx/parser/validating/xml-schema-pskel.txx b/libxsd/xsd/cxx/parser/validating/xml-schema-pskel.txx new file mode 100644 index 0000000..c5fe5ef --- /dev/null +++ b/libxsd/xsd/cxx/parser/validating/xml-schema-pskel.txx @@ -0,0 +1,69 @@ +// file : xsd/cxx/parser/validating/xml-schema-pskel.txx +// author : Boris Kolpackov +// copyright : Copyright (c) 2005-2009 Code Synthesis Tools CC +// license : GNU GPL v2 + exceptions; see accompanying LICENSE file + +namespace xsd +{ + namespace cxx + { + namespace parser + { + namespace validating + { + // any_type + // + + template + bool any_type_pskel:: + _start_element_impl (const ro_string& ns, + const ro_string& name, + const ro_string* type) + { + _start_any_element (ns, name, type); + this->complex_content::context_.top ().any_ = true; + return true; + } + + template + bool any_type_pskel:: + _end_element_impl (const ro_string& ns, const ro_string& name) + { + this->complex_content::context_.top ().any_ = false; + _end_any_element (ns, name); + return true; + } + + + template + 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; + } + + template + bool any_type_pskel:: + _characters_impl (const ro_string& s) + { + _any_characters (s); + return true; + } + + // any_simple_type + // + + template + bool any_simple_type_pskel:: + _characters_impl (const ro_string& s) + { + _any_characters (s); + return true; + } + } + } + } +} -- cgit v1.1