[Home] [By Thread] [By Date] [Recent Entries]

  • From: Ihe Onwuka <ihe.onwuka@g...>
  • To: David Lee <dlee@c...>
  • Date: Fri, 18 Oct 2013 15:24:18 +0100

I think you should at least upgrade that GOTO to a GOTO Depending On. I agree with Peter apply-templates is broadly analogous to method dispatch.


On Fri, Oct 18, 2013 at 2:50 PM, David Lee <dlee@c...> 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@c...
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@l...
subscribe: xml-dev-subscribe@l...
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]


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member