xsl-list
[Top] [All Lists]

Complex Condition problem with Attributes

2005-09-15 05:23:25
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')](_at_)action='add' or
//*[contains(name(),'DebtManagement')](_at_)action='delete')">

It failes at the position @.  But why?

Many Thanks,
Houman

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>