Excellent.

A small note to interested parties: This proposal contains diagrams (as does 
the Sensor-Data proposal). These are unfortunately not seen if viewed with 
Internet Explorer. Mozilla-based browsers display them though.

The reason is the following: img-tags available in the XEP XML are not allowed 
to contain width and height attributes according to the XEP schema. However, in 
the XSL (XML->HTML) transformation, img tags are created copying the 
(non-existing) width and height attributes to HTML. This results in img-tags of 
the following type: <img src='...' wdith='' height=''/>. This in turn is 
interpreted by Internet Explorer as meaning width='0' height='0', making the 
image invisible. Mozilla-based browser in turn interpret this as if the 
attributes are not defined, making the image visible.

Commenting out these two attributes (or making them conditional using xsl:if) 
in the xsl file before generating the HTML would also resolve the issue:

  <xsl:template match='img'>
    <img>
      <xsl:attribute name='alt'><xsl:value-of select='@alt'/></xsl:attribute>
      <!--<xsl:attribute name='height'><xsl:value-of 
select='@height'/></xsl:attribute>-->
      <xsl:attribute name='src'><xsl:value-of select='@src'/></xsl:attribute>
      <!--<xsl:attribute name='width'><xsl:value-of 
select='@width'/></xsl:attribute>-->
    </img>
  </xsl:template>

Sincerely,
Peter Waher


-----Original Message-----
From: XMPP Extensions Editor [mailto:[email protected]] 
Sent: den 21 mars 2013 12:37
To: [email protected]
Subject: [Standards] Proposed XMPP Extension: XEP - Sensor Networks - 
Provisioning

The XMPP Extensions Editor has received a proposal for a new XEP.

Title: XEP - Sensor Networks - Provisioning

Abstract: This specification describes an architecture for efficient 
provisioning of services, access rights and user privileges in sensor networks.

URL: http://xmpp.org/extensions/inbox/sensor-network-provisioning.html

The XMPP Council will decide in the next two weeks whether to accept this 
proposal as an official XEP.


Reply via email to