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

Re: Default actions in XSLT 2.1

Subject: Re: Default actions in XSLT 2.1
From: Jirka Kosek <jirka@xxxxxxxx>
Date: Sat, 01 Nov 2008 21:33:26 +0100
Re:  Default actions in XSLT 2.1
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dimitre Novatchev wrote:

> Going further, I'd propose that the *default value* for the
> "default-action" attribute of the unnamed <xsl:mode> be
>    "xslmode:clone"
> if the "version" attribute of the <xsl:stylesheet>    is    >=   2
> 
> and
>   "xslmode:copy-text"  (the current processing behaviour for version 1.0)
> otherwise.

This is not very good idea. Suppose that you have existing stylesheet in
XSLT 1.0 or 2.0 and you will upgrade it to 2.1 in order to use some new
useful XPath function. With your proposal which breaks backwards
compatability you will have to update existing code to accommodate to
new set of built-in template rules.

- --
- ------------------------------------------------------------------
  Jirka Kosek      e-mail: jirka@xxxxxxxx      http://xmlguru.cz
- ------------------------------------------------------------------
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
- ------------------------------------------------------------------
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
- ------------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJDL0WzwmSw7n0dR4RAjmcAJ4yskBNZdpIieML1hyfYTDrzjFGKQCgg+0R
J/W0meBL4Mx1+OVuSftYFjs=
=fCeR
-----END PGP SIGNATURE-----

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.