You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Vincent Berruchon <vi...@si-logism.fr> on 2002/04/10 19:08:47 UTC
accent
Hello everybody,
I try to use XPath to get value of node data in XML File.
I'm french so most of the time I prefer use iso-8859-1 encoding in my
XML Files. There are often accents in these files.
In my test, these line allow me to get the Node list corresponding to
the Xpath
const NodeRefListBase& nodeList = theEvaluator.selectNodeList(
theHelper->getDOMSupport(),
theContextNode,
XalanDOMString(c_xpath).c_str(),
(_parsedSource.getDocument())->getDocumentElement());
The problem is that when I "cout" the XalanDOMString or CharVectroType
(I try to use TranscodeToLocalCodePage() it's the same) I get from this
Nodes, it's working only when there is no accent in the string otherwise
the output is blank (it writes nothing).
As soon there is one accent or "strange" character, the output of the
value for the Node is blank
So my questions are:
is this normal and is it a problem from XalanDOMString or something else?
How to take in account the encoding of the xml file if it's not by default?
I wait for your advices or ressources.
Thanks
Vincent
Critical Xalan 2.3.X Error in testing...
Posted by Rick Bullotta <ri...@lighthammer.com>.
Transformations using stylesheets that worked fine with 2.2 and 2.3.1 fail
in recent builds of Xalan. The exception is:
Error Transforming XML Document: javax.xml.transform.TransformerException:
java.lang.RuntimeException: Programmer assertion is incorrect! -
setShouldCacheNodes not supported by this iterater!
The stylesheet in question does a lot with extension functions, including
passing NodeLists and DTF's back and forth, if that is any help...
Any thoughts?
Rick Bullotta
CTO
Lighthammer Software (www.lighthammer.com)