Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Implementing XSLT constraint through XPATH
We are trying to enforce a couple of business constrainrs with XPATH .
A sample xml node is as follows:
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.
How do we enforce this occuurrence constraint through template?
0 · ·