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

From
Bob Stayton <>
Date
2010-04-24T20:40:18+00:00
ID
00df01cae3ee$4bbdc510$6600a8c0@pazu
Thread
Re: [docbook-apps] Annotating program listings - Callouts - Chapter 27. Program listings - minor / nit typo ?
Hi Robert,

Thanks for taking the time to comment.  No, it 
isn't a typo.  The programlisting is not in a CDATA section, so any XML 
characters like & must be escaped as character entities.  That 
character is intended to be a literal ampersand in the program 
listing.

 

If you are asking me if the code itself makes sense 
with an ampersand, I can't answer that.  I just cut and pasted it from 
somewhere.  8^)

 

Bob Stayton
Sagehill Enterprises


 

 

  
----- Original Message ----- 

  
From: 
  Robert 
  Lucente 

  
To:  
  

  
Sent: Saturday, April 24, 2010 12:25 
  PM

  
Subject: [docbook-apps] Annotating 
  program listings - Callouts - Chapter 27. Program listings - minor / nit typo 
  ?

  

  
url: http://www.sagehill.net/docbookxsl/AnnotateListing.html#Callouts

The 
  program listing has

virtual int  parse(MyFetch &amp;fetcher) = 0;

I think that 
  "&amp" is a typo in the 
  above line of code ? 

  
This has probably already been found but just in 
  case.