I am using xslt1.0 for my html to xml conversion.

```
<xsl:variable name="margin">0</xsl:variable>

<xsl:if test="number($margin)">
<xsl:message>Its number</xsl:message>
</xsl:if>

```

This is my template which satisfying the condition and displaying message.If the variable margin's value is 0.5, then the condition becomes false. 

How to write the condition which matches for decimals too?