[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Newbie question:DTD problem(#PCDATA)
Hi! Thanks for your responses. Allow me to go back to my original thought. What I present in element bio is more than one #PCDATA or footnote. Changing to from "+" to "*" makes bio contain zero or more #PCDATA/footnote. In this case, neither #PCDAT nor footnote is required for bio. And that violates my original design. Therefore, I don't think "*" will make them equvalent from my understanding. So, what I actualy try to achieve is to let bio at least have one element:#PCDATA or footnote. Could you help me to clearify that? Thanks!! Allen Chu > > I have a SGML DTD like "<!Element bio(#PCDATA|footnote)+>". > However, XML doesn't like the #PCDATA and "+" combination. Is there an > equivalent for this in XML DTD? Thanks in advance. Just change the '+' to a '*'. This is legal in XML, and is completely equivalent to the original since #PCDATA is inherently optional.
|
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
|