Case sensitivity
David Faure
dfaure at klaralvdalens-datakonsult.se
Tue Jun 15 12:11:13 CEST 2004
On Tuesday 15 June 2004 12:04, Bo Thorsen wrote:
> Can such a schema handle allowing unknown tags? This is necessary, since
> clients are allowed to have their own tags, and all others are required
> to preserve them.
Yes.
What we did for the Office XML spec was to provide a way to validate
"strict" or "non-strict". The "strict" RelaxNG schema has all the known tags
(and barfs on unknown ones), and the "non-strict" schema (*) allows unknown
tags where we want to allow them.
(*) the non-strict schema isn't even a duplication of the other one, it simply
includes it and redefines a few elements to "allow any child". RelaxNG is very cool :)
--
David Faure -- faure at kde.org, dfaure at klaralvdalens-datakonsult.se
Qt/KDE/KOffice developer
Klarälvdalens Datakonsult AB, Platform-independent software solutions
More information about the format
mailing list