<?xml version="1.0"?>
<!--$Id: xhtml2.xbl.xml,v 1.1 2006/04/21 14:21:32 jkratky Exp $-->
<xbl:bindings xmlns:xbl="http://www.mozilla.org/xbl">
	<xbl:binding id="link">
		<xbl:implementation>
			<xbl:constructor>
				this.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:type", "simple");
				this.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:actuate", "onRequest");
				this.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", this.getAttribute('href'));
			</xbl:constructor>
		</xbl:implementation>
	</xbl:binding>
	<xbl:binding id="object">
		<xbl:implementation>
			<xbl:constructor><![CDATA[
				var img=this.ownerDocument.createElementNS("http://www.w3.org/1999/xhtml", "img");
				img.setAttribute("src", this.getAttribute('data'));
				img.setAttribute("border", "0");
				if (this.hasChildNodes&&this.firstChild.nodeType==3)
					img.setAttribute("title", this.firstChild.nodeValue);
				while (this.childNodes.length) this.removeChild(this.firstChild);
				this.appendChild(img);
			]]></xbl:constructor>
		</xbl:implementation>
	</xbl:binding>
</xbl:bindings>

