|
Subject: [xsl] Default actions in XSLT 2.1 From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx> Date: Fri, 31 Oct 2008 20:20:53 +0000 |
>>>>> "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 |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] XQuery Updates in XSLT, Andrew Welch | Thread | Re: [xsl] Default actions in XSLT 2, Dimitre Novatchev |
| RE: [xsl] XSLT 2.1, Scott Trenda | Date | Re: [xsl] Default actions in XSLT 2, Dimitre Novatchev |
| Month |