[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: XML "include"?
- From: Patrick Lightbody <plightbo@cisco.com>
- To: Michael Fitzgerald <mike@wyeast.net>
- Date: Fri, 19 Jan 2001 09:29:30 -0800
No, that wouldn't because the external is going to be a servlet like so:
http://www.foobar.com/ContentObject?id=123
That way whatever that page bring up (which will be a small chunk of XML),
it would be just as if that text were inserted in the other XML file. Is
this possible? Xlink?
-Pat
At 09:23 AM 1/19/2001 -0800, Michael Fitzgerald wrote:
>Will external entities do the trick?
>
>docroot.dtd:
>
><!ELEMENT docroot (#PCDATA)>
><!ENTITY mydoc1 SYSTEM "mydoc1.xml">
><!ENTITY mydoc2 SYSTEM "mydoc2.xml">
>
>Instance document, docroot.xml:
>
><?xml version="1.0"?>
><!DOCTYPE docroot SYSTEM "docroot.dtd">
><docroot>
>&mydoc1;
>&mydoc2;
></docroot>
>
>-Mike
>-----Original Message-----
>From: Patrick Lightbody [mailto:plightbo@cisco.com]
>Sent: Friday, January 19, 2001 8:34 AM
>To: xml-dev@lists.xml.org
>Subject: XML "include"?
>
>
>Schemas and DTDs have a way to include a file in them using <xsd:include />
>and <!ENTITY % foo SYSTEM "">, respectively. Is there a way to take the
>contents of an XML file and have them be included in another XML file?
>
>What I've done is break down my schema in to several smaller schemas, each
>piece representing an "object". Now I want to have XML files at that same
>object level, all included to one XML file that works with the schema as a
>whole. Is this possible?
>
>-Pat