xsl-list
[Top] [All Lists]

RE: xsl transform issue

2005-02-23 09:44:03
Correct there are no attributes, the choose will
output to html and mike it red or green. In this
example I am trying to make netlogon a test to be
green if its there and red if its not. I want to do
that for all the <win-registry-data><data> keys. Hope
this explains it better. Thanks again.


----------xsl below-----------------
<xsl:if test="name = 'NullSessionPipes'"> 
        <xsl:for-each select="./win-registry-data/data">
                       <xsl:choose>
                                      <xsl:when
test="./win-registry-data/data= 'netlogon'">
                                      
<td bgcolor="green">xsl:value-of
select="./win-registry-data/data"/></td>
                                   </xsl:when>
                       <xsl:otherwise>
<td bgcolor="red"><xsl:value-of
select="./win-registry-data/data"/></td>
                       </xsl:otherwise>
                       </xsl:choose>
        </xsl:for-each>
</xsl:if>


--------------xml below ----------------------

           
<win-registry-key><name>HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanManServer\Parameters</name><exists>true</exists>
               
<win-registry-value><name>NullSessionPipes</name><exists>true</exists><type>REG_MULTI_SZ</type>
                   
<win-registry-data><data>COMNAP</data></win-registry-data>
                   
<win-registry-data><data>COMNODE</data></win-registry-data>
                   
<win-registry-data><data>SQL\QUERY</data></win-registry-data>
                   
<win-registry-data><data>SPOOLSS</data></win-registry-data>
                   
<win-registry-data><data>netlogon</data></win-registry-data>
                   
<win-registry-data><data>lsarpc</data></win-registry-data>
                   
<win-registry-data><data>samr</data></win-registry-data>
                   
<win-registry-data><data>browser</data></win-registry-data>
                </win-registry-value>
            </win-registry-key>




__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>