docbook: special characters within formated text
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