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] XML Schemas

[ Lists Home | Date Index | Thread Index ]

Hi,

> 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).

So, why do you want to do this in the first place? The whole purpose of
XML is the ability to create user-defined vocabularies, and the point of
XML schema is to check for conformance to those vocabularies.

Now if you take a general purpose XML application like XHTML, it will of
course get difficult to enforce a custom vocabulary by stripping it
down. This is (IMHO) just not the way it was supposed to work. No one
forces you to use XML in a specific way, but the tools expect some
standard ways of doing stuff. Why not just create a schema for your FAQ
format and transform it to the XHTML representation using XSL?

> 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/.

Well, it's valid XHTML. If you want something to be valid "MyMarkup",
then you will have to create "MyMarkup", wont you?

Regards,
Martin





 

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

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