Ivanova wrote:
Hi. I want to transform XML to HTML using Xalan-C++ 1.10.
And I have such xml (fragment):
<a ... alt="текст"> текст </a>
And after XSL transformation, attribute values (written in russian
language) become coded into HTML escape sequence:
<a ... alt="Авто"> текст </a>
Well, that's probably a bug, although it's hard to say for sure. Please
open a Jira issue and attach a small source document and stylesheet that we
can use to reproduce the problem. Here's a link to the Jira page for Xalan-C:
http://issues.apache.org/jira/browse/XALANC
Please try to make your sample document and stylesheet as simple as possible.
But text, inside attribute <a> stayed unchanged (and that's right).
How could I avoid converting values of attributes in tags ?
<a> is not an attribute, it's an element.
And one more question: how to perform xalan-c do not insert META tag
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
in created html document.
If you're using the XalanTransformer class, you can call
XalanTransformer::setOmitMETATag(eOmitMETATagYes) to accomplish this. If
you're using the command line executable, you can use the -m command line
option.
Dave