forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iss...@cocoondev.org
Subject [issues] New comment: (FOR-141) XPath function: document() does not work
Date Thu, 01 Jan 1970 00:00:00 GMT
The following comment has been added to this issue:

     Author: Michael Hare
    Created: Thu, 29 Apr 2004 11:14 PM
       Body:
Thanks!

It appears the error message is not realted to the document() call, but happens for all Forrest
pages I visit.

It is a WARNing, not an Error, but is it safe?

Thanks again for the document() pointer. All is well in XPath land.
---------------------------------------------------------------------
View the issue:

  http://issues.cocoondev.org/jira//secure/ViewIssue.jspa?key=FOR-141


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
   Versions:
             0.5

   Assignee: 
   Reporter: Michael Hare

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


Description:
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">
        <section>
            <title>Project File</title>
            <xsl:variable name="EXT-DOC" select="@href"/>
            <p>Ext. Doc: <xsl:value-of select="$EXT-DOC"/>
            </p>
            <xsl:variable name="EXT-REF" select="document($EXT-DOC)//@pdd-num"/>
            <p>Ext. Ref: <xsl:value-of select="$EXT-REF"/>
            </p>
        </section>
    </xsl:template>
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?


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.cocoondev.org/jira//Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message