Re: [xml] Problems with the "decimal" definition of a RELAX NG XSD on the Solaris 2.8 platform during validation using xmllint



On Thu, Mar 10, 2005 at 04:39:28PM +1100, John Hockaday ga gov au wrote:
Hi All,

I have a RELAX NG XSD that uses a 'decimal' definition. I am validating an
XML document using xmllint but I get unexpected errors.  Libxml2 is running
on Solaris 2.8 with the following version of libxml2:

/usr/local/bin/xmllint: using libxml version 20616
   compiled with: DTDValid FTP HTTP HTML C14N Catalog XPath XPointer XInclude
Iconv Unicode Regexps Automata Schemas

If I use a decimal like this '130.480907024' then there are no errors but if
I extend the number of decimal points like this '130.48090702489' then I get
the following error:

"
ANZNT0782000040.xml:61: element eastbc: Relax-NG validity error : Error
validating datatype decimal
"

It seems to me that the precision of the 'decimal' definition in the
libraries is causing the problem.  The problem doesn't occur on LINUX or MAC
platforms.  The funny thing is that Solaris 2.8 is a 64 bit system.  Can
anyone help me with this?

The RELAX NG XSD is located at
http://asdd.ga.gov.au/asdd/tech/relaxng/anzmeta-1.3.1.rng and the XML
document instance is at http://asdd.ga.gov.au/asdd/work/ANZNT0782000040.xmlm
if that helps anyone.

  Hum, annoying ! It probably is just a matter of getting someone with
a Solaris 8 box (on sparc64 I assume) to go though dbx and check what
is happening there. I can't do that myself, could you open a bugzilla
entry about this and attaching the examples ? 

 thanks,

Daniel

-- 
Daniel Veillard      | Red Hat Desktop team http://redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]