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

Re: xsl:for-each vs. xsl:apply-templates

Subject: Re: xsl:for-each vs. xsl:apply-templates
From: Dimtre Novatchev <dnovatchev@xxxxxxxxx>
Date: Sat, 13 Nov 2004 06:33:48 +1100
twice for each xsl
Hi Evan,

So nice to see you again in xsl-list.


> You could make some analogies with OOP polymorphism, in that apply-templates
> is a polymorphic function. Modes could be compared with method names, and
> match patterns could be compared (loosely) with subtyping for dynamic
> function resolution. In fact, if you look at the XML source document as
> "code" rather than just "data", then you end up with a sort of twice-removed
> function resolution. A given element in the source may result in executing
> some code in some template rule(s) somewhere. I've found that this
> twice-removed nature allows me to express software intentions quite clearly
> in XML without being bothered at all by implementation details.

You didn't mention here XML (or any other) schema -- how does a schema
language fit in this picture?

It seems to me that we need a mechanism to express not only a given
data type as data, but also to describe (formally, not in plain
English) the set of all possible operations on that data type. I
couldn't find such a concept in XML Schema, or was I wrong?


> 
> I suspect that my next step will be to finally wrap my brain around your
> work on XSLT as a functional language. I seem to be heading in that
> direction.

Wonderful!


Cheers,

Dimitre.

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.