XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
RE: [xml-dev] A more fundamental concept than functions: units of codethat self-select

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: [xml-dev] 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]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS