Re: [xml-dev] XML Schemas

From
Robert Koberg <>
To
Michael Kay <>
Date
2005-10-27T18:20:09Z
ID
<>
Thread
Re: [xml-dev] XML Schemas
Michael Kay wrote:
>>Does that mean that you would never beable to write a schema 
>>for xhtml?
> 
> 
> Of course you can write a schema for XHTML. But there are very few
> real-world vocabularies where ALL the rules can be expressed in a schema,
> and more than all the rules for a programming language can be expressed in
> its BNF.
> 

The problem I have with XML Schema and XHTML is with xml editors 
(software, not people). Say someone wants to create an FAQ. It must 
contain a question and an answer, like:

<div class="faq">
  <div class="question">
   <p>This is a question p1</p>
   <p>p2</p>
  </div>
  <div class="answer">
   <ol>
    <li>some answer part 1</li>
    <li>some answer part 2</li>
   </ol>
  </div>
</div>

there is no way to validate this with XML Schema. It is also why we use 
XML instead of XHTML in our editor (Xopus).

I wish there was a good browser based, cross platform XML WYSIWYG editor 
that uses RNG... - So I could use XHTML but keep it /valid/. As it 
stands today, Xopus is the best choice. Anybody know of something that 
competes?