I have this source xml:
<cip>
<data>
<typo>
<articles>
<article id="BM017106--">
<lang>Lang Text(de-AT) -- BM017106--:6</lang>
</article>
<article id="XC01010101">
<lang>H07V-U (Ye) 1,5mm² schwarz, PVC Aderleitung eindrähtig</lang>
</article>
</articles>
</typo>
</data>
</cip>
And following xslt:
<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">
<xsl:message select="cip/data/typo/articles/article[1]/@id"/>
</xsl:template>
</xsl:stylesheet>
When I transform this with Saxon saxon9ee.jar all works fine. When I try to transform this with saxon-ee-10.3.jar, I got: Error XTDE0420, Cannot create an attribute node (id) whose parent is a document node. Have anyone an idea what's going wrong?
cip/data/typo/articles/article[1]/@id!(local-name() || '=' || .). - Martin Honnen