[
Lists Home |
Date Index |
Thread Index
]
- To: Liam Quin <liam@w3.org>
- Subject: Re: [xml-dev] Cannot have multiple DOCTYPE declarations
- From: c p <bugs75il@yahoo.com>
- Date: Mon, 14 Mar 2005 16:59:45 -0800 (PST)
- Cc: xml-dev@lists.xml.org
- 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
Would anyone be kindly able to explain how the option
1 would work?
Thanks,
C
--- Liam Quin <liam@w3.org> 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
|