xsl-list
[Top] [All Lists]

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

2020-07-23 14:34:28
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(_at_)gmail(_dot_)com 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 <>)
--~----------------------------------------------------------------
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>