W3C home > Mailing lists > Public > w3c-ietf-xmldsig@w3.org > April to June 2000

Re: DTDs and ANY

From: Joseph M. Reagle Jr. <reagle@w3.org>
Date: Wed, 03 May 2000 21:56:50 -0400
Message-Id: <3.0.5.32.20000503215650.025bd5e8@localhost>
To: "Martin J. Duerst" <duerst@w3.org>
Cc: "IETF/W3C XML-DSig WG" <w3c-ietf-xmldsig@w3.org>
Martin,

I included thing.ANYs such that those things where we want to use extensible
content models can be easily tweaked. 

<!-- These entity declarations permit the flexible parts of Signature
     content model to be easily expanded -->

<!ENTITY % Object.ANY '(#PCDATA| SignatureProperties| Manifest)*'>
<!ENTITY % Method.ANY '(#PCDATA|HMACOutputLength)*'>
<!ENTITY % Key.ANY '(#PCDATA|DSAKeyValue|RSAKeyValue)*'>


The DTD including these entities (that I'm rapping into the next version) is
at:

http://policy.w3.org/WD-xmldsig-core-200003plc/xmldsig-core-schema.dtd

Thanks for your help!

At 10:53 PM 4/13/00 +0900, Martin J. Duerst wrote:
 > Basically, what you do is the following. At any place you want to
 > have ANY, you put something like:
 > 
 > <!ELEMENT Object %Object.ANY; >
 > 
 > Then *before* that, in the same file, you declare as follows:
 > 
 > <!ENTITY % Object.ANY "EMPTY">
 > 
 > Use EMPTY or whatever appropriate for the 'null' case.


_________________________________________________________
Joseph Reagle Jr.   
W3C Policy Analyst                mailto:reagle@w3.org
IETF/W3C XML-Signature Co-Chair   http://www.w3.org/People/Reagle/
Received on Wednesday, 3 May 2000 21:57:37 GMT

This archive was generated by hypermail 2.2.0 + w3c-0.29 : Thursday, 13 January 2005 12:10:09 GMT