RE: [xsl] when to use 'as' attribute on a variable

Subject: RE: [xsl] when to use 'as' attribute on a variable
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 27 Feb 2006 17:11:53 -0000
> It may very well be that we are in a hurry, is it possible to 
> summarise why 
> datatyping a variable is so useful?

It helps the reader of the stylesheet to understand what the purpose of the
variable is, and it gives you earier and better diagnostics for many
programming mistakes.

Occasionally it also helps the compiler to generate better code.

Michael Kay
http://www.saxonica.com/ 

Current Thread