Menu

exipg grammar generation question

Get Help
chompsky01
2014-04-21
2014-04-22
  • chompsky01

    chompsky01 - 2014-04-21

    Running into an issue while attempting to use exipg on an EXI encoded schema, traced it back to the following:

    <xs:simpleType name="lrrpAngle">
    <xs:union memberTypes="intAngle floatAngle"/>
    </xs:simpleType>

    where intAngle is

    <xs:simpleType name="intAngle">
    <xs:restriction base="xs:unaignedByte">
    <xs:maxInclusive value="180"/>
    </xs:restriction>
    </xs:simpleType>

    and floatAngle is

    <xs:simpleType name="floatAngle">
    <xs:restriction base="xs:float">
    <xs:minInclusive value="0"/>
    <xs:maxInclusive value="180"/>
    </xs:restriction>
    </xs:simpleType>

    This results in a chain of EXIP_NOT_IMPLEMENTED_YET errors in treeTableToGrammars.c and grammarGenerator.c via the TRY macros that disappears when I comment out the "lrrpAngle" definition.

    From the docs and discussion, it appears that unions are supposed to be supported, and simply encoded as string values, but in this case that does not appear to work. Could it be the min/max restrictions causing the errors, and, if so, is there a way to bypass those?

     
  • Rumen Kyusakov

    Rumen Kyusakov - 2014-04-22

    Hi,

    I thought there is a bug in the union handling code and actually spend some time to try the schema snippets you posted.
    Everything is working fine with v0.5.3 (see the attachments)

    I would appreciate if you in the future post detailed bug reports at https://sourceforge.net/p/exip/bugs/

    From what you shared I am unable to figure out why you get this error.
    Both unions and min/max restrictions should work.

    Rumen

     

Anonymous
Anonymous

Add attachments
Cancel