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

Subject: Re: [xsl] xmlns in the root element prevents transformation
From: "Imsieke, Gerrit, le-tex gerrit.imsieke@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 23 Jul 2020 19:34:21 -0000
If you add an attribute xpath-default-namespace="urn:oasis:names:tc:xliff:document:1.2" to xsl:stylesheet, the templates will match.

Currently they only match if the source elements are in no namespace. But xmlns="urn:oasis:names:tc:xliff:document:1.2" puts them in a namespace.

Gerrit

On 23.07.2020 21:12, Manuel Souto Pico terminolator@xxxxxxxxx wrote:
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
XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list>
EasyUnsubscribe <http://lists.mulberrytech.com/unsub/xsl-list/225679> (by email <>)

Current Thread