cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ryan Agler" <ryanag...@hotmail.com>
Subject RE: XML include
Date Wed, 18 Sep 2002 15:16:35 GMT
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" <ryanagler@hotmail.com>
To: <cocoon-users@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:     <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/faq/index.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/faq/index.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