[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Complex Condition problem with Attributes

Subject: Complex Condition problem with Attributes
From: "Khorasani, Houman" <houman_khorasani@xxxxxxxxxxxxxx>
Date: Thu, 15 Sep 2005 13:23:25 +0100
complex condition
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.