← Prev in month ← Prev in thread

Re: [docbook-apps] Annotating program listings - Callouts - Chapter27. Program listings - minor / nit typo ?

From
Dave Pawson <>
Date
2010-04-25T13:57:05+00:00
ID
Thread
Re: [docbook-apps] Annotating program listings - Callouts - Chapter27. Program listings - minor / nit typo ?
On Sun, 25 Apr 2010 08:47:09 -0400
"Robert Lucente" <> wrote:



> 1) The "&amp;" has not been properly escaped from the DocBook
> perspective. This is a possibility because the program listing is not
> in CDATA

There are two ways  of 'escaping' < and & in xml for transformation
to docbook.
1. use a CDATA section
2. Do as Bob has done and replace each occurrence with it's character
entity. 

Each time I want the reader of my HTML output to see the ampersand
symbol, I 'write' it as &amp; which the browser 'translates' into &

HTH




-- 

regards 

-- 
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk
← Prev in month ← Prev in thread