<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>html on Curtis Timson</title><link>https://hugo.curtiscode.dev/tags/html/</link><description>Recent content in html on Curtis Timson</description><generator>Hugo -- gohugo.io</generator><language>en-GB</language><lastBuildDate>Thu, 04 Oct 2012 00:00:00 +0000</lastBuildDate><atom:link href="https://hugo.curtiscode.dev/tags/html/index.xml" rel="self" type="application/rss+xml"/><item><title>How to prevent self-closing elements in XSLT</title><link>https://hugo.curtiscode.dev/post/xslt/how-to-prevent-self-closing-elements-in-xslt/</link><pubDate>Thu, 04 Oct 2012 00:00:00 +0000</pubDate><guid>https://hugo.curtiscode.dev/post/xslt/how-to-prevent-self-closing-elements-in-xslt/</guid><description>If you are to put an element into XSLT without any child elements, the element will automatically close itself. Therefore, if you have the following markup:
&amp;lt;div class=&amp;#34;clear&amp;#34;&amp;gt;&amp;lt;/div&amp;gt; XSLT will automatically render this as:
&amp;lt;div class=&amp;#34;clear&amp;#34; /&amp;gt; This is fine for most elements, however some elements such as &amp;lt;div&amp;gt; will behave differently if they are self-closed.
A good way of preventing this from happening is to add an empty value into the &amp;lt;div&amp;gt; element like so:</description></item></channel></rss>