You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by is...@cocoondev.org on 2004/04/29 22:14:58 UTC
[issues] New comment: (FOR-141) XPath function: document() does not work
The following comment has been added to this issue:
Author: Juan Jose Pablos
Created: Thu, 29 Apr 2004 10:12 PM
Body:
the document() funtion is used on these files under forrest/trunk/src/core/context:
resources/stylesheets/changes2rss.xsl:
resources/stylesheets/project2text.xsl:
skins/common/xslt/svg/document2svg.xsl:
skins/common/xslt/html/tabutils.xsl:
skins/common/xslt/fo/footerinfo.xsl:
skins/common/xslt/fo/document2fo.xsl:
typicaly on something like:
<map:transform src="{forrest:stylesheets}/changes2rss.xsl" />
---------------------------------------------------------------------
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