You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
I don't have a validation problem when I validate with a schema-validating tool like Saxon, or with the built-in Eclipse XML validator.
What is the "plugin" that you are using? Is it XMLSpy? If not, I wonder if XMLSpy throws a validation error on this.
There are additional examples of the use of <qti-stylesheet ... type="text/css" /> in QTI Conformance and I've never encountered this problem (again, using Saxon or Eclipse), so I don't know what to make of this.
That regexp uses character subtraction which a lot of regexp libraries don't support. That might explain why it woks in some tools and not in others.
It might be useful to see if the regexp could be rewritten to not make use of character subtraction. Regexp Character Subtraction
The sample provided on the github repository fails the schema validation. This is because there is a
MimeTypeDType
validation on thetype
attribute ofqti-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:
qti-stylesheet
element) Eg; https://github.com/1EdTech/qti-examples/blob/master/qtiv3-examples/packaging/BBQsTest/id-be3cd3bdd3d4/order-mountains.xmlThe text was updated successfully, but these errors were encountered: