Monday, 12 May 2008

Some differences between XQuery 1.0 and XSLT 2.0

Following are some differences between XQuery 1.0 and XSLT 2.0.

1. In XQuery 1.0, functions should be declared before use. While in XSLT 2.0, functions may be defined anywhere in the stylesheet (provided, the function body is a child of xsl:stylesheet).

2. In XQuery 1.0, the XML Schema namespace, is not required to be declared for using the prefix, xs:. While in XSLT 2.0, XML Schema namespace should be declared if any reference to the prefix xs: exists in the XSLT stylesheet....

. . . full article

Using AIR for XSLT Processing

One of the features we're investigating for the next version of the media player requires that we be able to do client-side XSL transformations. I had heard a few rumors that AIR exposes the XSLT processor that's built into WebKit (which is AIR's embedded HTML engine), so I shot off a couple of emails to the AIR team. Sure enough, this functionality is exposed through AIR's Javascript API.

. . . full article