On 12/12/2011 10:32 AM, Yves Forkl wrote: > In my configuration I have defined two macro commands, let's call them c1 and > c2. c2 calls c1 and then performs further steps, depending on the result of > running c1. > > c1 is testing for a condition and executes either sequence c1-a or sequence > c1-b, those two being included in a<choice> statement. > > In case of c1-a, c2 should continue executing. However, in the case of c1-b, > c2 should stop (or do something different). > > Now my question is: What is the preferred way to have c1 pass a kind of > return value to c2 and to have c2 check for that value? > > I am successfully using<pass parameter="c1-b"> at the end of sequence c1-b > and receiving that value in %_ in c2 just after having called c1. But I > wonder how to test for it, because XXE's macro language only seems to offer > XPath-based tests. > > Or maybe I have missed another, much simpler way to do what I want (except > code redundancy :-) ). >
Please provide us with a set of working macro-commands (even if these are just mockups calling alert and/or containing comments), so we can modify them in order to answer your question. -- XMLmind XML Editor Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xmleditor-support

