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

RE: A more fundamental concept than functions: units of codeth

  • From: "Michael Sokolov" <sokolov@ifactory.com>
  • To: "'Michael Kay'" <mike@saxonica.com>,"'Costello, Roger L.'" <costello@m...>, <xml-dev@l...>
  • Date: Tue, 18 May 2010 07:56:50 -0400

RE:  A more fundamental concept than functions: units of codeth
Yes - xquery advocates often opine that you can easily replace xslt with
xquery using a giant recursive switch statement (using typeswitch).  In
practice though, I think the ability to trigger functional units using more
sophisticated pattern matching makes a significant conceptual and
organizational difference to the programmer. XSLT submerges some of the
machinery, thereby making the content of the rules themselves more apparent.
I'm not sure that makes this "fundamental," but it's not insignificant
either. 

-Mike

> -----Original Message-----
> From: Michael Kay [mailto:mike@saxonica.com] 
> Sent: Tuesday, May 18, 2010 5:04 AM
> To: 'Costello, Roger L.'; xml-dev@lists.xml.org
> Subject: RE:  A more fundamental concept than 
> functions: units of code that self-select
> 
> > It occurs to me that the functionality provided by template rules 
> > represent an even more fundamental concept. In fact, functions are 
> > merely a subset of the functionality provided by template rules.
> 
> One man's fundamental concept is another man's syntactic 
> sugar. You could also adopt the viewpoint that 
> xsl:apply-templates is just syntactic sugar for a big switch 
> statement.
> 
> That's not to belittle the concept - just to point out that 
> what is fundamental and what is superficial is a highly 
> subjective judgement.
> 
> Regards,
> 
> Michael Kay
> http://www.saxonica.com/
> http://twitter.com/michaelhkay 
> 
> 
> ______________________________________________________________
> _________
> 
> XML-DEV is a publicly archived, unmoderated list hosted by 
> OASIS to support XML implementation and development. To 
> minimize spam in the archives, you must subscribe before posting.
> 
> [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
> subscribe: xml-dev-subscribe@lists.xml.org List archive: 
> http://lists.xml.org/archives/xml-dev/
> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
> 
> 



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.