Predicate by attribute?

J

Jacques

Is it possible to predicate by attribute, and if so, how?

<System xmlns="" name="SAP_R3_Financials_DEV200">
<Attributes xmlns="">
<pcd:Attribute name="ApplicationServer" value="secacsap"/>
<pcd:Attribute name="ServerPort" value="3200"/>
</Attributes>
</System>
---------------------------------------------
I want to be able to

<xsl:value-of select="@value"/> only when @name="ApplicationServer"


Regards
 
M

Martin Honnen

Jacques said:
Is it possible to predicate by attribute, and if so, how?

<System xmlns="" name="SAP_R3_Financials_DEV200">
<Attributes xmlns="">
<pcd:Attribute name="ApplicationServer" value="secacsap"/>
<pcd:Attribute name="ServerPort" value="3200"/>
</Attributes>
</System>

<xsl:if test="@name = 'ApplicationServer'">
<xsl:value-of select="@value" />
</xsl:if>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top