cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Ramsdale" <>
Subject Aggregating XML
Date Wed, 29 Jan 2003 19:15:37 GMT
Hi there,

I'm relatively new to Cocoon and XML and I've been lurking on the list for a
while. I have a problem that's stymied me--perhaps someone could help me? I
want to build an aggregate web page from a set of simple XHTML pages by
extracting the contents of their bodies and aggregating them. I have an XML
file that designates the structure of the page:

<?xml version="1.0"?>

I have a stylesheet that I mean to use to aggregate the files, but I haven't
figured out a way to pull in the bodies of the files designated by the XML
above. I've designated below where I've been inserting my test code:

<?xml version="1.0"?>
    xmlns:xsl="" version='1.0'>
  <xsl:output method="html" />
  <xsl:template match="/">
      <xsl:call-template name="page" />
  <xsl:template name="page">
  <xsl:template match="column">
      <br />
      <xsl:apply-templates select="module" />
  <xsl:template match="module">
    <xsl:variable name="mod">
      <xsl:value-of select="." />
    <br />

What's the missing piece? I tried using xinclude and cinclude, but my
impression is that they are intended for an XML file to include another XML
file, not for a stylesheet to include XML. (I do understand that a
stylesheet _IS_ XML, though, so perhaps I just missed how I should have done
that?). I also tried to do a map:aggregate from my pipeline, but couldn't
figure out how to do that based on the contents of my XML file.

If my approach is misguided, feel free to correct me. Also, if I should know
of other projects doing similar things, do let me know. (I'm just beginning
to read about Forrest, for instance.)

Thanks, all!


Please check that your question  has not already been answered in the
FAQ before posting.     <>

To unsubscribe, e-mail:     <>
For additional commands, e-mail:   <>

View raw message