Hi,

I am using XSLT to generate XML nodes like this...

<Note body="All – Applicable manuals include concise job descriptions and definitive lines of authority." type=" Note">
</Note>

But i have to create the 'Self-Closing' like this..

<Note body="All – Applicable manuals include concise job descriptions and definitive lines of authority." type="Note"/>

I am creating the node using XSLT like the following :

<xsl:element name="Notes">
</xsl:element>


How can i create a 'Self-Closing Node' using XSLT.

Thanks in Advance...

Research use of the "attribute" directive to build your node. However, in XML these constructs are equivalent:

<note></note>

means the same thing as:

<note />

so, there is NO NEED to alter your XSLT. Contrary to your question, you do NOT "have to create" self-closing tags.