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

Re: Cannot have multiple DOCTYPE declarations

  • To: Liam Quin <liam@w...>
  • Subject: Re: Cannot have multiple DOCTYPE declarations
  • From: c p <bugs75il@y...>
  • Date: Mon, 14 Mar 2005 16:59:45 -0800 (PST)
  • Cc: xml-dev@l...
  • Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=osX0Anxr/ngtWdvpJ3kYrmfv1ftAhKXt8Qf1ngE7NUNIq2a/9iefdz26KnpZjA7mzTMgjTnfc1Wp4grR5Edo5Q6SK5/1bBIo5gwnuihXz2JZ3Gqtun61mRzYF0b8tA0DBpzRm4asrir3bSVcK/fXzylK8/gGeLrLmzj0ZYoy2+4= ;
  • In-reply-to: 6667

cannot have multiple doctype declarations
Would anyone be kindly able to explain how the option
1 would work?  

Thanks,
C
--- Liam Quin <liam@w...> wrote:
> On Thu, Mar 10, 2005 at 11:00:07AM -0800, c p wrote:
> > I have a directory that holds a whole bunch of XML
> > files.  For each such directory, I also have an
> > index.xml file.  In the index.xml file, it holds
> some
> > text data to describe that directory content and
> then
> > it includes a reference to each XML file in that
> > directory.  This referencing is done through
> entity
> > file.
> 
> Most likely you want one of:
> 
> (1) to use links instead of entity references
>     depending on how you process the XML, you might
> use
>     XLink, or even just <a href="..."> ...</a>
> 
> (2) you might be trying to include fragments of XML
> in
>     a single larger file.  The DTD (if any) referred
> to
>     is for the result of including them, and should
> be
>     referenced by the outer "index.xml" file.
> 
>     The individual pieces should not have DOCTYPE at
>     the start, as they are external parsed entities
> (in
>     XML jargon) and not complete documents.
> 
> (3) you want to do (2) but to include entire XML
> files.
>     In this case, either use XInclude (e.g. with
> libxml
>     and/or xsltproc) to include them, or set up each
> XML
>     file like this (here is "outer.xml" for
> example:)
>     <!DOCTYPE whatever SYSTEM "XXX" [
>         <!ENTITY the-doc SYSTEM "inner.xml">
>     ]>
>     &inner.xml;
> 
>     and in index.xml include inner.xml rather than
> outer.xml
>     The outer.xml file is just a wrapper so you can
> include the
>     same document from two places.
> 
> But I think (2) is most likely what will work for
> you -- just
> delete the DOCTYPE declarations on the included
> files.
> 
> Liam
> 
> -- 
> Liam Quin, W3C XML Activity Lead,
> http://www.w3.org/People/Quin/
> http://www.holoweb.net/~liam/
> 


		
__________________________________ 
Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone. 
http://mobile.yahoo.com/maildemo 

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.