Menu

minInclusive / maxInclusive facet issue on ANON type defs

Help
2015-10-22
2015-10-29
  • James Dattolo

    James Dattolo - 2015-10-22

    It seems that the min and max inclusive facets are not working for ANON classes. If I make an element and set the restriction directly to 0 and 15 respecively on a xs:unsignedByte type and build the class that uses the element, I can set it to 16 and I don't get a facet error so I belive it's real. If I then name the type and then use it in the element I can see the facets being generated and I get the expected facet error on setting an out of range val.

    -Jim

     
    • Peter A. Bigot

      Peter A. Bigot - 2015-10-22

      If you create a small self-contained reproducing case and report it at
      https://github.com/pabigot/pyxb/issues I'll take a look.

      Peter

      On Thu, Oct 22, 2015 at 9:22 AM, James Dattolo jdattolo@users.sf.net
      wrote:

      It seems that the min and max inclusive facets are not working for ANON
      classes. If I make an element and set the restriction directly to 0 and 15
      respecively on a xs:unsignedByte type and build the class that uses the
      element, I can set it to 16 and I don't get a facet error so I belive it's
      real. If I then name the type and then use it in the element I can see the
      facets being generated and I get the expected facet error on setting an out
      of range val.

      -Jim


      minInclusive / maxInclusive facet issue on ANON type defs


      Sent from sourceforge.net because you indicated interest in <
      https://sourceforge.net/p/pyxb/discussion/956708/>

      To unsubscribe from further messages, please visit <
      https://sourceforge.net/auth/subscriptions/>

       
  • James Dattolo

    James Dattolo - 2015-10-29

    it might have been a false alarm, when trying to create an shorter clean example I couldn't get it to do it and something I did while cleaning up my xsds seems to have "fixed" what was going on. I could have had a bug in my xsds that was causing the facet I was spot checking to fail.

     

Log in to post a comment.