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

Re: Jackson Structured Programming ... doing it with XSLT

  • From: Ihe Onwuka <ihe.onwuka@gmail.com>
  • To: Michael Kay <mike@saxonica.com>
  • Date: Mon, 30 Sep 2013 11:18:33 +0100

Re:  Jackson Structured Programming ... doing it with XSLT
The modern reincarnation of JSP is the Design Recipe. Spending time thinking about a problem, it's data structures and any relevant algorithms before diving in and writing code. What a novel concept.

If only they had called it Thought Driven Design it might just have caught on.





On Mon, Sep 30, 2013 at 9:26 AM, Michael Kay <mike@saxonica.com> wrote:
I think JSP is highly relevant to the design of XML transformations, but I'm not sure your note really captures why. There's a lot of stuff in JSP (or is it JSD? - I forget) about analysing the structural relationship of input trees to output trees and about making the structure of the code match the input and output structures, and about what to do when they don't match - the classic being to resolve structure clashes by introducing an intermediate tree and then splitting the logic into a pipeline of simpler transformations. All of that translates directly into XSLT stylesheet design.

In this exercise with multiplication tables, Jackson seems to be focusing on trying to separate the computation of the multiplication table from its presentation. He seems to be arguing that the things that are most likely to change are all about presentation. Again that reflects what we do in the XML world, and to me it strongly suggests structuring the code as a pipeline in which the first phase computes the multiplication table, and the second phase renders it as HTML. That doesn't seem to be what you have actually done; or at any rate, it's not how you describe what you have done.

Sadly I've got a lot of good old books in my bookshelf, but Jackson isn't among them. Nevertheless, I learnt a lot from reading JSP. In ICL in the 1980s we had a 4GL language that was very strongly based on JSP, and there are many analogies with XSLT.

Michael Kay
Saxonica


On 29 Sep 2013, at 20:24, Costello, Roger L. wrote:

> Hi Folks,
>
> After Sean McGrath's high praise [1] for Jackson Structured Programming I purchased M.A. Jackson's book and have been reading it.
>
> It is great.
>
> The downside of the book, however, is that the programming examples use an archaic notation. So I converted the first couple examples to XSLT.
>
> Here is a short document that I wrote which introduces Jackson Structured Programming, using XSLT for the programming examples:
>
> http://xfront.com/Jackson-Structured-Programming/Multiplication-Problem.pdf
>
> /Roger
>
> [1] http://lists.xml.org/archives/xml-dev/201304/msg00234.html
>
> _______________________________________________________________________
>
> 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


_______________________________________________________________________

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.