[Home] [By Thread] [By Date] [Recent Entries]

Subject: Complex Condition problem with Attributes
From: "Khorasani, Houman" <houman_khorasani@xxxxxxxxxxxxxx>
Date: Thu, 15 Sep 2005 13:23:25 +0100
Hello

I have here a nasty condition.

It shall look, if there is any element that contains 'DebtManagement'
(e.g. XXXXDebtManagement) and check if these elements have an attribute
called 'action' with the value of 'add' or 'delete', then the condition
would be true.

<xsl:when test="//*[contains(name(),'DebtManagement') and
(//*[contains(name(),'DebtManagement')]@action='add' or
//*[contains(name(),'DebtManagement')]@action='delete')">

It failes at the position @.  But why?

Many Thanks,
Houman

Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member