这是 xmllint 告诉我的内容:
'1024663.719008264462809917' is not a valid value of the atomic type 'xs:decimal'
是否有一些默认的有效位置数?不应该根据this .
更新:使用 xmllint 进行实验,小数点后 17 位有效,但小数点 18 位无效。
最佳答案
All ·minimally conforming· processors ·must· support decimal numbers with a minimum of 18 decimal digits (i.e., with a ·totalDigits· of 18). However, ·minimally conforming· processors ·may· set an application-defined limit on the maximum number of decimal digits they are prepared to support, in which case that application-defined maximum number ·must· be clearly documented.
因此,虽然理论上数据类型允许任意精度的十进制数,但特定处理器可以限制其准备支持的值的范围。
关于xml - 这真的不是有效的 xs :decimal?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26301369/