[liblouis-liblouisxml] Re: The xpath expression

  • From: "Vic Beckley" <vic.beckley@xxxxxxxxxx>
  • To: <liblouis-liblouisxml@xxxxxxxxxxxxx>
  • Date: Wed, 21 Sep 2011 09:35:15 -0400

Thanks Bert! That did the trick! The indent is now correct. However, I am
still getting a blank line between each list item. I have the lines
linesBefore 0 and linesAfter 0 in the p_li style section. Why would this not
override the linesBefore 1 and linesAfter 1 that are in the style list
section? I am trying to get a blank line before and after the list, but not
before and after each list item.

 

Vic

 

 

From: liblouis-liblouisxml-bounce@xxxxxxxxxxxxx
[mailto:liblouis-liblouisxml-bounce@xxxxxxxxxxxxx] On Behalf Of Bert Frees
Sent: Wednesday, September 21, 2011 9:05 AM
To: liblouis-liblouisxml@xxxxxxxxxxxxx
Subject: [liblouis-liblouisxml] Re: The xpath expression

 

Vic,

Have you added the line "namespaces
dtb=http://www.daisy.org/z3986/2005/dtbook/"; to your sem file?

Bert


On 21/09/2011 14:50, Vic Beckley wrote: 

Hi Paul,

 

Thanks for the info. It looks great, but it doesn't work for me. No matter
what I do the list items are formatted as normal paragraphs instead of
having a hanging indent. It is not using the p_li style section at all. I
even tried replacing the dtb: in the xpath expression with dtbook: because
that is the document type I am working with. That did not work either.

 

Where can you find the additional information in the XSLTs? I don't
understand exactly what this means.

 

Thanks again very much for your help.

 

Vic

 

 

From: liblouis-liblouisxml-bounce@xxxxxxxxxxxxx
[mailto:liblouis-liblouisxml-bounce@xxxxxxxxxxxxx] On Behalf Of Paul Wood
Sent: Wednesday, September 21, 2011 4:37 AM
To: liblouis-liblouisxml@xxxxxxxxxxxxx
Subject: [liblouis-liblouisxml] Re: The xpath expression

 

Hi Vic,

 

Just cracked this yesterday, so good timing! Adapted from Bert Free's
odt2braille.

 

in sem file:

p_li &xpath(//dtb:li/dtb:p)

 

in cfg file:

style p_li

            linesBefore 1

            linesAfter 1

 

this will then apply the style properties to a <p> within a <li>. For more
info on what to put in the () of &xpath refer to XSLTs.

 

Hope this helps.

Paul

 

On 20 September 2011 20:58, Vic Beckley <vic.beckley@xxxxxxxxxx> wrote:

Hi all,

When I use the Save as DAISY add-in for Word, it places list items in
<p></p> tags inside the <li></li> tags. This overrides the <li> formatting
of the text. John suggested that I use the xpath expression to get around
this. I read what was in the documentation about this expression and still
don't understand how it is used. Can anyone explain how the xpath expression
works or give me practical examples? Thanks in advance for any help.

Vic

 

Other related posts: