Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] document() can not used in IE6?

From: Abel Braaksma <abel.online@--------->
To:
Date: 7/2/2007 10:22:00 AM
shi wudao wrote:
> HI, guru
> I tried to use document() to process some XMLs with their absolute
> path, but it can not work in IE6 that complained it can not find the
> file. But FF works fine.

You must have a path error. I.e., if you do not use http:// in front of
the path, it is not an absolute path.

In addition, see my posts on the Sarissa list that explain why it is not
(easily) possible to use relative paths in IE with MSXML techniques
(like XSLT) when the containing file is called from a javascript that is
in turn called from an html page that has a different path than you XSLT
file (which is likely to be the case often). IE uses paths relative to
your HTML page, not the XSLT page. The same is true for CSS using filter
progIDs and paths.

>
> I heard that document() is a function of XSLT2.0, but IE6 is not
> supported it? Is so, any solution? thank you.

Don't know where you heard that, but it is wrong. The doc() function is
an XPath 2.0 function (and similar to document()), but the document()
function is an XSLT 1.0 function (but was expanded a bit in XSLT 2.0).

You can use the document() function with any browser *except* Opera.

Cheers,
-- Abel


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent