Return-Path: Delivered-To: apmail-xml-forrest-dev-archive@xml.apache.org Received: (qmail 82768 invoked by uid 500); 13 Jun 2003 06:56:40 -0000 Mailing-List: contact forrest-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: forrest-dev@xml.apache.org Delivered-To: mailing list forrest-dev@xml.apache.org Received: (qmail 82758 invoked from network); 13 Jun 2003 06:56:39 -0000 Received: from bela.bezeqint.net (192.115.106.24) by daedalus.apache.org with SMTP; 13 Jun 2003 06:56:39 -0000 Received: from mx2002 (bzq-218-249-93.red.bezeqint.net [81.218.249.93]) by bela.bezeqint.net (Bezeq International SMTP out Mail Server) with ESMTP id B4BA833F00 for ; Fri, 13 Jun 2003 09:52:08 +0300 (IDT) From: "Mikael Sitruk" To: Subject: RE: using document() in XSL - unable to find the resource Date: Fri, 13 Jun 2003 09:52:41 +0200 Message-ID: <000e01c33180$c41f8200$0500000a@mx2002> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 In-Reply-To: <3EE8F6E5.7060604@yahoo.de> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N It doesn't work, since when the XSL is executed by Forrest, it is located in the skin/ directory while the original file is located under xdocs/... directory. I think that if there is a variable telling what is the path from which the file to be transformed is located it will help or at least if I could get the file name (containing the path) of the file being transformed it will also be fine. Does any variable like these one exist?? -----Original Message----- From: J.Pietschmann [mailto:j3322ptm@yahoo.de] Sent: Thursday, June 12, 2003 23:56 To: forrest-dev@xml.apache.org Subject: Re: using document() in XSL - unable to find the resource Mikael Sitruk wrote: > When in the document2xhtml.xsl, I try to use the document(@file-name), > Forrest does NOT load this document, while using the same xsl with an > XSL transformer outside of Forrest, the thing works fine. > > The file 'B.xml' is in the same location than the file 'A.xml' IIRC document(@filename) will resolve the URL against the style sheet URL as base. Try document(@filename,/). J.Pietschmann