Page 1 of 1

element structure is not serialized in <xsl:message> in XSLT debugger

Posted: Sun Jul 16, 2023 5:37 pm
by chrispitude
I am trying to show some element structures in <xsl:message> statements in my stylesheet. For example,

Code: Select all

    <xsl:template match="*">
        <xsl:message>ELEMENT: <xsl:sequence select="."/></xsl:message>
        <xsl:next-match/>
    </xsl:template>
Given the following input document:

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 as a typical refactoring operation (Tools > XML Refactoring), the element structure is serialized:

image.png
image.png (34.53 KiB) Viewed 732 times

If I run this in the XSLT debugger, the element structure is omitted and only the text content is serialized:

image.png
image.png (15.9 KiB) Viewed 732 times

Is this expected behavior or a bug? Here is a testcase:

oxygen_xslt_sequence_in_message.zip
(2.59 KiB) Downloaded 76 times

Thanks!

Re: element structure is not serialized in <xsl:message> in XSLT debugger

Posted: Tue Jul 18, 2023 12:43 pm
by tavy
Hello,

Thanks for your feedback.
Yes, it seems that in the XSLT Debugger the element structure is omitted and only the text content is serialized. I added an issue on our issue tracker to analyze this situation. When this will be fixed we will update this thread,

Best Regards,
Octavian