On Thu, May 19, 2005 at 04:11:15PM -0700, Steve Kelem wrote:
> I'm using the latest stable Template Toolkit.
> 
> I'm now trying to build my structure following the examples in Chapter 
> 11 of the Template Toolkit book.
> I'm using the xml-map to describe the menu structure.  During build, I 
> get the following cryptic messages (44 times!):
> 
> + Overview.html
> ! undef error - No semi-colon found after entity name [Ln: 71, Col: 48]
> 
> It's nice that a line and column number are printed in the message, but 
> it would be even better if the name of the file where the error is would 
> be printed.  Overview.html is only 13 lines long!  (I tried, 
> unsuccessfully to search for parts of that error message.)

It's worth pointing out that this error message isn't generated by TT.
It somes from XML::Simple.

> To try to track down the problem, I "found" every file in the local 
> hierarchy, ran "wc -l", then sorted the list and looked at the files 
> with 71 or more lines.
> 
> The ones that stood out were "bin/configure", which has a comment on 
> line 71, and "src/xml/sitemap.xml".
> Line 71 of that file is:
>           <menu>Controlling_Tasks_&_Applications</menu>
> But column 48 is the letter "o" in "Applications".
> As a guess, I changed the ampersand to "_".

You should change it to a valid XML entity. An ampersand is &amp;. 

> 1. What are the sets of valid and invalid characters for the <menu> text 
> in the sitemap.xml file?

Well, it's an XML file. So it needs to be valid XML :)

Dave...

-- 
  Stab a sorry heart
  With your favourite finger

Attachment: pgpOGUfsf4BPp.pgp
Description: PGP signature

Reply via email to