Re: [xsl] copy-namespace attribute in XSLT 1.0

Subject: Re: [xsl] copy-namespace attribute in XSLT 1.0
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Mon, 10 Sep 2012 11:00:54 +0100
Yes, this is correct behaviour. Backwards compatibility mode affects the result of certain 1.0 constructs (for example, it causes xsl:value-of to ignore all but the first selected item) but it does not affect the way a 2.0 processor handles 2.0 constructs.

Michael Kay
Saxonica


On 10/09/2012 10:54, Ihe Onwuka wrote:
I have just encountered code that uses the copy-namespace attribute on
a stylesheet that is being processed with an XSLT 2.0 processor but
has the xsl:stylesheet version attribute set to 1.0.

It runs without complaint (although with data that does not exercise
that precise piece of code), is this correct behaviour when running in
backward compatibility mode.

ihe

Current Thread