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:
Code
how to fix that ?
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 ?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Amira BedhiafiRank #601 · 4K reputationPosted May 6, 2025, 4:26 AM EDT
To accept both a float and the word "exist", treat the value as a
string, then restrict with a pattern that allows both possibilities :