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, http://www.w3.org/2001/XMLSchema 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

No comments: