- From: Reisinger, Susanne <reisinger@fim.uni-linz.ac.at>
- Date: Thu, 3 May 2001 09:01:45 +0200
- To: "'www-xml-schema-comments@w3.org'" <www-xml-schema-comments@w3.org>
Hello, I hope that someone can help me. Making XML Schema is new for me. What I have are two DTD´s that I want to tranform them into a schema. So the first DTD describes the MemberData and the second the PortalMemberData which should be derived from MemberData. So please can someone tell me how the syntax of this inheritance would be. Many thanks, Susi MemberData: <?xml version="1.0" encoding="UTF-8"?> <!ELEMENT MemberDataDoc (MemberData)*> <!ELEMENT MemberData (Name, BDate?, Address)> <!ATTLIST MemberData id ID #REQUIRED Gender (female | male) #REQUIRED > <!ELEMENT Name (FName, SName, MInitial?, Title?)> <!ELEMENT BDate (#PCDATA)> <!-- Date of Birth --> <!ELEMENT FName (#PCDATA)> <!ELEMENT SName (#PCDATA)> <!ELEMENT MInitial (#PCDATA)> <!ELEMENT Title (#PCDATA)> <!ELEMENT Address (Street, PCode, City, Country?, EMail?, TelNr?)> <!ELEMENT Street (#PCDATA)> <!ELEMENT PCode (#PCDATA)> <!ELEMENT City (#PCDATA)> <!ELEMENT Country (#PCDATA)> <!ELEMENT EMail (#PCDATA)> <!ELEMENT TelNr (#PCDATA)> PotalMemberData: <?xml version="1.0" encoding="UTF-8"?> <!ELEMENT PortalMemberDataDoc (PortalMemberData)*> <!ATTLIST PortalMemberData MemberId CDATA #REQUIRED > <!-- IDREF auf MemberData ID--> <!ELEMENT PortalMemberData (Fee*, DEntrance, DWithDrawal?, UserID, Password)> <!ATTLIST Fee FeePaid (Yes | No) "No" > <!ELEMENT Fee (Amount, Currency)> <!ELEMENT Amount (#PCDATA)> <!ELEMENT Currency (#PCDATA)> <!ELEMENT DEntrance (#PCDATA)> <!ELEMENT DWithDrawal (#PCDATA)> <!ELEMENT UserID (#PCDATA)> <!ELEMENT Password (#PCDATA)>
Received on Thursday, 3 May 2001 02:59:06 UTC