itplr-kosit / validator

Validates XML documents with XML Schema and Schematron
Apache License 2.0
80 stars 42 forks source link

`namespace` element content needs trimming #56

Closed christian-schlichtherle closed 4 years ago

christian-schlichtherle commented 4 years ago

First of all, thanks for this awesome project!

I think I found a bug in the scenarios.xml processing. The following works:

    <namespace prefix="ram">urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100</namespace>

However, the following results in a mismatch:

    <namespace prefix="ram">urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100
    </namespace>

I guess the element content needs trimming. I haven't tested where else in the XML this would break.

apenski commented 4 years ago

yes, the missing trim causes errors. I'll fix this for the next release

apenski commented 4 years ago

fixed in master