开云体育

Locked Re: CVP's AD4 Programming Error


 

At 6:13 PM +0000 8/11/02, original_black_bart wrote:
Bob,

It appears as though there's an error in the decoder-config.dtd file
that was provided. With the file in place, one cannot open any of the
programming windows and the following error occurs when I use the
Check XML Tool;

" Error parsing decoder file: org.jdom.JDOMException: Error on line 1
of document file C:/Program Files/JMRI/xml/DTD/decoder-config.dtd:
External parameter entity "%(dtd);" has characters after markup."
That seems to indicate that something bad happened to the file during the transfer. Sometimes mail software and browsers get over-enthused about .xml and .dtd files and try to interpret them. Perhaps that happened here.

The first lines should look like:

<!-- Defines XML documenting a DCC decoder as a component, esp. information -->
<!-- on how to program it. -->

with no entities present (an XML "entity" is something that starts with a percent sign "%")

In any case, the change you need is to replace the 2nd-to-last line with

<!ATTLIST display format (default | vslider | hslider | radiobuttons | checkbox |
onradiobutton | offradiobutton) "default" >


Instead of a single "slider", this has the separate "vslider" and "hslider" entries.

Restoring the old file eliminates the error.

BTW, recreating the Decoder Index did not resolve the ability to
select other then the intended Programing Mode.
OK, thanks, will look into it.
--
--------------
Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957)

Join [email protected] to automatically receive all group messages.