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

Re: Does DTD validation work with namespaces?

  • From: Wayne Steele <xmlmaster@h...>
  • To: jamesr@s..., xml-dev@x...
  • Date: Tue, 08 Aug 2000 19:19:45 -0700 (PDT)

ofx dtd

>From: James Robertson <jamesr@s...>
>
>I seem to have missed something here ...
>
>We are talking about namespaces and validation?
>
>The issue doesn't seem to be the text before
>the colon in the element name.
>

Sure it is. Let me give you an example:
   I have some XML Documents, using a grammar I wrote myself.
   I wrote myself a handy little DTD to validate my grammar.
   I declared a namespace ("urn:me:1") to use for my grammar, so each GI is 
globally unique.
   Some of my documents use a prefix for the namespace of "x".
   Some of my documents declare urn:me:1 as the default namespace at the top 
level, so they have no elements with prefixes.

   Now the challenge: modify my DTD so it can still validate my documents.

>Isn't the issue that namespaces allow you
>to mix information from a number of sources,
>however you see fit? Every document can have
>different elements, and yet still be considered
>OK according to well-formed and namespace rules ...
>
>How do we handle _this_ behaviour, and still
>make some use of DTDs?
>

This too is a challenge.
I can mix and match elements as I see fit.
_I_ in this case, means the DTD designer, or system architect.
I also want to forbid certain combinations of namespaces.

Can I use DTDs to help me do this?

I think I could, if DTD's had a concept of Namespaces.

-Wayne Steele





________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


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.