4 ms·
XML tried to do that with the anyURI data type In XML/XSD 1.1 they gave up on it, and consider any string as valid anyURI I tried to implement the old XML ty
by benibela 6y ago
XML tried to do that with the anyURI data type
In XML/XSD 1.1 they gave up on it, and consider any string as valid anyURI
I tried to implement the old XML types. I built a huge regex from the RFC, but it did seem to cover all cases
- kstenerud 6y agoTBH at this point it doesn't really matter what the URI specifications say. Somehow we're able to stuff our URLs into our browsers, web pages, package managers, REST APIs, mail clients etc and manage to get it working. It's useful enough that everyone uses it, so I'd be a fool to get stuck on the "correctness" of their specs. CTE uses the double-quote as a delimiter, so as long as the contents are percent-escaped for double-quote and your language's URL parser says "cool", it's acceptable.