[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

once again: document() bug in cocoon?

Subject: once again: document() bug in cocoon?
From: "Martin Algesten" <martin.algesten@xxxxxxxx>
Date: Tue, 4 Apr 2000 11:07:15 +0100
bug cocoon
Once again, before I take this to another forum (cocoon bug reports?), has
anyone successfully used the document() function on a node-set in cocoon.

When doing a document( node-set ) in cocoon1.7 - xalan, seems to give me
strange errors.

In the following example I have a file-list in files.xml defined like this:
<file-list>
  <absolute>file://\z:\myroot\file1.xml</absolute>
  <absolute>file://\z:\myroot\file2.xml</absolute>
</file-list>

I have a stylesheet that defines this:

<xsl:template match="page">
  <BODY>
  <xsl:variable name="files"
                select="document('file:///Z:/myroot/files.xml')"/>
  <xsl:for-each select="document($files//file-list/absolute)">
     Don't do anything for now
  </xsl:for-each>
  </BODY>
</xsl:template>


And from Xalan I get this:
----------------------------------------------
java.lang.NullPointerException

at org.apache.xalan.xpath.MutableNodeListImpl.
        isNodeAfterSibling(MutableNodeListImpl.java, Compiled Code)
at org.apache.xalan.xpath.MutableNodeListImpl.
        isDOMNodeAfter(MutableNodeListImpl.java, Compiled Code)
at org.apache.xalan.xpath.MutableNodeListImpl.
        isNodeAfter(MutableNodeListImpl.java:459)
at org.apache.xalan.xpath.MutableNodeListImpl.
       addNodeInDocOrder(MutableNodeListImpl.java, Compiled Code)
at org.apache.xalan.xslt.FuncDocument.
       execute(FuncDocument.java, CompiledCode)
at org.apache.xalan.xpath.Function.execute(Function.java, Compiled Code)
at org.apache.xalan.xpath.XPath.executeFunction(XPath.java:1253)
at org.apache.xalan.xpath.XPath.execute(XPath.java:1357)
----------------------------------------------

Cheers,
Martin



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.