aboutsummaryrefslogtreecommitdiff
path: root/libxsd/xsd
diff options
context:
space:
mode:
Diffstat (limited to 'libxsd/xsd')
-rw-r--r--libxsd/xsd/cxx/tree/serialization.txx12
1 files changed, 9 insertions, 3 deletions
diff --git a/libxsd/xsd/cxx/tree/serialization.txx b/libxsd/xsd/cxx/tree/serialization.txx
index ef0a44c..87cb44c 100644
--- a/libxsd/xsd/cxx/tree/serialization.txx
+++ b/libxsd/xsd/cxx/tree/serialization.txx
@@ -648,7 +648,9 @@ namespace xsd
if (x.qualified ())
{
- std::basic_string<C> p (xml::dom::prefix (x.namespace_ (), e));
+ // Note: prefix<C> in case uri doesn't derive from basic_string.
+ //
+ std::basic_string<C> p (xml::dom::prefix<C> (x.namespace_ (), e));
if (!p.empty ())
os << p << C (':');
@@ -666,8 +668,10 @@ namespace xsd
if (x.qualified ())
{
+ // Note: prefix<C> in case uri doesn't derive from basic_string.
+ //
std::basic_string<C> p (
- xml::dom::prefix (x.namespace_ (), *a.getOwnerElement ()));
+ xml::dom::prefix<C> (x.namespace_ (), *a.getOwnerElement ()));
if (!p.empty ())
os << p << C (':');
@@ -683,8 +687,10 @@ namespace xsd
{
if (x.qualified ())
{
+ // Note: prefix<C> in case uri doesn't derive from basic_string.
+ //
std::basic_string<C> p (
- xml::dom::prefix (x.namespace_ (), ls.parent_));
+ xml::dom::prefix<C> (x.namespace_ (), ls.parent_));
if (!p.empty ())
ls.os_ << p << C (':');