Subject: Re: [xsl] XSLT 4: couldn't xsl:mode have copy-namespaces declaration? From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Tue, 19 May 2020 08:24:56 -0000 |
Sounds a reasonable idea. inherit-namespaces=no could also be handy, especially as inheriting of namespaces can cause a heavy cost (though adding features that improve performance isn't a big win; most people won't use them). Michael Kay Saxonica > On 19 May 2020, at 08:49, Martin Honnen martin.honnen@xxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > > XSLT 3 has a declarative way with xsl:mode and on-no-match being one of > deep-copy, shallow-copy, deep-skip, shallow-skip, text-only-copy. > > With XSLT 2 and 3 xsl:copy and xsl:copy-of also have some improvement to > XSLT 1 by allowing the use of the copy-namespaces attribute with "no". > > Sometimes I would want to declare > > <xsl:mode on-no-match="shallow-copy" copy-namespaces="no"/> > > Is that feasible?
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] XSLT 4: couldn't xsl:mode hav, Martin Honnen martin | Thread | Re: [xsl] XSLT 4: couldn't xsl:mode, Graydon graydon@xxxx |
Re: [xsl] XSLT 4: xsl:template/@sel, Alan Painter alan.pa | Date | Re: [xsl] XSLT 4: xsl:template/@sel, Michael Kay mike@xxx |
Month |