Re: DTDs and ANY

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 UTC