Predicate by attribute?

Jacques (2)

Usenet Archive
Joined
Jun 23, 2004
Messages
6
Reaction score
0
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
 

Martin Honnen

Usenet Archive
Joined
Apr 8, 2000
Messages
6,174
Reaction score
0
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
548,208
Messages
3,104,802
Members
249,594
Latest member
henrywalsh

Latest Threads

Top