cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <blorit...@infoplanning.com>
Subject Using document()
Date Mon, 07 Aug 2000 20:50:57 GMT

I have a problem using the document() function
in Xalan and Cocoon.

Basically, I am using a statement like this:

<xsl:apply-templates select="document('../menu.xml')"/>

Which doesn't seem to work.  Cocoon says it can't
load the file, gives the full resource location, and
the file is where Cocoon said it couldn't find it.

If the document is formatted like this

<menu>
  <item href="home.xml">Home</item>
  <item href="about.xml">About</item>
</menu>

it works.

But if the document has anything deeper like

<menu>
  <item href="home.xml">Home</item>
  <group title="My Products">
    <item href="product1.xml">Product 1</item>
    <item href="product2.xml">Product 2</item>
  </group>
</menu>

Then it won't load.  Can anyone help me?

Mime
View raw message