xsl-list
[Top] [All Lists]

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

2020-07-23 15:55:31
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(_at_)gmail(_dot_)com> escreveu no dia quinta,
23/07/2020 à(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

--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--
<Prev in Thread] Current Thread [Next in Thread>