[
Lists Home |
Date Index |
Thread Index
]
- To: Michael Kay <mike@saxonica.com>
- Subject: Re: [xml-dev] XML Schemas
- From: Robert Koberg <rob@koberg.com>
- Date: Thu, 27 Oct 2005 14:20:09 -0400
- Cc: xml-dev@lists.xml.org
- In-reply-to: <200510271808.j9RI80g20026@server1.livestoryboard.com>
- References: <200510271808.j9RI80g20026@server1.livestoryboard.com>
- User-agent: Mozilla Thunderbird 1.0 (Macintosh/20041206)
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?
|