element structure is not serialized in <xsl:message> in XSLT debugger
Posted: Sun Jul 16, 2023 5:37 pm
I am trying to show some element structures in <xsl:message> statements in my stylesheet. For example,
Given the following input document:
If I run this as a typical refactoring operation (Tools > XML Refactoring), the element structure is serialized:
If I run this in the XSLT debugger, the element structure is omitted and only the text content is serialized:
Is this expected behavior or a bug? Here is a testcase:
Thanks!
Code: Select all
<xsl:template match="*">
<xsl:message>ELEMENT: <xsl:sequence select="."/></xsl:message>
<xsl:next-match/>
</xsl:template>
Code: Select all
<topic id="topic">
<title>My Topic</title>
<prolog>
<author role="owner">chrispy</author>
</prolog>
<body>
<p>This is some <b>bold</b> text.</p>
</body>
</topic>
If I run this in the XSLT debugger, the element structure is omitted and only the text content is serialized:
Is this expected behavior or a bug? Here is a testcase:
Thanks!