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

Re: Re: Re: The Perils of Sudden Type-Safety in XPath

Subject: Re: Re: Re: The Perils of Sudden Type-Safety in XPath 2.0
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Thu, 20 Feb 2003 03:13:28 -0800 (PST)
mukul sud
> Dimitre,
> 
> I'm not disagreeing with your position. I have had some fundamental
> objections to the introduction of data-typing within XSLT almost from

> the moment that it first appeared in the specifications. I've worked 
> with XSLT often enough to state that the number of times I can point 
> to where static typing would have come in handy can be counted on one

> hand, and usually there was some work-around there. I see the type 
> mechanisms as a big step backwards, but one that is unfortunately 
> driven by a few vendors (principally Microsoft) who are convinced 
> that dynamic typing is bad and dangerous. I can think of a few cases 
> where I would agree, but many more where dynamic typing is far 
> preferable to dealing with static type.
> 
> As to the function mapping, I'm a little more ambivalent. The example

> I gave there was pedagogical in nature, meant to illustrate the 
> principle. I do believe, however, that the principle advantage that 
> there are two principle advantages of the <xsl:function> element:
> 
> 1) It makes it easier to develop a consistent set of libraries that 
> can be utilized repeatedly. You may end up using this function only 
> once in a given stylesheet, but if you use the same function imported

> into multiple stylesheets then you've significantly reduced your 
> overhead.
> 
> 2) It makes it possible to create class-like architectures within
well
> defined namespaces, a definite plus as I see it in creating a 
> comprehensive framework for development. For instance, you can define

> a matrix namespace:

[Nice examples skipped]

Kurt,

We agree on everything said. My comments were addressing the specific
example, I am fully aware of the benefits of xsl:function and grouping
related functions into modules.






=====
Cheers,

Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL

__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

 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.