我必须为 xml 属性之一指定一个限制,我知道我可以使用下面的语法。
但是 minInclusive 和 MaxInclusive 取决于平台。如何指定这样的语法?XSD 是否支持它们?
谢谢,拉姆
Saxon's XSD processor introduces the idea of validation parameters, which you can specify when invoking the schema processor from the command line or from an application - you can't use them in facets like minInclusive and maxInclusive, but you can use them in xs:assert and other places where XPath expressions are used.
It's good to see that this meets a real requirement, though to be honest, until such a feature becomes widely implemented in other processors it would be a little unwise to base your strategy on it.