docbook: special characters within formated text


Previous by date: 15 Oct 2003 07:19:12 -0000 ANNOUNCE: DocBook XSL: The Complete Guide 2nd Edition, Bob Stayton
Next by date: 15 Oct 2003 07:19:12 -0000 Re: special characters within formated text, Tabatha Marshall
Previous in thread:
Next in thread: 15 Oct 2003 07:19:12 -0000 Re: special characters within formated text, Tabatha Marshall

Subject: special characters within formated text
From: Alasdair Hatfield ####@####.####
Date: 15 Oct 2003 07:19:12 -0000
Message-Id: <200310150718.h9F7Itt12686@foureyes.embedded-designs.co.uk>

Hi

I have some code of the form

 <example id="hooks.cpp">
        <title>hooks.cpp</title>
        <programlisting>
	sys_bus = new CBus<MEMTYPE, ADDRTYPE> ( "SYS_BUS", 32, 8);
        </programlisting>
        </example>

When I compile this using xsltproc, I get the following error:

mem.xml:180: error: error parsing attribute name
    sys_bus = new CBus<MEMTYPE, ADDRTYPE> ( "SYS_BUS", 32, 8);
                                                                      ^

The arrow is to the comma between MEMTYPE and ADDRTYPE.

It appears that this and other similar errors are caused by the parser 
recognising these as special characters.

How can I, in the xml file, tell the compiler to ignore these so I can use 
formated text without limitations?

Thanks in advance
Alasdair

Previous by date: 15 Oct 2003 07:19:12 -0000 ANNOUNCE: DocBook XSL: The Complete Guide 2nd Edition, Bob Stayton
Next by date: 15 Oct 2003 07:19:12 -0000 Re: special characters within formated text, Tabatha Marshall
Previous in thread:
Next in thread: 15 Oct 2003 07:19:12 -0000 Re: special characters within formated text, Tabatha Marshall


  ©The Linux Documentation Project, 2014. Listserver maintained by dr Serge Victor on ibiblio.org servers. See current spam statz.