From 70708332c865b3f2499f84f1f202b353b1f79e5b Mon Sep 17 00:00:00 2001
From: Tony Mack <tmack@paris.CS.Princeton.EDU>
Date: Fri, 5 Aug 2011 15:22:10 -0400
Subject: [PATCH] declare namespace and schema location

---
 sfa/trust/credential.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/sfa/trust/credential.py b/sfa/trust/credential.py
index 0f5ae15b..4a1d7555 100644
--- a/sfa/trust/credential.py
+++ b/sfa/trust/credential.py
@@ -423,9 +423,11 @@ class Credential(object):
 # But it's kind of odd for PL to use PG schemas that talk
 # about tickets, and the PG CM policies.
 # Note the careful addition of attributes from the parent below...
-#        signed_cred.setAttribute("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance")
+        signed_cred.setAttribute("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance")
 #        signed_cred.setAttribute("xsinoNamespaceSchemaLocation", "http://www.protogeni.net/resources/credential/credential.xsd")
 #        signed_cred.setAttribute("xsi:schemaLocation", "http://www.protogeni.net/resources/credential/ext/policy/1 http://www.protogeni.net/resources/credential/ext/policy/1/policy.xsd")
+        signed_cred.setAttribute("xsinoNamespaceSchemaLocation", "http://www.planet-lab.org/resources/sfa/credential.xsd")
+        signed_cred.setAttribute("xsi:schemaLocation", "http://www.planet-lab.org/resources/sfa/ext/policy/1 http://www.planet-lab.org/resources/sfa/ext/policy.xsd")
 
         doc.appendChild(signed_cred)  
         
-- 
2.47.0