Missing element before end-tag #4

Closed
arcusfelis opened this Issue Aug 25, 2011 · 4 comments

Comments

Projects
None yet
2 participants
Contributor

arcusfelis commented Aug 25, 2011

I have an problem with erlsom:scan(BinXml, Model):

** exception error: no match of right hand side value {error,[{exception,{error,"Missing element before end-tag: collation"}},
{stack,[collation,'collations/SEQ1',collations,'ldml/SEQ1',
ldml]},
{received,{endElement,[],"collation",[]}}]}

minOccurs, maxOccurs have wrong values in a model.
minOccurs, maxOccurs are "0" and "undefined" in xsd, but they are "1" and "1" in a model.

XML:
https://gist.github.com/1171290

XSD:
https://gist.github.com/1171271

Model:
https://gist.github.com/1171281

Owner

willemdj commented Aug 26, 2011

I'll have a look (but probably not in the next few days).

It would be helpfull to have a complete (self contained, preferably minimal...) XSD that triggers this error. Could you provide something like that? You can send it to me directly if you prefer (you can find my email address in the source code).

Contributor

arcusfelis commented Aug 26, 2011

This xsd was converted from dtd throw trang.
It's size is 200Kb, so I try to shrink it.

Owner

willemdj commented Aug 26, 2011

Ok, thanks.

On Fri, Aug 26, 2011 at 9:23 AM, freeakk <
reply@reply.github.com>wrote:

I collected minimal test data.

Bad xsd:
https://gist.github.com/1172890

Good xsd:
https://gist.github.com/1172893

xml:
https://gist.github.com/1172894

error:
https://gist.github.com/1172897

Reply to this email directly or view it on GitHub:
#4 (comment)

willemdj closed this Sep 4, 2011

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