Re: XSLT V 1.1

Subject: Re: XSLT V 1.1
From: Oliver Becker <obecker@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 12 Sep 2000 10:38:34 +0200 (MET DST)
> > > 4. document() should accept only URI.
> >
> > The two-argument version of document( "where", /) allows me to use an XSL file on a web
> server, and still include files from the same directory as the original XML-file.
> I don't understand what is your rationale.  Could you please
> provide the XSL ? In return I'l try to provide the invariant which
> will work without document() with 2 prameters.

May I step in?
The following XSLT is available on

<?xml version="1.0" encoding="iso-8859-1"?>

<xslt:transform xmlns:xslt="";

<xslt:param name="input" />

<xslt:template match="/">
   <xslt:copy-of select="document($input,.)" />


It takes a file name as parameter and outputs (copies) its contents.
So you can invoke saxon (e.g.) like this:

saxon anything.xml input=myfile.xml

myfile.xml and anything.xml are in the same directory.

How would you solve this without the second parameter of document() ?


|  ob|do        Dipl.Inf. Oliver Becker                             |
|  --+--        E-Mail: obecker@xxxxxxxxxxxxxxxxxxxxxxx             |
|  op|qo        WWW: |

 XSL-List info and archive:

Current Thread