Sign In/My Account | View Cart  
advertisement

Article:
 Processing RSS
Subject: XQuery and XSLT
Date: 2003-04-18 21:40:44
From: Per Bothner
Response to: XQuery and XSLT

> So why are both needed?


One way to think of them: XSLT is essentially a special-purpose scripting language. It is designed to be interpreted, and there is no static type-checking or optimization. XQuery aspires to be a real general-purpose programming language, albeit one with syntax and data types optimized for XML applications. It supports (at least optionally) type-checking, optimization, and compilation.


This is of course a gray boundary. It is possible to compile and statically analyze at least a subset of XSLT, and it is possible to do quick-and-dirty scripting in XQuery. But your point about "deeper support for XML Schema data types" goes beyond Schema: Having a statically analyzable syntax and type system allows you to catch type errors as compile-time errors rather than run-time errors which I think is very valuable.


No Previous Message Previous Message Move up to Parent Message Up Next Message Next Message


Full Text Titles Only Newest First

Sponsored By: