decimal-1.xml 661 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?xml version="1.0"?>
  2. <!-- test the values:
  3. - BAD
  4. + BAD
  5. 1.
  6. .1
  7. 0.
  8. .0
  9. - 1 BAD
  10. + 1 BAD
  11. . BAD
  12. 000 !
  13. -->
  14. <foo
  15. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  16. xsi:noNamespaceSchemaLocation="decimal-1.xsd">
  17. <!-- The good ones. -->
  18. <val> 0. </val>
  19. <val> .0 </val>
  20. <val> .10 </val>
  21. <val> 01. </val>
  22. <val> 000 </val>
  23. <val>123456789012345678</val>
  24. <val>-123456789012345678</val>
  25. <val>0.123456789012345678</val>
  26. <val>-0.123456789012345678</val>
  27. <!-- The bad ones. -->
  28. <val>.</val>
  29. <val>-</val>
  30. <val>+</val>
  31. <val>*</val>
  32. <val>- 1</val>
  33. <val>+ 1</val>
  34. <val>+ 0</val>
  35. <val>- 0</val>
  36. <!--ref>0.0</ref-->
  37. </foo>