[liblouis-liblouisxml] Re: The xpath expression

  • From: Paul Wood <paulw@xxxxxxxxxxxxxx>
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Wed, 21 Sep 2011 09:37:29 +0100

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
>
>
> For a description of the software, to download it and links to
> project pages go to http://www.abilitiessoft.com
>



-- 

____________________________________________________

Paul Wood, Technical Services Leader

*Torch Trust*

Torch House, Torch Way,

Market Harborough, Leics. LE16 9HL, UK

Direct Line: *+44(0)1858 438269*

Tel: *+44(0)1858 438260*, Fax: *+44(0)1858 438275*

Email: paulw@xxxxxxxxxxxxxx <paulwtpaulw@xxxxxxxxxxxxxx>

Website: www.torchtrust.org

____________________________________________________

Chief Executive: Dr Gordon Temple
Charity No. 1095904

Privileged/Confidential Information may be contained in this message.
If you are not the intended recipient please destroy this message
and kindly notify the sender by reply email. The computer from which
this mail originates is equipped with virus screening software.
However Torch Trust cannot guarantee that the mail and its attachments
are free from virus infection.

____________________________________________________

Other related posts: