[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: XALAN does not handle document('') as expected to
> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|