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

Re: Re: "if-condition-return something" idiom : is it

Subject: Re: Re: "if-condition-return something" idiom : is it possible in XSLT 1 ?
From: "Graydon graydon@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 17 Jun 2014 15:58:45 -0000
Re:  Re: "if-condition-return something" idiom : is it
On Tue, Jun 17, 2014 at 03:28:17PM -0000, Kerry, Richard richard.kerry@xxxxxxxx scripsit:
> "My preferred solution would be to move to XSLT 2.0+" "There is a DocBook XSLT 2.0 stylesheet available "
> Not up to date with the XSLT 1 version, I believe.

Nothing says you can't do a pre-pass with XSLT 2.0 to hammer all your
dates into the correct format, which the XSLT 1.0 docbook pass then
experiences as magically correct dates, requiring no extension or
alteration of the standard docbook stylesheets.  You do have to parse
everything twice but that's, in my experience, often a really good
tradeoff against trying to make one transform do everything.

There are a lot of things that fit that pattern; assigning numbers or
other content labels is another one, along with regularizing metadata.
(Since your "main" delivery transform probably wants to reference the
metadata, you'd rather it was all correct when the XML gets to the
delivery transform, rather than having to build all the regularization
and checks into the main transform.)

-- Graydon

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.