OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: [xml-dev] Newbie question:DTD problem(#PCDATA)

[ Lists Home | Date Index | Thread Index ]

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.





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS