[xml] Issue in using an XSD with the attribute PRECISION



Hi,
 
I'm using xmllint to validate an XML file against a schema definition file using the attribute "precision" and running into an error.  I'm running it in Linux and the versions of OS and tool I'm using are:
 
Linux version:
Linux ******** 2.6.9-42.0.0.0.1.ELsmp #1 SMP Sun Oct 15 15:13:57 PDT 2006 x86_64 x86_64 x86_64 GNU/Linux
 
XMLLINT version:
xmllint: using libxml version 20616
   compiled with: DTDValid FTP HTTP HTML C14N Catalog XPath XPointer XInclude Iconv Unicode Regexps Automata Schemas 
 
We've installed the latest version of libxml2 but still get the issue , any help on what triggers this will be greatly appreciated.  Many thanks in advance.
 
Portia 
=======================================================================================================================================================================================
MORE DETAILS BELOW:
 
The command line I use is:
xmllint --noout --schema SODesc_p.xsd SODesc_p.xml 
 
XSD Code snippet:
...
<xs:element name="order_line_costs" type="varchar21" minOccurs="0"/>
        <xs:element name="container_type" type="varchar26" minOccurs="0"/>
        <xs:element name="amount1" type="number16" precision="2" minOccurs="0"/>
        <xs:element name="amount2" type="number16" precision="2" minOccurs="0"/>
        <xs:element name="amount3" type="number16" precision="2" minOccurs="0"/>
        <xs:element name="amount4" type="number16" precision="2" minOccurs="0"/>
        <xs:element name="amount5" type="number16" precision="2" minOccurs="0"/>
        <xs:element name="amount6" type="number16" precision="2" minOccurs="0"/>
        <xs:element name="sub_total" type="number12" precision="4" minOccurs="0"/>
        <xs:element name="gift_cost_total" type="number12" precision="4" minOccurs="0"/>
        <xs:element name="promotion_total" type="number12" precision="4" minOccurs="0"/>
        <xs:element name="total" type="number12" precision="4" minOccurs="0"/>
        <xs:element name="tax_total" type="number12" precision="4" minOccurs="0"/>
        <xs:element name="shipping_total" type="number12" precision="4" minOccurs="0"/>
        <xs:element name="order_uda1" type="varchar210" minOccurs="0"/>
        <xs:element name="order_uda2" type="varchar210" minOccurs="0"/>
        <xs:element name="order_uda3" type="varchar210" minOccurs="0"/>
...
 
 Error encountered:
SODesc_p.xsd:48: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': The attribute 'precision' is not allowed.
SODesc_p.xsd:49: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': The attribute 'precision' is not allowed.
SODesc_p.xsd:50: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': The attribute 'precision' is not allowed.
SODesc_p.xsd:51: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': The attribute 'precision' is not allowed.
SODesc_p.xsd:52: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': The attribute 'precision' is not allowed.
SODesc_p.xsd:53: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': The attribute 'precision' is not allowed.
SODesc_p.xsd:54: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': The attribute 'precision' is not allowed.
SODesc_p.xsd:55: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': The attribute 'precision' is not allowed.
SODesc_p.xsd:56: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': The attribute 'precision' is not allowed.
SODesc_p.xsd:57: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': The attribute 'precision' is not allowed.
SODesc_p.xsd:58: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': The attribute 'precision' is not allowed.
SODesc_p.xsd:59: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': The attribute 'precision' is not allowed.
SODesc_p.xsd:89: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': The attribute 'precision' is not allowed.
SODesc_p.xsd:99: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': The attribute 'precision' is not allowed.
SODesc_p.xsd:100: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': The attribute 'precision' is not allowed.
SODesc_p.xsd:107: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': The attribute 'precision' is not allowed.
SODesc_p.xsd:108: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': The attribute 'precision' is not allowed.
SODesc_p.xsd:109: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': The attribute 'precision' is not allowed.
SODesc_p.xsd:110: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': The attribute 'precision' is not allowed.
SODesc_p.xsd:111: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': The attribute 'precision' is not allowed.
SODesc_p.xsd:112: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': The attribute 'precision' is not allowed.
SODesc_p.xsd:113: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': The attribute 'precision' is not allowed.
SODesc_p.xsd:116: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': The attribute 'precision' is not allowed.
SODesc_p.xsd:117: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': The attribute 'precision' is not allowed.
SODesc_p.xsd:118: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': The attribute 'precision' is not allowed.
SODesc_p.xsd:120: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': The attribute 'precision' is not allowed.
SODesc_p.xsd:121: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': The attribute 'precision' is not allowed.
WXS schema SODesc_p.xsd failed to compile 
 


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