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: The document() function....again !!


Sara,

You wrote:
> So...MSXML doesn't know where the stylesheet actually is as a URL and
therefore doesn't know
> where to look for your file in the document() call

MSXML does keep track of the URL you used in the load() call, and the XSL
processor uses this to resolve relative URL's.  So unless there's a bug in
the code, you should get the spec'd behavior (resolve relative paths with
respect to the location of the stylesheet document).  The only difficulty
comes when you use the loadXML() method to create a stylesheet.  Since
you're constructing the stylesheet "out of thin air", it has no URL
associated with it.  In this case, the URL is determined by the
application's current directory (which is not necessarily the directory from
which you executed the application).

Could you post the code that you're having trouble with (and describe how
you're using MSXML--in IE, in VB, in WSH, etc)?  I've tried a few examples
on my machine, and cannot get your troubles to repro.

~Andy Kimball
MSXSL Dev


 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]