entities in SXML
My letter to the ssax-sxml mailing list:
Hello,
the SXML specification allows only one sort of entities, namely, unexpanded entities. The only use for them is in XMLs like this:
But I want to use “normal” entities:
jjinr֦v쥩֬
Unfortunately, this sort of entities doesn’t fit to SXML specification. So I’m going to use my SXML dialect for them (*REF* is for “reference”):
v-vDj~
Any objection to the approach? Will you use the same method if you will need such entities?
Notes.
1. I found a letter in archives:
http://sourceforge.net/mailarchive/message.php?msg_id=7743681
It suggests trying a the existing SXML notation *ENTITY*. But, in my opinion, it’s just an ugly workaround, not a clean solution.
2. Please look at the sample XML above. One can’t convert it to SXML tree without losing information that the entity name was “figure1″ (but I don’t know if it is a problem or not).
March 11th, 2005 at 10:51 pm
I like suggestion to use “&” sing. Discussion thread:
http://sourceforge.net/mailarchive/forum.php?thread_id=6778836&forum_id=599