[xsl] [XSL] XSL Browser Integration

Subject: [xsl] [XSL] XSL Browser Integration
From: Alain <alainb06@xxxxxxx>
Date: Thu, 13 Sep 2007 21:01:23 +0200
Is there a normalised way, on a browser environment (eq. XSLT1.0) to access with XSL code:
- the full "current" URI (ex. : http://www.myserver.com/mydir/foo.xml?x=12&y=15 the most interesting part being obviously the option string, here: x=12&y=15)
- users preferences such as : preferred languages (or the http header accept_language string, for internationalisation purpose)
- navigation items such as : referrer, history (tainted)
- computer environment : screen resolution, colour width, OS, browser, initial canvas size, etc...


Part of that might be accessible on Mozilla based browsers through calls like document("about:config") because it is XUL and so working with XML behind the scene. But that will not be a portable method and doesn't answer to all of the basic integration needs.

As of XSLT1.0, there are 3 normalised system data informations available through system_property() call :
- xsl:version
- xsl:vendor
- xsl:vendor-uri
that could allow browser-guessing, but does not either meet the basics integration needs.


Many thanks in advance.

Alain BENEDETTI

Current Thread