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 ]

Martin Probst wrote:
> 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? 

Are you asking why we use XML instead of XHTML?

I'll assume you are asking why I would want to use XHTML and constrain 
it with class attributes. Well, the reason is that here are several 
editors that support editing XHTML. There are several apps that support 
displaying XHTML.


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

ummm... yea...


> 
> 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?

Yes. that is what we do and is what I wrote in the email you are 
responding to... It is possible to create schemas for constrained 
versions of XHTML in RNG, just not in XSD.


> 
> 
>>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?
> 
umm... yea...

-Rob




 

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

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