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

Re: Basic program structures in XSLT (was: Re: Data-d

  • From: Rick Jelliffe <rjelliffe@allette.com.au>
  • To: xml-dev <xml-dev@lists.xml.org>
  • Date: Fri, 9 Dec 2022 18:00:52 +1100

Re:  Basic program structures in XSLT (was: Re: Data-d
Most basic? 

1. Push versus pull. 
2. Event-based programming =  template matching descent default
3. XPaths 1.0 location steps, and value-of
4. If and choose
5. Rearranging and repeating things: variables,  apply-templates/@select, modes

Not basic: key, function, anything in xpath 2 or 3 but not in xpath 1.

In other words, developers should be trained to first use the distinctive language features before (and instead of) rushing to use generic (I.e. vanilla) functional features. 

Regards
Rick

On Fri, 9 Dec 2022, 6:23 am Ihe Onwuka, <ihe.onwuka@gmail.com> wrote:

On Thu, Dec 8, 2022 at 1:06 PM C. M. Sperberg-McQueen <cmsmcq@b...> wrote:

This provokes a similar but broader question:  are there analogous basic
principles for program design which can be used to guide construction of
a transformation in XSLT?


The schema or a skeleton of the input xml structures tell you all the types of node you have to handle and the built in rules do (by default) an apply-template for each one. 


[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.