How to create Self Closing Nodes using XSLT

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
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...
<hr class="sig Sudheer Kokirala, www.techvedika.com

View the full article
 
Back
Top