You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Andrés Tobelem <to...@hotmail.com> on 2002/09/18 16:39:10 UTC
XML include
Hi
How can i include one xml in another.
Tobe
RE: XML include
Posted by Ryan Agler <ry...@hotmail.com>.
Something like that would work -- or, you could also transform it
further if you needed to embed one of the xml files inside the other,
rather than them both being children of <page>
<xsl:template match="/page">
<xsl:apply-templates select="informacion"/>
</xsl:template>
<xsl:template match="informacionInsertionPoint">
<xsl:copy-of select="/page/principal"/>
</xsl:template>
<xsl:template match="@*|node()" priority="-1">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
-----Original Message-----
From: Andrés Tobelem [mailto:tobelindo@hotmail.com]
Sent: Wednesday, September 18, 2002 8:57 AM
To: cocoon-users@xml.apache.org
Subject: Re: XML include
So you think that is a good idea to do something like this?
<map:match pattern="home.xml">
<map:aggregate element="page">
<map:part src="cocoon:/contenido/general/informacion.xml"/>
<map:part src="cocoon:/contenido/principal/principal.xml"/>
</map:aggregate>
<map:serialize type="xml"/>
</map:match>
Thank you very much
----- Original Message -----
From: "Ryan Agler" <ry...@hotmail.com>
To: <co...@xml.apache.org>
Sent: Wednesday, September 18, 2002 11:46 AM
Subject: RE: XML include
There are lots of different ways to achieve that effect with
<map:aggregate> and im sure some tag libraries I have yet to explore :)
Or you can do this in an XML file:
<?xml version="1.0"?>
<!DOCTYPE include [<!ENTITY theInc SYSTEM "../docs/blahblah.xml">]>
<doc>
&theInc;
</doc>
-----Original Message-----
From: Andrés Tobelem [mailto:tobelindo@hotmail.com]
Sent: Wednesday, September 18, 2002 8:39 AM
To: cocoon-users@xml.apache.org
Subject: XML include
Hi
How can i include one xml in another.
Tobe
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: XML include
Posted by Andrés Tobelem <to...@hotmail.com>.
So you think that is a good idea to do something like this?
<map:match pattern="home.xml">
<map:aggregate element="page">
<map:part src="cocoon:/contenido/general/informacion.xml"/>
<map:part src="cocoon:/contenido/principal/principal.xml"/>
</map:aggregate>
<map:serialize type="xml"/>
</map:match>
Thank you very much
----- Original Message -----
From: "Ryan Agler" <ry...@hotmail.com>
To: <co...@xml.apache.org>
Sent: Wednesday, September 18, 2002 11:46 AM
Subject: RE: XML include
There are lots of different ways to achieve that effect with
<map:aggregate> and im sure some tag libraries I have yet to explore :)
Or you can do this in an XML file:
<?xml version="1.0"?>
<!DOCTYPE include [<!ENTITY theInc SYSTEM "../docs/blahblah.xml">]>
<doc>
&theInc;
</doc>
-----Original Message-----
From: Andrés Tobelem [mailto:tobelindo@hotmail.com]
Sent: Wednesday, September 18, 2002 8:39 AM
To: cocoon-users@xml.apache.org
Subject: XML include
Hi
How can i include one xml in another.
Tobe
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
RE: XML include
Posted by Ryan Agler <ry...@hotmail.com>.
There are lots of different ways to achieve that effect with
<map:aggregate> and im sure some tag libraries I have yet to explore :)
Or you can do this in an XML file:
<?xml version="1.0"?>
<!DOCTYPE include [<!ENTITY theInc SYSTEM "../docs/blahblah.xml">]>
<doc>
&theInc;
</doc>
-----Original Message-----
From: Andrés Tobelem [mailto:tobelindo@hotmail.com]
Sent: Wednesday, September 18, 2002 8:39 AM
To: cocoon-users@xml.apache.org
Subject: XML include
Hi
How can i include one xml in another.
Tobe
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>