This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: XSLT V 1.1



> > 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.

I need to do lookups in a hashtable, which is present as a seperate project dependant XML-document.

I do not know where this document will be located, or its name.  I read in this document with the document() function given a name, but the default directory to look for a relative path is the directory where the XSL-file was located, not the source XML-file.

Since the XSL-file is retreived off a web-server, that location is rarely interesting.  A much more likely location is in the same directory as the XML-file.  Using the two-argument version of document() allows me to retreive it easier that requireing the user to pass a fully qualified URL for the name of it.

-- 
  ThorbjÛrn Ravn Andersen             "...and...Tubular Bells!"
  http://bigfoot.com/~thunderbear


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]