[xsl] Re: xmlns in the root element prevents transformation

Subject: [xsl] Re: xmlns in the root element prevents transformation
From: "Manuel Souto Pico terminolator@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 23 Jul 2020 20:55:25 -0000
I think I can answer myself.

The stylesheet needs to have the version hardcoded in the root element, at
least from what I can tell, like
xpath-default-namespace="urn:oasis:names:tc:xliff:document:1.2", and it
must be the same version as the input XML files.

Cheers, Manuel

Manuel Souto Pico <terminolator@xxxxxxxxx> escreveu no dia quinta,
23/07/2020 C (s) 21:11:

> Dear all,
>
> This transformation gives me an empty output file:
> https://xsltfiddle.liberty-development.net/gVhEaiQ
>
> However, if I remove the xmlns="urn:oasis:names:tc:xliff:document:1.2 bit
> from the XLIFF root node, then it works.
>
> Could somebody help me understand why that happens?
>
> Thanks in advance.
>
> Cheers, Manuel

Current Thread