I am using php with the sablotron extension.
Now, i want to use entities (general e.'s, i think) to implement
localization similar to how it is done with mozilla/xul, i.e.
having &entities; in the data files, and define them in a dtd,
so the .xml is not subject to translation.
There was a thread on the mailing list about that named
"External entities (and perl)", but it didn't get me any further.
This mail has an attachment with a tiny example, made of an xml,xsl and dtd.
When processed with sabcmd, the entity references just disappear.
I also processed the xml/xsl with xmlwf from expat using the following:
xmlwf -x -p -d /tmp/ ex.xml
the magic that makes it work as expected is in the -p option, which
is only available in the test version of expat.
(Althougt i'd expect a lower-case � and less strange chars)
So i tried to build sablotron with the test-expat, and patched parser.cpp
with XML_SetParamEntityParsing(theParser, XML_PARAM_ENTITY_PARSING_ALWAYS );
in TreeConstructer::parseDataLineUsingExpat, which sadly resulted in
segfaults with sabcmd and libphp/apache.
Related to this entities stuff is the fact that it will be german text,
so i would *really* like to have umlauts like ü and the like, just like
's should be preserved on their way to html.
Maybe some of you guys has already faced this spots, since in the
mainstream-xml documentation, this is quite a bit underrepresented.
btw: the entities are expanded, when declared inline with the xml.
CU, SN
------
The UNIX equivalent of the "Blue Screen of Death" would be called
"kernel panic" .It obviously exists, since I have heard and read about it,
but I've never been witness to it in my professional career.
John Kirch,
Networking Consultant and Microsoft Certified Professional (Windows NT)
example.tgz