Announcement

Collapse
No announcement yet.

"Icon" and "Control on and off" variable?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    "Icon" and "Control on and off" variable?

    I'm working on my own custom .asp page and I have a question for you guys.

    In my page, xsl:apply-templates select="XXX" />
    name= NAME, location= LOCATION, Last change =@CHANGE. What about icon and control (on and off)?

    Thanks,
    hlkc

    #2
    hlkc,
    Can you provide a bit more information? The example you have shown is an XSLT statement and not asp code. Can you show a bit more code and how you desire to use it.
    💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

    Comment


      #3
      Rupp,

      Please refer below. The name and last change or status are working but icon and control are not working.

      Thanks as always,
      hlkc

      <table border="0" width="100%" cellpadding="0" cellspacing="1">
      <tr>
      <td class="tablecolumn" valign="top" align="left">Name</td>
      <td class="tablecolumn" valign="top" align="left">Icon</td>
      <td class="tablecolumn" valign="top" align="left">Last Change</td>
      <td class="tablecolumn" valign="top" align="left">Control</td>
      </tr>
      <xsl:for-each select="DEVICE">
      <xsl:sort select="LOCATION" order="ascending" />
      <xsl:if test="NAME = 'Weather'
      or NAME = 'info1'
      or NAME = 'info2'">
      <tr>
      <td class="tableroweven" width="25%" valign="top" align="left">
      <xsl:value-of select="NAME" />
      </td>
      <td class="tablerowodd" width="25%" valign="top" align="left">
      <xsl:apply-templates select="ICON" />
      </td>
      <td class="tablerowodd" width="25%" valign="top" align="left">
      <xsl:apply-templates select="@CHANGE" />
      </td>
      <td class="tablerowodd" width="25%" valign="top" align="left">
      <xsl:apply-templates select="CONTROL" />
      </td>
      </tr>
      </xsl:if>
      </xsl:for-each>

      </table>

      Comment

      Working...
      X