EDN Admin
Well-known member
Hello!
May someone can help me.
I want to get a specific attribute from a parent-parent node
Here is my XML Code:
<pre class="prettyprint <kpi id="a1.op.provisioning.product.error.rate" start_time="2012-10-01T00:00:00" key="60VKDKRN" period="P1M" value="0.149389514
<segments>
<segment group="product_ordertype" name="name1" />
</segments>
</kpi> [/code]
i Have to check the name of the segment, in this case i would do that:
<pre class="prettyprint <xsl:choose>
<xsl:when test=/qis/kpi/segments/segment/@name = name1>
<xsl:value-of select="/qis/kpi/segments/segment/@name = name1../../@value"/> </xsl:when>
</xsl:choose> [/code]
the when check is correct, but now im not able to get the value of <kpi value="0.149389514
i hope you understand my problem and someone can help me.
<br/>
<br/>
View the full article
May someone can help me.
I want to get a specific attribute from a parent-parent node
Here is my XML Code:
<pre class="prettyprint <kpi id="a1.op.provisioning.product.error.rate" start_time="2012-10-01T00:00:00" key="60VKDKRN" period="P1M" value="0.149389514
<segments>
<segment group="product_ordertype" name="name1" />
</segments>
</kpi> [/code]
i Have to check the name of the segment, in this case i would do that:
<pre class="prettyprint <xsl:choose>
<xsl:when test=/qis/kpi/segments/segment/@name = name1>
<xsl:value-of select="/qis/kpi/segments/segment/@name = name1../../@value"/> </xsl:when>
</xsl:choose> [/code]
the when check is correct, but now im not able to get the value of <kpi value="0.149389514
i hope you understand my problem and someone can help me.
<br/>
<br/>
View the full article