[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

The Perils of Sudden Type-Safety in XPath 2.0

Subject: The Perils of Sudden Type-Safety in XPath 2.0
From: Gunther Schadow <gunther@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 18 Feb 2003 12:35:55 -0500
 The Perils of Sudden Type-Safety in XPath 2.0
Hi, I am upgrading my stuff to Saxon 7.4 and I am biting my behind
now that I even started this (one day before a demo!!!).

Apparently now everything wants to be type safe and type rules
are being enforced according to XPath 2.0.

I do see the point for type safety in languages that never did
anything else, like Java. But I think suddenly making XPath 2.0
into a strongly typed language was a BAD, BAD, BAD idea!

This suddenly breaks a lot of existing XSLT code and even breaks
implementations that try to comply (such a Saxon) in aread that
where hitherto never a problem. I now get Saxon right out crashing
from ClassCastExceptions and stuff.

Please, please, can't this decision for XPath not turned around?
Could strong typing not be made optional? Why should one go through
the hassle of adding explicit type conversions if they do nothing
else than making the hitherto conveniently implicit conversions
explicit. What's the point of this?

Also what I don't like is that this now makes me drag reference
to W3C XML-Schema into my transforms everywhere just so I can
use the xs:integer() conversion, when I have no business with
W3C schema otherwise?

I am quite taken aback by this.
-Gunther

--
Gunther Schadow, M.D., Ph.D.                    gschadow@xxxxxxxxxxxxxxx
Medical Information Scientist      Regenstrief Institute for Health Care
Adjunct Assistant Professor        Indiana University School of Medicine
tel:1(317)630-7960                         http://aurora.regenstrief.org



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.