Index: fedd/abac-src/rtml/examples/EPub/ABUADSD.xml
===================================================================
--- fedd/abac-src/rtml/examples/EPub/ABUADSD.xml	(revision 8780cbecc6db2bdc2b9ef31eec6e5209ad3bff15)
+++ fedd/abac-src/rtml/examples/EPub/ABUADSD.xml	(revision 8780cbecc6db2bdc2b9ef31eec6e5209ad3bff15)
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ApplicationDomainSpecification uri="C:\rtml\examples\EPub\ABUADSD.xml" 
+xmlns="http://crypto.stanford.edu/dc/RTMLv1.0" 
+xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
+xsi:schemaLocation="http://crypto.stanford.edu/dc/RTMLv1.0 
+                    http://crypto.stanford.edu/~ninghui/rtml/RTMLv1.0q.xsd">
+       <EnumType name="degree">
+       	<EnumValue>B.S.</EnumValue>
+       	<EnumValue>M.S.</EnumValue>
+       	<EnumValue>Ph.D.</EnumValue>
+       </EnumType>
+	<RoleDeclaration name="University">
+		<Parameter name="name">
+			<Type name="string"/>
+		</Parameter>
+	</RoleDeclaration>
+	<RoleDeclaration name="Student">
+		<Parameter name="university">
+			<Type name="string"/>
+		</Parameter>
+		<Parameter name="department">
+			<Type name="string"/>
+		</Parameter>
+		<Parameter name="program">
+			<Type name="degree"/>
+		</Parameter>
+		<Parameter name="id">
+			<Type name="string"/>
+		</Parameter>
+		<Parameter name="name">
+			<Type name="person name"/>
+		</Parameter>
+	</RoleDeclaration>
+</ApplicationDomainSpecification>
Index: fedd/abac-src/rtml/examples/EPub/ABUCredential.xml
===================================================================
--- fedd/abac-src/rtml/examples/EPub/ABUCredential.xml	(revision 8780cbecc6db2bdc2b9ef31eec6e5209ad3bff15)
+++ fedd/abac-src/rtml/examples/EPub/ABUCredential.xml	(revision 8780cbecc6db2bdc2b9ef31eec6e5209ad3bff15)
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- edited with XML Spy v4.3 U (http://www.xmlspy.com) by Kangshi (Kangshi) -->
+<Credential xmlns="http://crypto.stanford.edu/dc/RTMLv1.0" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://crypto.stanford.edu/dc/RTMLv1.0 
+                                http://crypto.stanford.edu/~ninghui/rtml/RTMLv1.0q.xsd">
+	<Preamble>
+		<DefaultDomain uri="C:\rtml\examples\EPub\ABUADSD.xml"/>
+		<Principal id="K_ABU">
+			<StringValue>
+			    /X9TgR11EilS30qcLuzk5/YRt1I870QAwx4/gLZRJmlFXUAiUftZPY1Y+r/F9bow9subVWzXgTuA
+			    HTRv8mZgt2uZUKWkn5/oBHsQIsJPu6nX/rfGG/g7V+fGqKYVDwT7g/bTxR7DAjVUE1oWkTL2dfOu
+			    K2HXKu/yIgMZndFIAcc=
+	  	    </StringValue>
+		</Principal>
+		<Principal id="K_StateU">
+			<StringValue>l2BQjxUjC8yykrmCouuEC/BYHPU=</StringValue>
+		</Principal>
+	</Preamble>
+	<Issuer>
+		<PrincipalRef ref="K_ABU"/>
+	</Issuer>
+	<SimpleMember>
+		<HeadRoleTerm name="University">
+			<Parameter name="name">
+				<StringValue>StateU</StringValue>
+			</Parameter>
+		</HeadRoleTerm>
+		<PrincipalRef ref="K_StateU"/>
+	</SimpleMember>
+	<ValidityTime>
+		<IssueTime>2002-08-26T12:52:00</IssueTime>
+	</ValidityTime>
+</Credential>
Index: fedd/abac-src/rtml/examples/EPub/ACMADSD.xml
===================================================================
--- fedd/abac-src/rtml/examples/EPub/ACMADSD.xml	(revision 8780cbecc6db2bdc2b9ef31eec6e5209ad3bff15)
+++ fedd/abac-src/rtml/examples/EPub/ACMADSD.xml	(revision 8780cbecc6db2bdc2b9ef31eec6e5209ad3bff15)
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- edited with XML Spy v4.3 U (http://www.xmlspy.com) by Kangshi (Kangshi) -->
+<ApplicationDomainSpecification uri="C:\rtml\examples\EPub\ACMADSD.xml" xmlns="http://crypto.stanford.edu/dc/RTMLv1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://crypto.stanford.edu/dc/RTMLv1.0 
+                    http://crypto.stanford.edu/~ninghui/rtml/RTMLv1.0q.xsd">
+	<EnumType name="member class">
+		<EnumValue>Professional</EnumValue>
+		<EnumValue>Student</EnumValue>
+	</EnumType>
+	<RoleDeclaration name="ACM Member">
+		<Parameter name="name">
+			<Type name="person name"/>
+		</Parameter>
+		<Parameter name="class">
+			<Type name="member class"/>
+		</Parameter>
+		<Parameter name="number">
+			<Type name="string"/>
+		</Parameter>
+	</RoleDeclaration>
+</ApplicationDomainSpecification>
Index: fedd/abac-src/rtml/examples/EPub/ACMCredential.xml
===================================================================
--- fedd/abac-src/rtml/examples/EPub/ACMCredential.xml	(revision 8780cbecc6db2bdc2b9ef31eec6e5209ad3bff15)
+++ fedd/abac-src/rtml/examples/EPub/ACMCredential.xml	(revision 8780cbecc6db2bdc2b9ef31eec6e5209ad3bff15)
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- edited with XML Spy v4.3 U (http://www.xmlspy.com) by Kangshi (Kangshi) -->
+<Credential xmlns="http://crypto.stanford.edu/dc/RTMLv1.0" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://crypto.stanford.edu/dc/RTMLv1.0 
+                                http://crypto.stanford.edu/~ninghui/rtml/RTMLv1.0q.xsd">
+	<Preamble>
+		<DefaultDomain uri="C:\rtml\examples\EPub\ACMADSD.xml"/>
+		<Principal id="K_ACM">
+			<StringValue>
+				9+GghdabPd7LvKtcNrhXuXmUr7v6OuqC+VdMCz0HgmdRWVeOutRZT+ZxBxCBgLRJFnEj6EwoFhO3
+			   	zwkyjMim4TwWeotUfI0o4KOuHiuzpnWRbqN/C/ohNWLx+2J6ASQ7zKTxvqhRkImog9/hWuWfBpKL
+	    			Zl6Ae1UlZAFMO/7PSSo=
+	        </StringValue>
+		</Principal>
+		<Principal id="K_Bob">
+			<StringValue>0o4KOuHiuzpnWRbqN/C/ohN</StringValue>
+		</Principal>
+	</Preamble>
+	<Issuer>
+		<PrincipalRef ref="K_ACM"/>
+	</Issuer>
+	<SimpleMember>
+		<HeadRoleTerm name="ACM Member">
+			<Parameter name="number">
+				<StringValue>UJ11111</StringValue>
+			</Parameter>
+			<Parameter name="class">
+				<EnumValue>Professional</EnumValue>
+			</Parameter>
+			<Parameter name="name">
+				<Record>
+					<Field name="first name">
+						<StringValue>Bob</StringValue>
+					</Field>
+					<Field name="last name">
+						<StringValue>Smith</StringValue>
+					</Field>
+				</Record>
+			</Parameter>
+		</HeadRoleTerm>
+		<PrincipalRef ref="K_Bob"/>
+	</SimpleMember>
+	<ValidityTime>
+		<IssueTime>2002-08-26T12:52:00</IssueTime>
+	</ValidityTime>
+</Credential>
Index: fedd/abac-src/rtml/examples/EPub/CVS/Entries
===================================================================
--- fedd/abac-src/rtml/examples/EPub/CVS/Entries	(revision 8780cbecc6db2bdc2b9ef31eec6e5209ad3bff15)
+++ fedd/abac-src/rtml/examples/EPub/CVS/Entries	(revision 8780cbecc6db2bdc2b9ef31eec6e5209ad3bff15)
@@ -0,0 +1,14 @@
+/ABUADSD.xml/1.1.1.1/Fri Nov 22 17:37:54 2002//
+/ABUCredential.xml/1.1.1.1/Fri Nov 22 17:37:54 2002//
+/ACMADSD.xml/1.1.1.1/Fri Nov 22 17:37:54 2002//
+/ACMCredential.xml/1.1.1.1/Fri Nov 22 17:37:54 2002//
+/Discount.xml/1.1.1.1/Fri Nov 22 17:37:54 2002//
+/EPubADSD.xml/1.1.1.1/Fri Nov 22 17:37:54 2002//
+/StateUCredential.xml/1.1.1.1/Fri Nov 22 17:37:54 2002//
+/Student.xml/1.1.1.1/Fri Nov 22 17:37:54 2002//
+/University.xml/1.1.1.1/Fri Nov 22 17:37:54 2002//
+/acmMemberCredential.xml/1.1.1.1/Fri Nov 22 17:37:54 2002//
+/ex1.zip/1.1.1.1/Fri Nov 22 17:37:54 2002//
+/studentCredential.xml/1.1.1.1/Fri Nov 22 17:37:54 2002//
+/universityCredential.xml/1.1.1.1/Fri Nov 22 17:37:54 2002//
+D
Index: fedd/abac-src/rtml/examples/EPub/CVS/Repository
===================================================================
--- fedd/abac-src/rtml/examples/EPub/CVS/Repository	(revision 8780cbecc6db2bdc2b9ef31eec6e5209ad3bff15)
+++ fedd/abac-src/rtml/examples/EPub/CVS/Repository	(revision 8780cbecc6db2bdc2b9ef31eec6e5209ad3bff15)
@@ -0,0 +1,1 @@
+rtml/examples/EPub
Index: fedd/abac-src/rtml/examples/EPub/CVS/Root
===================================================================
--- fedd/abac-src/rtml/examples/EPub/CVS/Root	(revision 8780cbecc6db2bdc2b9ef31eec6e5209ad3bff15)
+++ fedd/abac-src/rtml/examples/EPub/CVS/Root	(revision 8780cbecc6db2bdc2b9ef31eec6e5209ad3bff15)
@@ -0,0 +1,1 @@
+:ext:jjacobs@src.columbia.sparta.com/cvs/abac
Index: fedd/abac-src/rtml/examples/EPub/Discount.xml
===================================================================
--- fedd/abac-src/rtml/examples/EPub/Discount.xml	(revision 8780cbecc6db2bdc2b9ef31eec6e5209ad3bff15)
+++ fedd/abac-src/rtml/examples/EPub/Discount.xml	(revision 8780cbecc6db2bdc2b9ef31eec6e5209ad3bff15)
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- edited with XML Spy v4.3 U (http://www.xmlspy.com) by Kangshi (Kangshi) -->
+<!-- 
+discount <- K_ACM.acmMember(name=?X, sice<=2001) and student(name=?X, program='graduate')
+-->
+<AccessRule xmlns="http://crypto.stanford.edu/dc/RTMLv1.0" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://crypto.stanford.edu/dc/RTMLv1.0 
+                                http://crypto.stanford.edu/~ninghui/rtml/RTMLv1.0q.xsd">
+	<Preamble>
+		<DefaultDomain uri="C:\rtml\examples\EPub\EPubADSD.xml"/>
+		<ImportDomain name="ACM" uri="C:\rtml\examples\EPub\ACMADSD.xml"/>
+		<ImportDomain name="ABU" uri="C:\rtml\examples\EPub\ABUADSD.xml"/>
+		<Principal id="K_ACM">
+			<StringValue>
+			 9+GghdabPd7LvKtcNrhXuXmUr7v6OuqC+VdMCz0HgmdRWVeOutRZT+ZxBxCBgLRJFnEj6EwoFhO3
+ zwkyjMim4TwWeotUfI0o4KOuHiuzpnWRbqN/C/ohNWLx+2J6ASQ7zKTxvqhRkImog9/hWuWfBpKL
+ Zl6Ae1UlZAFMO/7PSSo=   
+ 			 </StringValue>
+		</Principal>
+	</Preamble>
+	<IntersectionContainment>
+		<HeadRoleTerm name="Discount"/>
+		<Intersection>
+			<ExternalRole>
+				<PrincipalRef ref="K_ACM"/>
+				<RoleTerm name="ACM Member" domain="ACM">
+					<Parameter name="name" id="memberName"/>
+					<Parameter name="since">
+						<Interval>
+							<To>
+								<TimeValue>2001</TimeValue>
+							</To>
+						</Interval>
+					</Parameter>
+				</RoleTerm>
+			</ExternalRole>
+			<RoleTerm name="Student" domain="ABU">
+				<Parameter name="name">
+					<Equals ref="memberName"/>
+				</Parameter>
+				<Parameter name="program">
+					<Set>
+						<EnumValue>M.S.</EnumValue>
+						<EnumValue>Ph.D.</EnumValue>
+					</Set>
+				</Parameter>
+			</RoleTerm>
+		</Intersection>
+	</IntersectionContainment>
+	<ValidityTime>
+		<IssueTime>2002-08-26T12:52:00</IssueTime>
+	</ValidityTime>
+</AccessRule>
Index: fedd/abac-src/rtml/examples/EPub/EPubADSD.xml
===================================================================
--- fedd/abac-src/rtml/examples/EPub/EPubADSD.xml	(revision 8780cbecc6db2bdc2b9ef31eec6e5209ad3bff15)
+++ fedd/abac-src/rtml/examples/EPub/EPubADSD.xml	(revision 8780cbecc6db2bdc2b9ef31eec6e5209ad3bff15)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- edited with XML Spy v4.3 U (http://www.xmlspy.com) by Kangshi (Kangshi) -->
+<ApplicationDomainSpecification uri="C:\rtml\examples\EPub\EPubADSD.xml" xmlns="http://crypto.stanford.edu/dc/RTMLv1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://crypto.stanford.edu/dc/RTMLv1.0 
+                    http://crypto.stanford.edu/~ninghui/rtml/RTMLv1.0q.xsd">
+	<ImportDomain name="ABU" uri="C:\rtml\examples\EPub\ABUADSD.xml"/>
+	<ImportDomain name="ACM" uri="C:\rtml\examples\EPub\ACMADSD.xml"/>
+	<RoleDeclaration name="Discount"/>
+</ApplicationDomainSpecification>
Index: fedd/abac-src/rtml/examples/EPub/StateUCredential.xml
===================================================================
--- fedd/abac-src/rtml/examples/EPub/StateUCredential.xml	(revision 8780cbecc6db2bdc2b9ef31eec6e5209ad3bff15)
+++ fedd/abac-src/rtml/examples/EPub/StateUCredential.xml	(revision 8780cbecc6db2bdc2b9ef31eec6e5209ad3bff15)
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- edited with XML Spy v4.3 U (http://www.xmlspy.com) by Kangshi (Kangshi) -->
+<Credential xmlns="http://crypto.stanford.edu/dc/RTMLv1.0" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://crypto.stanford.edu/dc/RTMLv1.0 
+                                http://crypto.stanford.edu/~ninghui/rtml/RTMLv1.0q.xsd">
+	<Preamble>
+		<DefaultDomain uri="C:\rtml\examples\EPub\ABUADSD.xml"/>
+		<Principal id="K_StateU">
+			<StringValue>l2BQjxUjC8yykrmCouuEC/BYHPU=</StringValue>
+		</Principal>
+		<Principal id="K_Bob">
+			<StringValue>0o4KOuHiuzpnWRbqN/C/ohN</StringValue>
+		</Principal>
+	</Preamble>
+	<Issuer>
+		<PrincipalRef ref="K_StateU"/>
+	</Issuer>
+	<SimpleMember>
+		<HeadRoleTerm name="Student">
+			<Parameter name="university">
+				<StringValue>StateU</StringValue>
+			</Parameter>
+			<Parameter name="department">
+				<StringValue>CS</StringValue>
+			</Parameter>
+			<Parameter name="program">
+				<EnumValue>M.S.</EnumValue>
+			</Parameter>
+			<Parameter name="id">
+				<StringValue>123456789</StringValue>
+			</Parameter>
+			<Parameter name="name">
+				<Record>
+					<Field name="first name">
+						<StringValue>Bob</StringValue>
+					</Field>
+					<Field name="last name">
+						<StringValue>Smith</StringValue>
+					</Field>
+				</Record>
+			</Parameter>
+		</HeadRoleTerm>
+		<PrincipalRef ref="K_Bob"/>
+	</SimpleMember>
+	<ValidityTime>
+		<IssueTime>2002-08-26T12:52:00</IssueTime>
+	</ValidityTime>
+</Credential>
Index: fedd/abac-src/rtml/examples/EPub/Student.xml
===================================================================
--- fedd/abac-src/rtml/examples/EPub/Student.xml	(revision 8780cbecc6db2bdc2b9ef31eec6e5209ad3bff15)
+++ fedd/abac-src/rtml/examples/EPub/Student.xml	(revision 8780cbecc6db2bdc2b9ef31eec6e5209ad3bff15)
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- edited with XML Spy v4.3 U (http://www.xmlspy.com) by Kangshi (Kangshi) -->
+<!-- 
+    student(university=?X) <=== university(name=?X)
+-->
+<AccessRule xmlns="http://crypto.stanford.edu/dc/RTMLv1.0" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://crypto.stanford.edu/dc/RTMLv1.0 
+                                http://crypto.stanford.edu/~ninghui/rtml/RTMLv1.0q.xsd">
+	<Preamble>
+		<DefaultDomain uri="C:\rtml\examples\EPub\EPubADSD.xml"/>
+		<ImportDomain name="ABU" uri="C:\rtml\examples\EPub\ABUADSD.xml"/>
+	</Preamble>
+	<AdvancedDelegation>
+		<HeadRoleTerm name="Student" domain="ABU">
+			<Parameter name="university" id="univName"/>
+		</HeadRoleTerm>
+		<DelegateTo>
+			<RoleTerm name="University" domain="ABU">
+				<Parameter name="name">
+					<Equals ref="univName"/>
+				</Parameter>
+			</RoleTerm>
+		</DelegateTo>
+	</AdvancedDelegation>
+	<ValidityTime>
+		<IssueTime>2002-08-26T12:52:00</IssueTime>
+	</ValidityTime>
+</AccessRule>
Index: fedd/abac-src/rtml/examples/EPub/University.xml
===================================================================
--- fedd/abac-src/rtml/examples/EPub/University.xml	(revision 8780cbecc6db2bdc2b9ef31eec6e5209ad3bff15)
+++ fedd/abac-src/rtml/examples/EPub/University.xml	(revision 8780cbecc6db2bdc2b9ef31eec6e5209ad3bff15)
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- edited with XML Spy v4.3 U (http://www.xmlspy.com) by Kangshi (Kangshi) -->
+<!-- university <=== K_ABU -->
+<AccessRule xmlns="http://crypto.stanford.edu/dc/RTMLv1.0" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://crypto.stanford.edu/dc/RTMLv1.0 
+                                http://crypto.stanford.edu/~ninghui/rtml/RTMLv1.0q.xsd">
+	<Preamble>
+		<DefaultDomain uri="C:\rtml\examples\EPub\EPubADSD.xml"/>
+		<ImportDomain name="ABU" uri="C:\rtml\examples\EPub\ABUADSD.xml"/>
+		<Principal id="K_ABU">
+			<StringValue>
+			    /X9TgR11EilS30qcLuzk5/YRt1I870QAwx4/gLZRJmlFXUAiUftZPY1Y+r/F9bow9subVWzXgTuA
+			    HTRv8mZgt2uZUKWkn5/oBHsQIsJPu6nX/rfGG/g7V+fGqKYVDwT7g/bTxR7DAjVUE1oWkTL2dfOu
+			    K2HXKu/yIgMZndFIAcc=
+			</StringValue>
+		</Principal>
+	</Preamble>
+	<SimpleDelegation>
+		<HeadRoleTerm name="University" domain="ABU"/>
+		<DelegateTo>
+			<PrincipalRef ref="K_ABU"/>
+		</DelegateTo>
+	</SimpleDelegation>
+	<ValidityTime>
+		<IssueTime>2002-08-26T12:52:00</IssueTime>
+	</ValidityTime>
+</AccessRule>
Index: fedd/abac-src/rtml/examples/EPub/acmMemberCredential.xml
===================================================================
--- fedd/abac-src/rtml/examples/EPub/acmMemberCredential.xml	(revision 8780cbecc6db2bdc2b9ef31eec6e5209ad3bff15)
+++ fedd/abac-src/rtml/examples/EPub/acmMemberCredential.xml	(revision 8780cbecc6db2bdc2b9ef31eec6e5209ad3bff15)
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- edited with XML Spy v4.3 U (http://www.xmlspy.com) by Kangshi (Kangshi) -->
+<Credential xmlns="http://crypto.stanford.edu/dc/RTMLv1.0" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://crypto.stanford.edu/dc/RTMLv1.0 
+                                http://crypto.stanford.edu/~ninghui/rtml/RTMLv1.0q.xsd">
+	<Preamble>
+		<DefaultDomain uri="C:\rtml\examples\EPub\ACMADSD.xml"/>
+		<Principal id="K_ACM">
+			<StringValue>
+				9+GghdabPd7LvKtcNrhXuXmUr7v6OuqC+VdMCz0HgmdRWVeOutRZT+ZxBxCBgLRJFnEj6EwoFhO3
+			   	zwkyjMim4TwWeotUfI0o4KOuHiuzpnWRbqN/C/ohNWLx+2J6ASQ7zKTxvqhRkImog9/hWuWfBpKL
+	    			Zl6Ae1UlZAFMO/7PSSo=
+	        </StringValue>
+		</Principal>
+		<Principal id="K_Bob">
+			<StringValue>0o4KOuHiuzpnWRbqN/C/ohN</StringValue>
+		</Principal>
+	</Preamble>
+	<Issuer>
+		<PrincipalRef ref="K_ACM"/>
+	</Issuer>
+	<SimpleMember>
+		<HeadRoleTerm name="ACM Member">
+			<Parameter name="number">
+				<StringValue>UJ11111</StringValue>
+			</Parameter>
+			<Parameter name="class">
+				<EnumValue>Professional</EnumValue>
+			</Parameter>
+			<Parameter name="name">
+				<Record>
+					<Field name="first name">
+						<StringValue>Bob</StringValue>
+					</Field>
+					<Field name="last name">
+						<StringValue>Smith</StringValue>
+					</Field>
+				</Record>
+			</Parameter>
+		</HeadRoleTerm>
+		<PrincipalRef ref="K_Bob"/>
+	</SimpleMember>
+	<ValidityTime>
+		<IssueTime>2002-08-26T12:52:00</IssueTime>
+	</ValidityTime>
+</Credential>
Index: fedd/abac-src/rtml/examples/EPub/studentCredential.xml
===================================================================
--- fedd/abac-src/rtml/examples/EPub/studentCredential.xml	(revision 8780cbecc6db2bdc2b9ef31eec6e5209ad3bff15)
+++ fedd/abac-src/rtml/examples/EPub/studentCredential.xml	(revision 8780cbecc6db2bdc2b9ef31eec6e5209ad3bff15)
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- edited with XML Spy v4.3 U (http://www.xmlspy.com) by Kangshi (Kangshi) -->
+<Credential xmlns="http://crypto.stanford.edu/dc/RTMLv1.0" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://crypto.stanford.edu/dc/RTMLv1.0 
+                                http://crypto.stanford.edu/~ninghui/rtml/RTMLv1.0q.xsd">
+	<Preamble>
+		<DefaultDomain uri="C:\rtml\examples\EPub\ABUADSD.xml"/>
+		<Principal id="K_StateU">
+			<StringValue>l2BQjxUjC8yykrmCouuEC/BYHPU=</StringValue>
+		</Principal>
+		<Principal id="K_Bob">
+			<StringValue>0o4KOuHiuzpnWRbqN/C/ohN</StringValue>
+		</Principal>
+	</Preamble>
+	<Issuer>
+		<PrincipalRef ref="K_StateU"/>
+	</Issuer>
+	<SimpleMember>
+		<HeadRoleTerm name="Student">
+			<Parameter name="university">
+				<StringValue>StateU</StringValue>
+			</Parameter>
+			<Parameter name="department">
+				<StringValue>CS</StringValue>
+			</Parameter>
+			<Parameter name="program">
+				<EnumValue>M.S.</EnumValue>
+			</Parameter>
+			<Parameter name="id">
+				<StringValue>123456789</StringValue>
+			</Parameter>
+			<Parameter name="name">
+				<Record>
+					<Field name="first name">
+						<StringValue>Bob</StringValue>
+					</Field>
+					<Field name="last name">
+						<StringValue>Smith</StringValue>
+					</Field>
+				</Record>
+			</Parameter>
+		</HeadRoleTerm>
+		<PrincipalRef ref="K_Bob"/>
+	</SimpleMember>
+	<ValidityTime>
+		<IssueTime>2002-08-26T12:52:00</IssueTime>
+	</ValidityTime>
+</Credential>
Index: fedd/abac-src/rtml/examples/EPub/universityCredential.xml
===================================================================
--- fedd/abac-src/rtml/examples/EPub/universityCredential.xml	(revision 8780cbecc6db2bdc2b9ef31eec6e5209ad3bff15)
+++ fedd/abac-src/rtml/examples/EPub/universityCredential.xml	(revision 8780cbecc6db2bdc2b9ef31eec6e5209ad3bff15)
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- edited with XML Spy v4.3 U (http://www.xmlspy.com) by Kangshi (Kangshi) -->
+<Credential xmlns="http://crypto.stanford.edu/dc/RTMLv1.0" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://crypto.stanford.edu/dc/RTMLv1.0 
+                                http://crypto.stanford.edu/~ninghui/rtml/RTMLv1.0q.xsd">
+	<Preamble>
+		<DefaultDomain uri="C:\rtml\examples\EPub\ABUADSD.xml"/>
+		<Principal id="K_ABU">
+			<StringValue>
+			    /X9TgR11EilS30qcLuzk5/YRt1I870QAwx4/gLZRJmlFXUAiUftZPY1Y+r/F9bow9subVWzXgTuA
+			    HTRv8mZgt2uZUKWkn5/oBHsQIsJPu6nX/rfGG/g7V+fGqKYVDwT7g/bTxR7DAjVUE1oWkTL2dfOu
+			    K2HXKu/yIgMZndFIAcc=
+	  	    </StringValue>
+		</Principal>
+		<Principal id="K_StateU">
+			<StringValue>l2BQjxUjC8yykrmCouuEC/BYHPU=</StringValue>
+		</Principal>
+	</Preamble>
+	<Issuer>
+		<PrincipalRef ref="K_ABU"/>
+	</Issuer>
+	<SimpleMember>
+		<HeadRoleTerm name="University">
+			<Parameter name="name">
+				<StringValue>StateU</StringValue>
+			</Parameter>
+		</HeadRoleTerm>
+		<PrincipalRef ref="K_StateU"/>
+	</SimpleMember>
+	<ValidityTime>
+		<IssueTime>2002-08-26T12:52:00</IssueTime>
+	</ValidityTime>
+</Credential>
