No necessarily.
It depends on what you're trying to do. You can go a long way
with using entities. e.g:
<!DOCTYPE book [
<!ENTITY chapter1 SYSTEM "chapter1.xml"
<!ENTITY chapter2 SYSTEM "chapter2.xml"
<!ENTITY chapter3 SYSTEM "chapter3.xml"
]>
<book>
&chapter1;
&chapter2;
&chapter3;
</book>
While you're correct that XInclude appears to be the correct
way forward (barring some recent concerns [1]), and offers
richer semantics that simple entities.
However you'll need an Xinclude processor [2] to use them, while
any off-the-shelf XML parser will do entities.
[1]. http://www.xmlhack.com/read.php?item=1272
[2]. http://www.ibiblio.org/xml/XInclude/ (although this relies on JDOM)
Cheers,
L.
--
Leigh Dodds, Systems Architect | "Pluralitas non est ponenda
http://weblogs.userland.com/eclectic | sine necessitate"
http://www.xml.com/pub/xmldeviant | -- William of Ockham
> -----Original Message-----
> From: Jörn Heid [mailto:[EMAIL PROTECTED]]
> Sent: 04 July 2001 08:57
> To: [EMAIL PROTECTED]
> Subject: AW: XML inside XML, and XSLT inside XSLT
>
>
> For xml it's XInclude...
>
> -----Ursprngliche Nachricht-----
> Von: Adrian Geissel [mailto:[EMAIL PROTECTED]]
> Gesendet: Mittwoch, 4. Juli 2001 09:55
> An: [EMAIL PROTECTED]
> Betreff: Re: XML inside XML, and XSLT inside XSLT
>
>
> For XSLT, use <xsl:import href="####"/>
>
> Adrian
>
> ----- Original Message -----
> From: Carloz Alaniz <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, July 03, 2001 9:01 PM
> Subject: XML inside XML, and XSLT inside XSLT
>
>
> >
> > Can someone help me or tell me there is such a thing as including an XML
> > file inside another XML file, or including an XSLT file inside another
> > XSLT file?
> >
> > Does such a thing exist??
> >
> > ~carloz
>
>
> ------------------------------------------------------------------
> ----------
> ----
>
>
> > ---------------------------------------------------------------------
> > Please check that your question has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>