I would like to have three columns in my ultra status page for showing the output of my motion sensor data. The first column would state the name of the motion sensor, the second column would state the motion status, and the third column would state the light/dark status. I am not sure how to accomplish this. Right now I configured it to show the name and the motion status. Here is what I have so far. What would I need to add to do what I want? My light sensor is called "Light Sensor". Thanks.
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<?xml:namespace prefix = xsl /><xsl:for-each select="DEVICE">
<xsl:sort order="ascending" select="LOCATION"></xsl:sort>
<xsl:if test="NAME = 'Motion Sensor'">
<TBODY><TR>
<TD class=tableroweven vAlign=top align=left width="40%">
<xsl:value-of select="NAME"></xsl:value-of>
</TD>
<TD class=tableroweven vAlign=top align=left width="60%">
<xsl:apply-templates select="ICON"></xsl:apply-templates>
<xsl:apply-templates select="STRING"></xsl:apply-templates>
</TD>
</TR>
</xsl:if>
</xsl:for-each>
</TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<?xml:namespace prefix = xsl /><xsl:for-each select="DEVICE">
<xsl:sort order="ascending" select="LOCATION"></xsl:sort>
<xsl:if test="NAME = 'Motion Sensor'">
<TBODY><TR>
<TD class=tableroweven vAlign=top align=left width="40%">
<xsl:value-of select="NAME"></xsl:value-of>
</TD>
<TD class=tableroweven vAlign=top align=left width="60%">
<xsl:apply-templates select="ICON"></xsl:apply-templates>
<xsl:apply-templates select="STRING"></xsl:apply-templates>
</TD>
</TR>
</xsl:if>
</xsl:for-each>
</TABLE>
Comment