I want to start off by saying "Job WELL Done!". Your programming is teaching me alot. I do have a few questions though.
1) In the XLS file for your devices how do I get them to sort. This is part my Script: (ultra_view2_status_living_room.xsl)
-----------------------------------------------------------------
<table border="0" width="100%" cellpadding="0" cellspacing="1">
<tr>
<td class="tablecolumn" valign="top" align="left">Device</td>
<td class="tablecolumn" valign="top" align="left">Status</td>
</tr>
<xsl:for-each select="DEVICE" >
<xsl:sort select="DEVICE" order="ascending" />
<xsl:sort select="TYPE" order="ascending" />
<xsl:if test="LOCATION = 'Living Room'" >
<tr>
<td class="tableroweven" width="70%" valign="top" align="left">
<xsl:value-of select="NAME" />
</td>
<td class="tablerowodd" width="30%" valign="top" align="left">
<xsl:apply-templates select="ICON" /> <xsl:apply-templates select="STRING" />
</td>
</tr>
</xsl:if>
</xsl:for-each>
</table>
--------------------------------------------------------------------
it produces:
Back Door
Front Door
Overhead Lights
Living Room Window
Light Relay
Curio Cabinet
End table lamps
I want to sort then in order from A-Z.
2) Using the above example, how do I make it select an ICON based off of what the Status is?
Thanks in advance for any help
1) In the XLS file for your devices how do I get them to sort. This is part my Script: (ultra_view2_status_living_room.xsl)
-----------------------------------------------------------------
<table border="0" width="100%" cellpadding="0" cellspacing="1">
<tr>
<td class="tablecolumn" valign="top" align="left">Device</td>
<td class="tablecolumn" valign="top" align="left">Status</td>
</tr>
<xsl:for-each select="DEVICE" >
<xsl:sort select="DEVICE" order="ascending" />
<xsl:sort select="TYPE" order="ascending" />
<xsl:if test="LOCATION = 'Living Room'" >
<tr>
<td class="tableroweven" width="70%" valign="top" align="left">
<xsl:value-of select="NAME" />
</td>
<td class="tablerowodd" width="30%" valign="top" align="left">
<xsl:apply-templates select="ICON" /> <xsl:apply-templates select="STRING" />
</td>
</tr>
</xsl:if>
</xsl:for-each>
</table>
--------------------------------------------------------------------
it produces:
Back Door
Front Door
Overhead Lights
Living Room Window
Light Relay
Curio Cabinet
End table lamps
I want to sort then in order from A-Z.
2) Using the above example, how do I make it select an ICON based off of what the Status is?
Thanks in advance for any help
Comment