I am creating a left navigation system utilizing xml and xsl. Everything was been going great until I tried to use a special character in my xml document. I am using »
and I get th error.
reason: Reference to undefined entity 'raquo'.
error code: -1072898046
How do I make this work?
I found myself googling for such info a lot, so decided to post a matrix on my own site for the simple purpose of quickly being able to do a lookup:
http://martinkool.com/characters
Use the &#...; form indeed.
This is an issue because not all HTML entities are XML entity. You can import the DTD of HTML into your document as Pat suggested, or do one of the following:
Replace all the occurances of the special character with the numeric entity code:
Wrap all occurances of the special characters in a CDATA Tag
Define entitys at the top of your document
Are you using the » symbol directly or are you defining it as » ? If you're using the escaped symbol, did you forget the semicolon?