xsl-list
[Top] [All Lists]

RE: Problem applying XSL to XML that uses a schema

2004-12-09 05:01:27
Thank you Mike for a very informative answer..

Regards,
Mukul

--- Michael Kay <mike(_at_)saxonica(_dot_)com> wrote:

  I thought, Schema Aware XSLT processor was
neccessary in this case. But from your reply, it
seems
it is not required in this case.. Can you please
tell,
under what cases Schema Aware processor is
required..?

A schema-aware processor is never actually required,
but if you have a
schema for your source or result documents, then
using a schema-aware XSLT
stylesheet gives you benefits. Broadly speaking
these fall into three
categories:

(a) type-sensitive operations: operations such as
comparison are
automatically sensitive to the data type, which
saves you having to manually
convert data to the right type before doing the
operation. Similarly
template matching can be based on schema types,
which with a complex schema
makes it easier to write generic rules that cover a
wide variety of
different elements.

(b) robustness: if the stylesheet knows the schema
for the source and/or
result documents, then you get much better error
messages when you make
programming mistakes, so you get a faster debugging
cycle and the
reliability of your code is less dependent on
exhaustive test coverage

(c) performance: schema information can potentially
be used to optimize the
execution of the stylesheet.

I'm currently seeing (b) as the biggest benefit - it
comes as quite a
surprise after years of XSLT 1.0 coding to get
compile-time error messages
when you spell an attribute name incorrectly.

Thanks for the invitation to do a sales pitch!

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



--~------------------------------------------------------------------
XSL-List info and archive: 
http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to:
http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--





                
__________________________________ 
Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone. 
http://mobile.yahoo.com/maildemo 

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--