Hi everybody,
I’ve noticed a curious thing while dealing with XML in Xojo.
If I simply try to load an electronic invoice XML and then apply the XML.Transform method, given the very same project and same XSL, the HTMLViewer control outputs different renderings, wether the program is running on Win or Linux: if I try on Win everything is OK whilst doing it on Linux some datas (like quantity and price values) are missing/not read and the invoice has a “NaN” string as total.
I’ve checked out the dependencies on Linux and the libraries that are needed for HTMLViewer to work: everything is correct.
Is this a bug? Am I doing something wrong?
Dim fatt As FolderItem
fatt=GetOpenFolderItem("text/xml")
If fatt <> Nil Then
Dim temp As FolderItem = GetTemporaryFolderItem
Dim xml as New XmlDocument
xml.LoadXml(fatt)
Dim prettyXML As String = xml.Transform(kFoglioDiStileXSL)
HTMLViewer1.LoadPage(prettyXML, temp)
end