Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 13411 invoked from network); 16 Oct 2003 20:27:18 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 16 Oct 2003 20:27:18 -0000 Received: (qmail 93609 invoked by uid 500); 16 Oct 2003 20:26:26 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 93568 invoked by uid 500); 16 Oct 2003 20:26:26 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 93412 invoked from network); 16 Oct 2003 20:26:25 -0000 Received: from unknown (HELO mail.link77.net) (208.145.81.85) by daedalus.apache.org with SMTP; 16 Oct 2003 20:26:25 -0000 Received: from [172.20.6.215] (account lars_huttar@mail.jaars.org HELO LarsandKate) by mail.link77.net (CommuniGate Pro SMTP 4.1) with ESMTP-TLS id 27869031 for users@cocoon.apache.org; Thu, 16 Oct 2003 16:26:26 -0400 From: "Lars Huttar" To: "Cocoon Users List \(E-mail\)" Subject: problem with relative URI in document() in XSLT in Cocoon Date: Thu, 16 Oct 2003 15:26:22 -0500 Message-ID: <000e01c39423$c46c3d60$d70614ac@dallas.sil.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.6604 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi all, I am trying to access an auxiliary XML document from an XSLT stylesheet, using the document() function, within a Cocoon pipeline. E.g. ... The XSLT Programmer's Ref. (Kay) says that relative URI there should be resolved relative to the directory where the stylesheet is located (since the string argument to document() comes from the stylesheet, not from the source file). Does that hold true in Cocoon? I would think so, but... In the above example, the count() expression is returning zero. The stylesheet is cocoon/gem/transforms/framework.xsl, while the XML document is cocoon/gem/resources/gem-data.xml. I ran the same stylesheet from outside of Cocoon, using Saxon, and the count() expression returned 1! (using gem/resources/testdir.xml as input.) (I tried this both from the cocoon/gem/transforms directory, and from the cocoon/gem directory, in case it mattered.) So it sounds like the stylesheet is misbehaving within Cocoon. As an additional test, I ran this simpler stylesheet both within and outside cocoon: And in this case, count() returned 1 both within Cocoon and outside it! This simpler stylesheet, test-docmt.xsl, was also located in cocoon/gem/transforms. So this simpler stylesheet behaves correctly inside and outside of Cocoon! So I'm confused. I'm using Cocoon 2.1.2. I've put the aforementioned files (and the cocoon/ and gem/ sitemaps) at http://www.huttar.net/lars-kathy/test/cocoon/gem/... in case anyone is kind enough to look at them. Thanks, Lars --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org