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

Re: best practices for using XSLT modes

Subject: Re: best practices for using XSLT modes
From: "Dimitre Novatchev dnovatchev@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 4 Dec 2019 19:16:57 -0000
Re:  best practices for using XSLT modes
> For sure. But you can also use fn:transform() to replace modes in some
> cases, and turn mode management into file management :)
>
> Liam

Yes, this is almost exactly the same as what Elliot shared with us -- but
omitting the modes could make it more unreadable.

Also, fn:transform() is only available in XPath 3.1, its specification is
overwhelmingly complex, and it seems to be
significantly implementation-dependent.

So, not quite convenient for developers who work with XSLT versions that
don't implement XPath 3.1 (All XSLT 2.0 and 1.0 applications are in this
group) or who want to achieve vendor-independence and maximum
clarity/testability.

Certainly, for XQuery **3** code this is the main way to invoke an XSLT
transformation, so they are in a worse position than their XSLT-developers
colleagues.

Cheers,
Dimitre

On Wed, Dec 4, 2019 at 11:00 AM Liam R. E. Quin liam@xxxxxxxxxxxxxxxx <
xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:

> On Wed, 2019-12-04 at 16:59 +0000, Dimitre Novatchev
> dnovatchev@xxxxxxxxx wrote:
> > Without using modes I wonder if it would be possible at all to do
> > this processing in a single transformation -- and even if this is
> > somehow (crazy) possible, the code would be a torture to read,
> > understand and maintain.
>
> For sure. But you can also use fn:transform() to replace modes in some
> cases, and turn mode management into file management :)
>
> Liam
>
> --
> Liam Quin, https://www.delightfulcomputing.com/
> Available for XML/Document/Information Architecture/XSLT/
> XSL/XQuery/Web/Text Processing/A11Y training, work & consulting.
> Barefoot Web-slave, antique illustrations:  http://www.fromoldbooks.org

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.