Re: [xsl] How to force the XSLT processor to retain a namespace declaration on the root element?

Subject: Re: [xsl] How to force the XSLT processor to retain a namespace declaration on the root element?
From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 24 Mar 2022 19:11:17 -0000
> When I run the XSLT program, I get this output:
>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";>
>     ...
> </xs:schema>
>
> Notice that the DFDL namespace declaration is gone.


Unless you have an exclude-result-prefixes attribute somewhere in scope, this
behaviour is incorrect according to the spec.

Michael Kay
Saxonica

Current Thread