navit-project.org
http://forum.navit-project.org/

XML Entity Undefined
http://forum.navit-project.org/viewtopic.php?f=11&t=720
Page 1 of 1

Author:  bolaboy [ 26 May 2018, 04:51 ]
Post subject:  XML Entity Undefined

Hello everybody, I'm new to Navit and am trying to change the road colors, but I don't want to have to go through and update the 12 different highway entries every time I want to try a different color. I'm also not super knowledgeable in XML, but after googling I decided to try Entities, but I'm getting an error.

I have tried defining the entity in the top of the document and also just above "streets" layer, but no matter what I try, I still get "error:navit:main_real:Error parsing config file "/navit/navit.xml" on line 1575: Entity name "highway" is not known at line 1575, char 34." I can't find anything like it on google, so is this something to do with the parser that navit is using?

The definition (above "streets") is as follows:

Code:
<!DOCTYPE layer [
    <!ENTITY highway "#49639A">
]>



and the usage is:
Code:
<polyline color="&highway;" width="1"/>


Am I just doing things wrong?

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/