Home > Back-end >  How to output Tag with Attributes using Notepad
How to output Tag with Attributes using Notepad

Time:12-13

I am trying to output an XML via XSL Transformation in Notepad using XML Plugin Tool. However the output is not what I expected.

This is my XSL code

<ImportValue XSI="foo" DESC="foofoo">
    <xsl:value-of select="foobar"/>
</ImportValue>

This is the XML output I get using the tools

000010

However, I am expecting something more like this

<ImportValue XSI="foo" DESC="foofoo">000010</foobar>

Does anyone know how to configure this tool to have it formatted so that it does not removed the tag and its attributes? Or is there any other tool that I have no knowledge of?

Thank you.

CodePudding user response:

I have figured that I didn't use "<xsl:template match="/">" properly. Solved. Thank you

  • Related