From c51870a34dc0991bb33f59b3913df1c3c17c4cc0 Mon Sep 17 00:00:00 2001 From: Jan-Philip Gehrcke Date: Wed, 11 May 2016 20:20:48 +0200 Subject: [PATCH] AttributeValueBase: include xs namespace definition in set_type --- src/saml2/saml.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/saml2/saml.py b/src/saml2/saml.py index 483611f1c..b2f65b506 100644 --- a/src/saml2/saml.py +++ b/src/saml2/saml.py @@ -169,6 +169,9 @@ def set_type(self, typ): except AttributeError: self._extatt[XSI_TYPE] = typ + if typ.startswith("xs:"): + self.extension_attributes["xmlns:xs"] = XS_NAMESPACE + def get_type(self): try: return self.extension_attributes[XSI_TYPE]