property files and character encodings
Anthony Green
green@redhat.com
Sun Sep 9 22:09:00 GMT 2001
I just figured out why the xalan xsl transformer isn't running. It's
reading property files (either compiled in, or from disk) which
contain text like this...
# Note that the colon after the protocol needs to be escaped.
{http\u003a//xml.apache.org/xslt}indent-amount=0
{http\u003a//xml.apache.org/xslt}content-handler=org.apache.xalan.serialize.SerializerToHTML
{http\u003a//xml.apache.org/xslt}entities=HTMLEntities.res
{http\u003a//xml.apache.org/xslt}use-url-escaping=yes
{http\u003a//xml.apache.org/xslt}omit-meta-tag=no
Note the escape sequence for `:'.
The program then tries to search this resource bundle for
"{ http://xml.apache.org/xslt}content-handler" ; and doesn't find a
match. The problem is that \u003a isn't being converted into `:' when
read from a property file. I don't know what the right solution is.
Advice welcome...
Thanks,
AG
More information about the Java
mailing list