Subject: Re: [xsl] xsl transform issue From: Emmanouil Batsis <Emmanouil.Batsis@xxxxxxxxxxx> Date: Wed, 23 Feb 2005 19:06:28 +0200 |
This does not work, I want test for the data field, certain keys will be fall in ti the first part of the choose, other will fall into the otherwise part. Maybe someone can point me in the right direction.
Thanks, DJ
----------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><xsl:value-of
select="./win-registry-data/data"/></td>
</xsl:when>
<xsl:otherwise>
<td ><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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] xsl transform issue, David Carlisle | Thread | Re: [xsl] xsl transform issue, dan sherman |
Re: [xsl] xsl recursion, Jon Gorman | Date | Re: [xsl] xsl transform issue, dan sherman |
Month |