First page Back Continue Last page Overview Graphics
C'è un bug
-
~> perl compile.pl
-
error: string `1130' does not match pattern (?-xism:^(?:[0-9]{1,13}\.[0-9]{0,2})$) at {http://www.ebinterface.at/schema/2p0/}Invoice/Tax/VAT/Item/TaxedAmount#facet
-
nel XML e 1130.00, ma XML::Compile lo vede come 1130, che non è valido:
-
Problemo
-
<xs:simpleType name="DecimalType">
<xs:restriction base="xs:decimal">
<xs:pattern value="[0-9]{1,13}\.[0-9]{0,2}"/>
</xs:restriction>
-
Soluzione
-
[rt.cpan.org #39224] Bug with decimal numbers ending in .00
-
<xs:simpleType name="DecimalType">
<xs:restriction base="xs:decimal">
<xs:pattern value="[0-9]{1,13}(\.[0-9]{0,2})?"/>
</xs:restriction>