XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Schemas and mixed content with Relax NG and W3C XML Schema

hi,

this is a question about schemas

I know that with DTDs, when a text is allowed with elements, the best we 
can do is to allow it everywhere between other elements that can be 
repeated at any place in the text :

<!ELEMENT p (#PCDATA|a|ul|b|i|em)*>

unfortunately, we can't enforce the text to be at a given place :

<person>Mr <firstname>John</firstname><lastname>Doe</lastname></person>

the following DTD is invalid, but explain what we'd like to have :
<!ELEMENT person (#PCDATA,firstname,lastname)>

I wonder if there are also similar limitations with Relax NG and W3C XML 
Schema and why ?

-- 
Cordialement,

               ///
              (. .)
  --------ooO--(_)--Ooo--------
|      Philippe Poulard       |
  -----------------------------
  http://reflex.gforge.inria.fr/
        Have the RefleX !


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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

Copyright 1993-2007 XML.org. This site is hosted by OASIS