[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: XML "include"?
- From: Michael Fitzgerald <firstname.lastname@example.org>
- To: Patrick Lightbody <email@example.com>
- Date: Fri, 19 Jan 2001 10:23:14 -0800
Pat, xlink syntax looks like, as you probably already know:
<xl:link xl:href="http://www.foobar.com/mydoc.xml" xl:type="simple"
where a simple traversal embeds the resource mydoc.xml upon loading the
document containing the link, where embedding has the effect of an HTML IMG
element embedding a JPEG (fr'instance) when an application renders the
for show and actuate attribute behaviors see:
of course this requires an application (maybe yours!) to understand,
traverse, and actuate the link, but since your resource is a servlet, and
not a document resource, you need to extend your framework beyond ordinary
xml syntax, I think...
anyone else know how to schlurp a Java resource to fit Pat's needs?
From: Patrick Lightbody [mailto:firstname.lastname@example.org]
Sent: Friday, January 19, 2001 9:30 AM
To: Michael Fitzgerald
Subject: RE: XML "include"?
No, that wouldn't because the external is going to be a servlet like so:
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?
At 09:23 AM 1/19/2001 -0800, Michael Fitzgerald wrote:
>Will external entities do the trick?
><!ELEMENT docroot (#PCDATA)>
><!ENTITY mydoc1 SYSTEM "mydoc1.xml">
><!ENTITY mydoc2 SYSTEM "mydoc2.xml">
>Instance document, docroot.xml:
><!DOCTYPE docroot SYSTEM "docroot.dtd">
>From: Patrick Lightbody [mailto:email@example.com]
>Sent: Friday, January 19, 2001 8:34 AM
>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?