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

Re: XHTML and also XML

  • From: David Brownell <david-b@p...>
  • To: Suresh Babu Koya <skoya@q...>, xml-dev@l...
  • Date: Wed, 24 Oct 2001 11:15:06 -0700

merging dtds
>    Please help me by informing me if it is possible to have a "Valid" XML
> document complying 
>  to multiple DTD's without having to "dump" the whole content of all the
> DTD's in a single dtd.

An XML document has a single DTD, but the DTD includes more
than just the "external subset".  For example, maybe the DTD you
want looks something like:

    <!DOCTYPE html
        PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
            "D:/work/XML/DTDs/xhtml1-strict.dtd"
    [
    <!ENTITY % bc-dtd "d:/work/XML/book.dtd">
    %bc-dtd;
    ]>

I said "more like", since I don't think the XHTML 1.0 DTDs
can be used quite that way.  Look at XHTML 1.1 instead;
it's a better setup for DTD merging.


>  Is it possible to use namespaces for validating according to DTD's as
> below?

No.  Namespace syntax is ignored by DTDs.


>  Am I misinterpreting the Validity definition by saying that "A XML document
> will be valid if
>  if all the elements in the default namespace would be logically organized
> as defined in the DTD."  

Yes, you're misinterpreting. The notion of namespaces was
defined well after DTDs were defined; so DTD validation
doesn't care (or know) about namespaces.

You can use both namespaces and DTDs, but you'll not be
changing namespace prefixes.  Namespaces themselves
don't help if you're trying to merge two DTDs, but you can
use the same sorts of parameterization techniques used in
the XHTML 1.1 DTD if that's your goal.

- Dave




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.