To try the thousands of add-ons available here, download Mozilla Firefox, a fast, free way to surf the Web!Close
Welcome to Firefox Add-ons.
Choose from thousands of extra features and styles to make Firefox your own.Close
XQuery USE ME (XqUSEme) 1.6.3 Requires Restart
by Brett Zamir
Allows W3C XQuery on XML documents (including HTML) via Saxon-B XQuery engine (including on a currently loaded page), on a one-shot or Grease-monkey-like per-site basis
About this Add-on
XqUSEme allows one to perform XQueries on single or multiple local or remote XML files. One can also conveniently query the document currently loaded in the current Firefox tab/window, and if it is poorly formed HTML, it may still be possible to query, since the extension will use Firefox to attempt to convert the HTML into a well-formed (but not validated) document.
The extension now also allows one to have XQueries applied to individual pages as they are loaded (ala Greasemonkey or Stylish) in place of the normal content at the page. One can now also opt to retrieve XML before any attached XSL stylesheet processing instructions are processed.
This extension at present has been tested with Windows and on Linux, but doesn't work on the Mac.
You will need Java installed and enabled to use this extension (you most likely already have it installed).
Until security issues can be adequately assessed, please avoid using XQuery on untrusted sites.
Also be aware that there are known to be some imperfections in handling character sets in certain circumstances.
XQueries are performed via Saxon-B.
Saxon also allows use of Java-based custom functions (see http://www.saxonica.com/documentation/using-xquery/extensibility.html for details).
You can read the README either at http://bahai-library.com/zamir/xqusemeREADME.xhtml and see the example file at http://bahai-library.com/zamir/examples.xhtml .
As of version 1.4.8+, XqUSEme should work on Windows and Linux if Java 1.6 update 12+ is installed (and it is necessary to work with this update now that LiveConnect has been updated by Java; users should be able to expect more stability from the extension now that the LiveConnect API has been settled and its former bugginess within Mozilla eliminated). Some issues were earlier experienced in Firefox 3.5 betas, as Vista seemed to crash, and Linux seems to have problems with this extension in FF 3.5 beta, but it seems it works all right on both systems now.
Mac (at least the Power PC): Isn't working at present--due apparently to a lack of Java 6 support.
See http://bahai-library.com/zamir/examples.xhtml for additional query example usage.
// Made important fix for repeat calls to XQuery dialog
Changes to 1.6.2
// Upgraded to Saxon-B 220.127.116.11
Changes to 1.6.1
// Added support for standard XQuery content-type "application/xquery" (only UTF-8 documents for now),
// obtainable over the web (must specify files inside "doc()" and these must be well-formed XML--
// no auto-clean-up up in this form), thus enabling easy client-side mash-ups, etc.;
// will also work with XML referencing external entities since
// we're using Saxon-B instead of Firefox's built-in XML processing
// Somewhat simplified and cleaned up internal code