[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

AJAX question: Using <xsl:import> and document() funct

Subject: AJAX question: Using <xsl:import> and document() function in Opera 9.2x 's JavaScript API
From: "Михаил Шестаков" <mike.shestakov@xxxxxxxxx>
Date: Fri, 16 May 2008 01:51:19 +0400
 AJAX question: Using <xsl:import> and document() funct
Look at this:
Table is supposed to come up like it does in IE5.5+ and FF1.0+ and
Opera 9.5. Unfortunately it fails in Opera 9.2 which is used by 15% of
my visitors;(

Here is what's going on:

1) Library (http://sizov.ryit.ru/js/sjax.js - 2KB) sends a request for
an XML-file (http://sizov.ryit.ru/xml/daily.xml).
2) After that library analyses XML, detects the stylesheet that should
be used, and sends another request for XSL

As you can see in Firefox or IE, the right column represents time in
minutes + seconds. Originally time comes in XML from server in seconds
and I use a template to convert it in min+sec format. Template is
located into another stylesheet.

Firefox handles <xsl:import> and <xsl:include> by default. MSIE with
MSXML6 needs two extra lines of code to allow that


Opera 9.x and Safari3 work with xsl transformations using my library,
but when it comes to importing external stylesheets, they fail.

Does anyone know how to make Opera load external XSL and XML? Maybe
there are some special switches?...

This is a trivial example and here it would be much easier to include
the template to the stylesheet and not to use <xsl:import>. But I need
a solution for something different, much more complicated. Example
above is just easiest way to illustrate the essence of my question.

Any help is greatly appreciated! Thanks!

Current Thread


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.
First Name
Last Name
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.