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:[EMAIL PROTECTED]] 
Sent: Wednesday, September 18, 2002 8:57 AM
To: [EMAIL PROTECTED]
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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 8:39 AM
To: [EMAIL PROTECTED]
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:     <[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/faq/index.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/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to