You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@forrest.apache.org by Phil Sullivan <pa...@rcn.com> on 2005/01/25 12:40:43 UTC
xml validation failure when an & is present...
Hello -
First off, congratulations - Forrest has helped me get a professional
looking site up and running for my wife with the only glitches being
operator induced (that would be me)....so far i've figured them out
using he doc's and examples - but this one has me stumped.
I am getting validation errors when I include strings like this in an
xml docs:
[F12]. [IRKBD:F12:P&R]
I've tried using <code> </code> as well as <source> </source> with no
success. It appears the & is the problem since it builds fine without it
and complains about whatever character follows it....
My knowledge of XML is *very* limited, mostly gleaned from the Forrest
doc's and examples - so my apologies advance if I'm missing the obvious
here, or if I'm asking in the wrong list.
I've appended the error and a snippet from the document.
Thanks!
Phil
Heres the validation error:
===========================
Buildfile: C:\Forrest\06\src\core\forrest.build.xml
.
.
.
validate-xdocs:
/C:/Documents%20and%20Settings/pas/test/src/documentation/content/xdocs/aachandout.xml:437:57:
The reference to entity "R" must end with the ';' delimiter.
BUILD FAILED
C:\Forrest\06\src\core\targets\validate.xml:143: Could not validate
document C:\Documents and
Settings\pas\test\src\documentation\content\xdocs\aachandout.xml
Total time: 2 seconds
===========================
and a snippet(s) of the xml doc (without my <code> and <source> experiments)
<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN"
"http://forrest.apache.org/dtd/document-v20.dtd">
.
.
<p>To program a function key, select IR special keys. A listing of all
the special keys will be displayed along with command type options of
press and release, hold and release.
Use the scroll button to select [F12]. [IRKBD:F12:P&R] appears in the
verbal cue speech bar.
.
.
</p>