Project

Profile

Help

xmlns in xsl:message in Saxon 10.0

Added by Vladimir Nesterovsky over 2 years ago

Following xslt:

<xsl:stylesheet version="3.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:xs="http://www.w3.org/2001/XMLSchema"
  xmlns:t="t"
  exclude-result-prefixes="xs t">

  <xsl:template match="/*">
    <html>
      <body>
        hello!
        
        <xsl:message>
          <t:message type="info">
            <t:description>This is a message.</t:description>
          </t:message>
        </xsl:message>
      </body>
    </html>
  </xsl:template>

</xsl:stylesheet>

produces this message in the console:

<t:message xmlns:t="t" type="info"><t:description xmlns:t="t">This is a message.</t:description></t:message>

Formally that's correct though it contains unnesessary xmlns re-declaration over t:description element. Saxon 9.* did not generate such xmlns.


    (1-1/1)

    Please register to reply