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

  • From: Bert Frees <bertfrees@xxxxxxxxx>
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Fri, 21 Mar 2014 19:18:29 +0100

Hi Michael,

XPath works fine, but your expression doesn't match. The expressions are 
evaluated upon the document root. Change it to &xpath(//p) to make it work 
(note the double slash).

Bert

On 21 Mar 2014, at 19:04, Michael Whapples wrote:

> Hello,
> I cannot get xpath semantic actions working.
> 
> I tried changing line:
>    para p
> to
>    para &xpath(p)
> in epub.sem from the BrailleBlaster repository. It appears that the xpath 
> expression is never evaluating as true. In the output from file2brl I get a 
> line like:
> Result (0 nodes):
> and the para style is never applied to the paragraph elements.
> 
> Have I done something wrong in my xpath definition?
> 
> I had been trying with more complicated expressions which also were not 
> working, so decided to try something simple like this example.
> 
> Michael Whapples
> For a description of the software, to download it and links to
> project pages go to http://www.abilitiessoft.com

For a description of the software, to download it and links to
project pages go to http://www.abilitiessoft.com

Other related posts: