[liblouis-liblouisxml] Re: semantic action files and xpath

  • From: Michael Whapples <mwhapples@xxxxxxx>
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Mon, 24 Mar 2014 09:52:48 +0000

Would it be worth adding a bit more to emphasise that you cannot predict which semantic action will be applied in the event of overlapping nodesets?


I had just taken that from the existing documentation and may be had not fully grasped its significance at the time.

Michael Whapples
On 24/03/2014 09:30, Bert Frees wrote:

2014-03-24 9:44 GMT+01:00 Michael Whapples <mwhapples@xxxxxxx <mailto:mwhapples@xxxxxxx>>:


    * You should be careful to not create XPATH expressions which give
    overlapping nodeset results. When LibLouisUTDML finds a match for
    a node it assigns the semantic action to that node and this will
    not be changed subsequently.


This is indeed something important to consider. People who are familiar with XSLT might find this confusing, because for XSLT matchers a priority is calculated from the XPath expression while in Liblouisutdml it is unpredictable which rule will win.



Other related posts: