MDN may have intermittent access issues April 18 13:00 - April 19 01:00 UTC. See whistlepig.mozilla.org for all notifications.

mozilla

Revision 120212 of XSLT 2.0

  • Revision slug: XSLT_2.0
  • Revision title: XSLT 2.0
  • Revision id: 120212
  • Created:
  • Creator: Brettz9
  • Is current revision? No
  • Comment updating information; 65 words added, 237 words removed

Revision Content

For users

Although XSLT 2.0 is not natively supported in Firefox, it is possible (via Saxon-B) to perform XSLT 2.0.  

The XSL Results extension uses the new incarnation of LiveConnect (handled by Java 1.6v12+ instead of Mozilla-specific code) to connect with the Java-based Saxon-B library, and adds support for having XSLT performed automatically when visiting a page with the appropriate XSLT processing instruction (and which isn't processed by Firefox's own XSLT 1.0 processor).

For developers

The extension demonstrates how one can use LiveConnect code to communicate with the Saxon-B library, but one might find the JavaScript code module approach used inside the extension XqUSEme as a more reusable approach.

The code does not currently work on the Mac due to its lagging Java support (and thus LiveConnect support). However, if Saxon-B were completely compiled in Java 5 (rather than the current mixture of JDK 1.4 and 5), the Saxon-B library author suggests this might solve the problem.  Any Java developers are most welcome to help fix this!

Interested?  Leave a message on the discussion page.

{{ languages( { "fr": "fr/XSLT_2.0" } ) }}

Revision Source

<h3 name="For_users">For users</h3>
<p>Although XSLT 2.0 is not natively supported in Firefox, it is possible (via <a class="external" href="http://saxonica.com">Saxon-B</a>) to perform <a class="external" href="http://www.w3.org/TR/xslt20/">XSLT 2.0</a>.  </p>
<p>The <a class="link-https" href="https://addons.mozilla.org/en-US/firefox/addon/5023">XSL Results</a> extension uses the new incarnation of LiveConnect (handled by Java 1.6v12+ instead of Mozilla-specific code) to connect with the Java-based Saxon-B library, and adds support for having XSLT performed automatically when visiting a page with the appropriate XSLT processing instruction (and which isn't processed by Firefox's own XSLT 1.0 processor).</p>
<h3 name="For_developers">For developers</h3>
<p>The extension demonstrates how one can use LiveConnect code to communicate with the Saxon-B library, but one might find the JavaScript code module approach used inside the extension <a class=" link-https" href="https://addons.mozilla.org/en-US/firefox/addon/5515" title="https://addons.mozilla.org/en-US/firefox/addon/5515">XqUSEme</a> as a more reusable approach.</p>
<p>The code does not currently work on the Mac due to its lagging Java support (and thus LiveConnect support). However, if Saxon-B were completely compiled in Java 5 (rather than the current mixture of JDK 1.4 and 5), the Saxon-B library author suggests this might solve the problem.  Any Java developers are most welcome to help fix this! </p>
<p>Interested?  Leave a message on the discussion page.</p>
<p>{{ languages( { "fr": "fr/XSLT_2.0" } ) }}</p>
Revert to this revision