[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Does DTD validation work with namespaces?
>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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|