Added AAP elements to schema.
authorcantor <cantor@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Mon, 23 Dec 2002 06:16:35 +0000 (06:16 +0000)
committercantor <cantor@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Mon, 23 Dec 2002 06:16:35 +0000 (06:16 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@395 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/schemas/eduPerson.xsd

index ce7d5e4..91487b3 100644 (file)
@@ -1,6 +1,5 @@
 <?xml version="1.0" encoding="US-ASCII"?>
-<schema targetNamespace="urn:mace:eduPerson:1.0" xmlns:edu="urn:mace:eduPerson:1.0" xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
-
+<schema targetNamespace="urn:mace:eduPerson:1.0" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:edu="urn:mace:eduPerson:1.0" elementFormDefault="qualified" attributeFormDefault="unqualified">
     <!--
     Attribute Identifiers:
     
@@ -27,7 +26,6 @@
         - AttributeValue elements contain a URI representing the entitlement
         - MAY be multi-valued
     -->
-    
     <complexType name="ScopedStringValueType">
         <simpleContent>
             <extension base="string">
@@ -35,7 +33,6 @@
             </extension>
         </simpleContent>
     </complexType>
-    
     <complexType name="eduPersonPrincipalNameType">
         <simpleContent>
             <restriction base="edu:ScopedStringValueType">
@@ -44,7 +41,6 @@
             </restriction>
         </simpleContent>
     </complexType>
-    
     <complexType name="eduPersonAffiliationType">
         <simpleContent>
             <restriction base="edu:ScopedStringValueType">
             </restriction>
         </simpleContent>
     </complexType>
-    
+    <simpleType name="ValueType">
+        <restriction base="string">
+            <enumeration value="literal"/>
+            <enumeration value="regexp"/>
+            <enumeration value="xpath"/>
+        </restriction>
+    </simpleType>
+    <complexType name="SiteRuleType">
+        <sequence>
+            <element name="Value" maxOccurs="unbounded">
+                <complexType>
+                    <simpleContent>
+                        <extension base="string">
+                            <attribute name="Type" type="edu:ValueType" use="optional" default="literal"/>
+                        </extension>
+                    </simpleContent>
+                </complexType>
+            </element>
+        </sequence>
+    </complexType>
+    <element name="AnySite" type="edu:SiteRuleType"/>
+    <element name="SiteRule">
+        <complexType>
+            <complexContent>
+                <extension base="edu:SiteRuleType">
+                    <attribute name="Name" type="string" use="required"/>
+                </extension>
+            </complexContent>
+        </complexType>
+    </element>
+    <complexType name="AttributeRuleType">
+        <sequence>
+            <element ref="edu:AnySite" minOccurs="0"/>
+            <element ref="edu:SiteRule" minOccurs="0" maxOccurs="unbounded"/>
+        </sequence>
+        <attribute name="Name" type="anyURI"/>
+    </complexType>
+    <element name="AttributeRule" type="edu:AttributeRuleType">
+        <key name="SiteRuleKey">
+            <selector xpath="./edu:SiteRule"/>
+            <field xpath="@Name"/>
+        </key>
+    </element>
+    <element name="AttributeAcceptancePolicy">
+        <complexType>
+            <sequence>
+                <element ref="edu:AttributeRule" maxOccurs="unbounded"/>
+            </sequence>
+        </complexType>
+        <key name="AttributeNameKey">
+            <selector xpath="./edu:AttributeRule"/>
+            <field xpath="@Name"/>
+        </key>
+    </element>
 </schema>