Subject: | totalFracDigits still remains somewhere |
XML::Compile::Translate (from current package XML::Compile 1.19)
contains this code (line#518):
if(defined $facets{totalDigits} && defined $facets{fractionDigits})
{ my $td = delete $facets{totalDigits};
my $fd = delete $facets{fractionDigits};
$facets{totalFracDigits} = [$td, $fd];
# ^^^^^^^^^^^^^^^^^^^^
}
When I have an XSD containing restriction with both totalDigits and
fractionDigits, as in this example:
<xs:restriction base="xs:decimal">
<xs:totalDigits value="13" />
<xs:fractionDigits value="2" />
</xs:restriction>
XML::Compile::Translate turns these two facets into an "totalFracDigits"
facet. But as there is no support for "totalFracDigits" facet in
XML::Compile::Schema::BuiltInFacets, all I get is this exception when
trying to use such XSD:
error: facet totalFracDigits not implemented at prem1/mtbr#facet
Probably if XML::Compile::Translate would not make this transformation
of totalDigits + fractionDigits into totalFracDigits, everything would
be OK?