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
I experience some unexpected behaviour with attribute pattern matching/validation. I'm running VS Code 1.22.2 with the XML Language Support extension v0.0.1 and JDK 1.8.0_172
Open sample.xml in VS Code (make sure the path to sample.xsd is correct on your system)
Change attribute value to "125". This will output:
Wert '125' ist nicht Facet-gültig in Bezug auf maxInclusive '120.0' für Typ 'FloatType' (cvc-maxInclusive-valid).
Wert '125' des Attributs 'value' bei Element 'test' hat keinen gültigen Typ 'FloatType' (cvc-attribute.3).
as expected.
Change attribute value back to "120". This will remove the error.
Change attribute coord to "(1,3a)". This will output:
Wert '(1,3a)' ist nicht Facet-gültig in Bezug auf Muster '\(\d,\d\)' für Typ 'Vector2Type' (cvc-pattern-valid). Wert '(1,3a)' des Attributs 'coord' bei Element 'test' hat keinen gültigen Typ 'Vector2Type' (cvc-attribute.3).
as expected.
Change attribute coord back to "(1,3)". This will remove the error.
Change attribute coord to "(1,3". This will NOT report any error.
Change attribute value to "120a". This will NOT report any error.
Change attribute coord to "1,3". This will output:
Wert '1,3' ist nicht Facet-gültig in Bezug auf Muster '\(\d,\d\)' für Typ 'Vector2Type' (cvc-pattern-valid).
Wert '1,3' des Attributs 'coord' bei Element 'test' hat keinen gültigen Typ 'Vector2Type' (cvc-attribute.3).
'120a' ist kein gültiger Wert für 'decimal' (cvc-datatype-valid.1.2.1).
Wert '120a' des Attributs 'value' bei Element 'test' hat keinen gültigen Typ 'FloatType' (cvc-attribute.3).
as expected.
Change attribute coord to "(1,3". This will NOT change the error output.
Change attribute coord to "(1,3)". This will output:
Wert '125' ist nicht Facet-gültig in Bezug auf maxInclusive '120.0' für Typ 'FloatType' (cvc-maxInclusive-valid).
Wert '125' des Attributs 'value' bei Element 'test' hat keinen gültigen Typ 'FloatType' (cvc-attribute.3).
as expected.
There seem to be some problems to match patterns including braces. Can you confirm this?
Best regards
Peter Grimsehl
The text was updated successfully, but these errors were encountered:
Hi there,
I experience some unexpected behaviour with attribute pattern matching/validation. I'm running VS Code 1.22.2 with the XML Language Support extension v0.0.1 and JDK 1.8.0_172
Consider the following simple XML schema:
and this XML file, that is based on that schema:
Now I perform the following steps:
There seem to be some problems to match patterns including braces. Can you confirm this?
Best regards
Peter Grimsehl
The text was updated successfully, but these errors were encountered: