[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: "Dimitre Novatchev" <dnovatchev@xxxxxxxxx>
Date: Fri, 31 Oct 2008 13:50:46 -0700
Re:  Default actions in XSLT 2.1
> Since it is proposed to be the first of the two alternatives, which is
> not copying, then I withdraw my comment.
>
> Perhaps modified-copy would be a better name.

I would propose:

  <xsl:mode default-action="clone"/>

So, we are not interested in the exact way the clone is produced (or
its granularity) as long as we get an exact clone of the input.

This has a good meaning even for infinite XML documents, in a process
which may never stop, but is continuously producing the expected
results.

I would suggest to consider the verb:

  <xsl:process/>
or

  <xsl:processing-mode/>

instead of <xsl:mode/>

as we already have a "mode" attribute with slightly different scope
(template selection).



--
Cheers,
Dimitre Novatchev
---------------------------------------
Truly great madness cannot be achieved without significant intelligence.
---------------------------------------
To invent, you need a good imagination and a pile of junk
-------------------------------------
Never fight an inanimate object
-------------------------------------
You've achieved success in your field when you don't know whether what
you're doing is work or play



On Fri, Oct 31, 2008 at 1:20 PM, Colin Paul Adams
<colin@xxxxxxxxxxxxxxxxxx> wrote:
>
> >>>>> "Andrew" == Andrew Welch <andrew.j.welch@xxxxxxxxx> writes:
>
>    >> What could be more explicit than copy?
>    Andrew> The (slight) problem with just "copy" is that there are
>    Andrew> two types of copy: shallow and deep, and so its not clear
>    Andrew> immediately clear whether the default action for "copy"
>    Andrew> is:
>
>    Andrew> <xsl:copy> <xsl:apply-templates select="@*|node()"/>
>
>    Andrew> or
>
>    Andrew> <xsl:copy-of select="."/>
>
>    Andrew> Maybe "copy" could be improved on to make it clear that
>    Andrew> it's not a straight copy, for example "copy-descent"
>    Andrew> (that's an example, not a suggestion!)
>
> Since it is proposed to be the first of the two alternatives, which is
> not copying, then I withdraw my comment.
>
> Perhaps modified-copy would be a better name.
> --
> Colin Adams
> Preston Lancashire

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.