summaryrefslogtreecommitdiff
path: root/xsd/cxx/elements.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-01-12 15:14:06 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-01-12 15:14:06 +0200
commitf3e67f694188a16e426e92fda846998fd26db50d (patch)
tree8479968d3e677af5858e7bda565674bf85d8fef8 /xsd/cxx/elements.cxx
parent8e6517dd89899e8fd3b8d5b314bcdf50bd3296cc (diff)
Include file component in regex strings for schema being compiled
Diffstat (limited to 'xsd/cxx/elements.cxx')
-rw-r--r--xsd/cxx/elements.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/xsd/cxx/elements.cxx b/xsd/cxx/elements.cxx
index 9b84e2c..29603ae 100644
--- a/xsd/cxx/elements.cxx
+++ b/xsd/cxx/elements.cxx
@@ -113,6 +113,7 @@ namespace CXX
Context::
Context (std::wostream& o,
SemanticGraph::Schema& root,
+ SemanticGraph::Path const& path,
StringLiteralMap const* string_literal_map_,
NarrowString const& char_type__,
NarrowString const& char_encoding__,
@@ -128,6 +129,7 @@ namespace CXX
Containers::Vector<NarrowString> const& reserved_name)
: os (o),
schema_root (root),
+ schema_path (schema_path_),
char_type (char_type_),
char_encoding (char_encoding_),
L (L_),
@@ -139,6 +141,7 @@ namespace CXX
inst_exp (inst_exp_),
inl (inl_),
ns_mapping_cache (ns_mapping_cache_),
+ schema_path_ (path),
xs_ns_ (0),
char_type_ (char_type__),
char_encoding_ (char_encoding__),
@@ -307,6 +310,8 @@ namespace CXX
if (s.names_begin () != s.names_end ())
path = u.path ();
}
+ else
+ path = schema_path;
String pair;