Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

there is no totalDigits suport #71

Closed
andrewkoltsov opened this issue Mar 24, 2011 · 3 comments
Closed

there is no totalDigits suport #71

andrewkoltsov opened this issue Mar 24, 2011 · 3 comments

Comments

@andrewkoltsov
Copy link

there is no http://www.w3.org/TR/xmlschema-2/#rf-totalDigits support

@plq
Copy link
Member

plq commented May 20, 2011

nice observation. patches are welcome.

@Konjkov
Copy link

Konjkov commented Dec 1, 2012

I think patch neded for function
def Tget_range_restriction_tag(T)
in
interface/xml_schema/model.py
like this

        if cls.Attributes.total_digits != T.Attributes.total_digits:
            min_l = etree.SubElement(restriction, '{%s}totalDigits' % _ns_xs)
            min_l.set('value', cls.to_string(cls.Attributes.total_digits))

but maybe in some other places, I don't know yet.

@plq
Copy link
Member

plq commented Dec 3, 2012

Hi Konjkov,

If you'd be willing to write a test for your use case, I can implement the functionality.

Best,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants