Subject: RE: [xsl] XALAN does not handle document('') as expected to carry out an in-stylesheet look-up From: "Michael Kay" <mhkay@xxxxxxxxxxxx> Date: Fri, 2 Nov 2001 17:47:36 -0000 |
> I used the approach where I embedded a look-up within the > stylesheet and > then used the document('') function to look up the month in > the table to > get the number to sort by (see code segment below). > > This works fine when I run XALAN from the command line. However my > application applies the template after reading the XSL > transform from a > database and then applying it to a document. When this occurs XALAN > appears to be attempting to obtain a document from the file > server when my > understanding was that the document('') function means that the lookup > table can be held within the stylesheet itself. document('') is no different from document() with any other relative URI: it will only work if the base URI of the stylesheet is known, and if the requested document (in this case the source XML of the stylesheet) can be found relative to that URI. Mike Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] XALAN does not handle documen, mark . clare | Thread | Re: [xsl] XALAN does not handle doc, David_N_Bertoni |
Re: [xsl] determing the current dat, Sebastian Rahtz | Date | RE: [xsl] determing the current dat, Michael Kay |
Month |