Subject: Re: [xsl] the document() in IE From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Wed, 11 Jul 2007 16:56:54 +0200 |
document('path', document('absolute path to current xslt'))yes, but that's the same as
document(string('path'))
Finally: this new solution would work with document(), but not with xsl:import/include, which are relative to the xslt base always (and do not take parameters anyway).
usually when there are problems with uri resolution in xslt1 (I must say I've not really done this much in client side stylesheets) its because the base uri is not as expected, or not set at all. If the XSLt engine is reading a document directly then it's fairly clear what the base URI should be, but if the document (or the stylesheet) has previously been read into a DOM of some sort, perhaps manipulated with DOM scripting, and then passed as an in-memory tree to the XSLT processor, then the XSLT REC gives you noi guidance at all on what the base URI of the nodes will be, it is all completely implementation defined.
template = new ActiveXObject("MSXML2.XSLTemplate.3.0"); template.stylesheet = xslDomObject; //holds DOM of XSLT file freethreaded processor = template.createProcessor();
Cheers, -- Abel Braaksma
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] the document() in IE, David Carlisle | Thread | Re: [xsl] the document() in IE, David Carlisle |
[xsl] Deepak Jain wants to chat, Deepak Jain | Date | Re: [xsl] the document() in IE, David Carlisle |
Month |