[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XML Schemas


xopus save xml
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


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.