Hello,
i want to validate by xsd an attribute can contain a float type or a word "exist". after search in the net i found this solution(w3schools.com/xml/schema_facets.asp) but it does not worked when i add this pattern:
how to fix that ?
Amira BedhiafiPosted May 6, 2025, 8:26 AM
To accept both a float and the word "exist", treat the value as a
string, then restrict with a pattern that allows both possibilities :