[XSL-LIST Mailing List Archive Home]
[Reply To This Message]
Re: Create a DTD ATTLIST whose values contain spaces
Subject: Re: Create a DTD ATTLIST whose values contain spaces|
From: George Cristian Bina <george@xxxxxxx>
Date: Sun, 25 Sep 2005 11:57:58 +0300
> Is there a way to express this in a DTD?
No, you cannot do that with DTDs.
> Would schemas help?
Yes, look at simpleType/restriction/enumeration for XML Schema and
choice/value for Relax NG.
George Cristian Bina
Aron Bock wrote:
I want to create a DTD, specifying an attribute whose values may contain
spaces. My intent in creating this is so that I may then use it with
any of various editors that provide code completion to then create
target xml files more easily.
For example, the following works:
<!ATTLIST resourceUnit foo (apple|battle) #IMPLIED >
By this doesn't (ostensibly because of the spaces; I want att values
"apple man", "battle man"):
<!ATTLIST resourceUnit foo (apple man|battle man) #IMPLIED >
Is there a way to express this in a DTD? Would schemas help?
Is your PC infected? Get a FREE online computer virus scan from McAfee.
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format