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

Re: Create a special purpose programming language, in XML,usin

  • From: Peter Hunsberger <peter.hunsberger@gmail.com>
  • To: David Lee <dlee@calldei.com>
  • Date: Fri, 18 Oct 2013 08:56:38 -0500

Re:  Create a special purpose programming language
David, 

to the extent your assertion is true (which I'm pretty much neutral on) then any method declaration and subsequent call of that method is potentially a GOTO.  Apply-templates with a wild card is no worse than a language that supports polymorphism requiring you to sort through 8 different method signatures to figure out which one is the best match for a given call... 

Peter Hunsberger


On Fri, Oct 18, 2013 at 8:50 AM, David Lee <dlee@calldei.com> wrote:
---- Micheal Kay
State machines are essentially flowcharts: programming with GOTOs.
--------

I am seriously curious.  Could you (or anyone) explain the fundamental difference between
state machines, GOTO's and XSLT ?

To my thinking (perhaps why  I struggle with XSLT) ... an <apply-templates> is essentially a GOTO
with the current state (the current context)  as input and possibly a 1 or more target states.   and a <template> is a state description.   The pattern matching ,to me, just adds to the difficulty of understanding the GOTO's ... as it makes
understanding what the target of the GOTO harder to comprehend (because it's really a function of the current state,
which can be quite subtle).

So what am I seeing wrong here ?  Maybe if I understood my misconception I would do better at XLST.

-David

----------------------------------------
David A. Lee
dlee@calldei.com
http://www.xmlsh.org





_______________________________________________________________________

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.