-
Notifications
You must be signed in to change notification settings - Fork 18
Description
The sample provided on the github repository fails the schema validation. This is because there is a MimeTypeDType validation on the type attribute of qti-stylesheet .
The regular expression being used is [\p{IsBasicLatin}-[()<>@,;:\\"/\[\]?=]]+/[\p{IsBasicLatin}-[()<>@,;:\\"/\[\]?=]]+
I tried by updating the regex formula and then validating XML. That validates the XML successfully.
Sample item : https://github.com/1EdTech/qti-examples/blob/master/qtiv3-examples/packaging/BBQsTest/id-be3cd3bdd3d4/order-mountains.xml
Specified schema definition: https://purl.imsglobal.org/spec/qti/v3p0/schema/xsd/imsqti_asiv3p0_v1p0.xsd
Failing xml:
<qti-stylesheet href="flickrMash.css" type="text/css"/>

Is the regular expression wrong or am I missing something?
Steps to reproduce:
- Open the item xml file (file should contain the
qti-stylesheetelement) Eg; https://github.com/1EdTech/qti-examples/blob/master/qtiv3-examples/packaging/BBQsTest/id-be3cd3bdd3d4/order-mountains.xml - Validate the XML using a plugin
- A validation message is displayed
