forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [issues] Updated: (FOR-141) XPath function: document() does not work
Date Thu, 01 Jan 1970 00:00:00 GMT
The following issue has been updated:

    Updater: David Crossley (
       Date: Thu, 10 Jun 2004 11:15 AM
The short answer about the document() function is to not use it. The long answer is that Cocoon
has far better ways, using "aggregation".

That said, you can use the document() function if you want.

Those error messages that you provided do not seem to be related to this isuse.
For a full history of the issue, see:

View the issue:

Here is an overview of the issue:
        Key: FOR-141
    Summary: XPath function: document() does not work
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: Forrest
  Component: None

   Reporter: Michael Hare

    Created: Thu, 29 Apr 2004 8:24 PM
    Updated: Thu, 10 Jun 2004 11:15 AM
Environment: Windows 2000, Forrest 0.5, Tomcat 5.0, Apache 2.0.49, jk2 connector, JDK 1.4.2,
XALAN 2.6.0

I am trying to process an external XML file within a Doc12 document.

I have modified a DTD to allow my new element construct
<project-file href="fw4100_r1_1_proj.xml"/>

I have created a Stylesheet with:
 <xsl:template match="project-file">
            <title>Project File</title>
            <xsl:variable name="EXT-DOC" select="@href"/>
            <p>Ext. Doc: <xsl:value-of select="$EXT-DOC"/>
            <xsl:variable name="EXT-REF" select="document($EXT-DOC)//@pdd-num"/>
            <p>Ext. Ref: <xsl:value-of select="$EXT-REF"/>
Just to see if the document can be found.

It works using command-line java: (java org.apache.xalan.xslt.Process -IN in.xml -XSL link.xsl
-OUT out.xml)

It works in my XML authoring tool: Oxygen 3

In cocoon/forrest I get this in my core.log file:

WARN    (2004-04-29) 13:18.58:787   [core.manager] (/Forrest/projects/fw4010.html) TP-Processor3/ExcaliburComponentManager:
Attempted to release a org.apache.cocoon.components.treeprocessor.sitemap.ComponentsSelector
but its handler could not be located.

And it repeats 18 or so times.

Any guidence on using the 'document()' function in Forrest?

This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:

If you want more information on JIRA, or have a bug to report see:

View raw message