cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leigh Dodds" <ldo...@ingenta.com>
Subject RE: XML inside XML, and XSLT inside XSLT
Date Thu, 05 Jul 2001 15:34:12 GMT
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:heid@fh-heilbronn.de]
> Sent: 04 July 2001 08:57
> To: cocoon-users@xml.apache.org
> Subject: AW: XML inside XML, and XSLT inside XSLT
>
>
> For xml it's XInclude...
>
> -----Ursprngliche Nachricht-----
> Von: Adrian Geissel [mailto:ageissel@zenark.com]
> Gesendet: Mittwoch, 4. Juli 2001 09:55
> An: cocoon-users@xml.apache.org
> Betreff: Re: XML inside XML, and XSLT inside XSLT
>
>
> For XSLT, use <xsl:import href="####"/>
>
> Adrian
>
> ----- Original Message -----
> From: Carloz Alaniz <carloz@ti.com>
> To: <cocoon-users@xml.apache.org>
> 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: <cocoon-users-unsubscribe@xml.apache.org>
> > For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
>
>
>
> ---------------------------------------------------------------------
> 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: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
>
>
> ---------------------------------------------------------------------
> 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: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
>


---------------------------------------------------------------------
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message