added regexp support to Domain element
authorcantor <cantor@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Tue, 17 Dec 2002 22:33:15 +0000 (22:33 +0000)
committercantor <cantor@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Tue, 17 Dec 2002 22:33:15 +0000 (22:33 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@381 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/schemas/shibboleth.xsd

index a4aebc5..14a1ff8 100644 (file)
         </sequence>
         <attribute name="Name" type="string" use="required"/>
     </complexType>
-    
+
+    <complexType name="regexp_string">
+        <annotation> A string element with an optional attribute signaling regexp content. </annotation>
+        <simpleContent>
+            <extension base="string">
+                <attribute name="regexp" type="boolean" use="optional" default="false"/>
+            </extension>
+        </simpleContent>
+    </complexType>    
+
     <complexType name="OriginSiteType">
         <annotation>Origin sites add at least one handle service (with a name and optional KeyInfo), plus optional domains trusted for attribute scoping.</annotation>
         <complexContent>
@@ -47,7 +56,7 @@
                             <attribute name="Location" type="anyURI" use="required"/>
                         </complexType>
                     </element>
-                    <element name="Domain" type="string" minOccurs="0" maxOccurs="unbounded"/>
+                    <element name="Domain" type="shib:regexp_string" minOccurs="0" maxOccurs="unbounded"/>
                 </sequence>
             </extension>
         </complexContent>