Implementing XSLT constraint through XPATH - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Implementing XSLT constraint through XPATH

We are trying to enforce a couple of business constrainrs with XPATH .
A sample xml node is as follows:
.....
.....

IE
browser
Navigate
http://www.....com/

.......
.......

If we need to ensure that the XML has ATLEAST one 'element' node containing text as "IE" we do:

ERROR: Atleast one IE element needed


But we need to ensure that ATLEAST one of the IE 'event' nodes has a combination of 'element' as IE and 'value' node containing the text "Logout" i.e.


IE
....
Navigate
...Logout...


How do we enforce this occuurrence constraint through template?
Sign In or Register to comment.