Providng a development environment for XSLT 2.0 that runs in the browser using Saxon-CE
XSLT 2.0 processing within the browser is now a reality with the introduction of the open source Saxon-CE from Saxonica. This processor runs as a JavaScript app and supports JavaScript interoperability and user-event handling for the era of HTML5 and the dynamic web.
This Windows product, XMLQuire, is an XSLT edtior specially extended to integrate with Saxon-CE and support the Saxon-CE language extensions that make interactive XSLT possible. Saxon-CE is not included with this product, but is available from Saxonica here.
Assuming you want to develop on your local matchine: If you haven't installed one already, the first step is to install a web server. One option is to configure Windows to use the built-in IIS7 web server. If you've got Window 7 or Windows 8 this is done through the Windows Features part of the control panel. All that's left is to set read/write file permissions on a folder you create within c:/inetpub/wwwroot - this will host Saxon-CE (free download from Saxonica) and your web project files.
To create your first Saxon-CE driven web page, click New CE Project, the left-most toolbar item. You will be prompted this first time for the location of the Saxon-CE JavaScript boot file (within the SaxonceDebug folder). You then need to enter a name for your new project and press OK. You will be asked to select the location for the project folder which should be a location within you web server's file system. You should now see 3 files in the Files panel, a .xml, .xsl and .html file.
To view the new web page you need to enter the URL for your project in tXMLQuire's browser address bar shown to the right of the toolbar. This will be something like: http://localhost/myprojects/newproject/ newproject.html
All being well, you should see a very simple web page showing data extracted from the XML source and inserted in the HTML page by Saxon-CE.To get a bit more detail from Saxon-CE we can change the logging level; to do this, just below the browser is the logging console. On the header for this, select the dropdown list marked level and select FINE from the revealed list - you should now some more logging data from the Saxon processor.
That's it you're now ready code.
See the Saxon-CE documentation for details on developing XSLT 2.0 for the browser. There's full documentation on the XMLQuire editor here
This product is an extension to the core XMLQuire product - mainly known for its unique XPath debugger and Virtual Formatting technology.
This variant - whilst intended to provide a helpful introduction to Saxon-CE development - also serves as a study into ways in which editors can provide a productive development environment for Saxon-CE.
It's hoped (and expected) that both new and existing editors for many platforms will soon become available that are extended specifically for browser-based XSLT 2.0 development.
xmlquire-we.zip (960KB)
XMLQuire-WE is free of cost, there's no registration.
This version requires Window 7 or Windows 8 with .NET 4.0 or later. The software will not run on Windows XP, it should run on Vista but this has not been tested.
Saxon-CE is not included with this product, you will need to either purchase or register for a free version - available from Saxonica
Theres no automated setup. Simply download the zip file and expand it to your chosen install path, adding any shortcuts you need. To uninstall, just remove the copied zip files and the Qutoric/XMLQuire appdata windows folder for your user account.
This product hosts whichever version of Internet Explorer you have installed. However, this would normally default to IE7 mode (because it's hosted) without a registry setting change specifically for xmlquire.exe. To make this registry setting change you need to run XMLQuire once with elevated admin privileges - the IE7 label in the logging console toolbar will then show IE9 or IE10 to reflect the update.
XMLQuire is Freeware. By downloading this software you agree to the following license conditions:
You may:
You may not:
QUTORIC LIMITED IS NOT RESPONSIBLE FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL, WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER COMMERCIAL DAMAGES OR LOSSES.