[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

Subject: RE: 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
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.