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

RE: Namespaces, schemas, Simon's filters.

  • From: Tim Bray <tbray@t...>
  • To: "Fuchs, Matthew" <matthew.fuchs@c...>,Xml-Dev <xml-dev@l...>
  • Date: Tue, 21 Aug 2001 15:31:18 -0700

RE: Namespaces
At 04:41 PM 20/08/01 -0700, Fuchs, Matthew wrote:
>So, to contrive an example beyond foo and bar (with the obvious danger that
>people will spend their time trying to pick apart the example, rather than
>use it to understand the goal), suppose I want to create a Schema to
>coordinate graphics, music, and text.  So I create a <graphic> element, a
><music> element, and a <text> element and I have three different people
>working on designing each of these elements.  Now, my graphics designer
>decides he wants to have a <line> element to describe lines that will be
>drawn.  Similarly, my musician decides he wants a <line> element to describe
>a line of music (perhaps strophe would be better, but then perhaps I've
>chosen one as ignorant of the subject matter as myself).  And, of course, my
>writer also wants a <line> element 

OK, I think I get it.  Local element types allow the <line>
element to have different validation rules depending on 
whether it's a child of <matt:music>, <matt:graphics> or 
<matt:text>.  Clearly something that DTD's can't do but is 
desirable.

I have a question.  With schemas, can I arrange for the
<matt:line> (note it's in a namespace) element to be validated 
differently depending on whether it's a child of <matt:music>, 
<matt:graphics> or <matt:text>?  -Tim


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.