Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. xsd:fractionDigits

xsd:fractionDigits

Scheduled Pinned Locked Moved XML / XSL
xmldatabasecomhelptutorial
7 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    Hans Ruck
    wrote on last edited by
    #1

    I write:

    <xsd:simpleType name="money">
    <xsd:restriction base="xsd:decimal">
    <xsd:fractionDigits value="2" />
    </xsd:restriction>
    </xsd:simpleType>

    to define a simple type in a schema file. Then i use <cost>239.00</cost> in an XML file, where cost is of type money. When i try to validate the XML with MSXML 4.0 it generates this error: The element cost has an invalid value according to its data type. If i remove the 9 from 239.00 everything will be ok. What's wrong here? MSXML 4.0? The case comes from an XML-Schema tutorial rechi

    T 2 Replies Last reply
    0
    • H Hans Ruck

      I write:

      <xsd:simpleType name="money">
      <xsd:restriction base="xsd:decimal">
      <xsd:fractionDigits value="2" />
      </xsd:restriction>
      </xsd:simpleType>

      to define a simple type in a schema file. Then i use <cost>239.00</cost> in an XML file, where cost is of type money. When i try to validate the XML with MSXML 4.0 it generates this error: The element cost has an invalid value according to its data type. If i remove the 9 from 239.00 everything will be ok. What's wrong here? MSXML 4.0? The case comes from an XML-Schema tutorial rechi

      T Offline
      T Offline
      The
      wrote on last edited by
      #2

      The answer is xsd:restriction base="xsd:decimal" Be aware :zzz: Be The First

      H 1 Reply Last reply
      0
      • H Hans Ruck

        The wrote: The answer is xsd:restriction base="xsd:decimal" :confused: sounds like :beer: time... rechi

        T Offline
        T Offline
        The
        wrote on last edited by
        #3

        You're right :mad: Be The First

        1 Reply Last reply
        0
        • T The

          The answer is xsd:restriction base="xsd:decimal" Be aware :zzz: Be The First

          H Offline
          H Offline
          Hans Ruck
          wrote on last edited by
          #4

          The wrote: The answer is xsd:restriction base="xsd:decimal" :confused: sounds like :beer: time... rechi

          T 1 Reply Last reply
          0
          • H Hans Ruck

            I write:

            <xsd:simpleType name="money">
            <xsd:restriction base="xsd:decimal">
            <xsd:fractionDigits value="2" />
            </xsd:restriction>
            </xsd:simpleType>

            to define a simple type in a schema file. Then i use <cost>239.00</cost> in an XML file, where cost is of type money. When i try to validate the XML with MSXML 4.0 it generates this error: The element cost has an invalid value according to its data type. If i remove the 9 from 239.00 everything will be ok. What's wrong here? MSXML 4.0? The case comes from an XML-Schema tutorial rechi

            T Offline
            T Offline
            The
            wrote on last edited by
            #5

            Try this : ...

            H 1 Reply Last reply
            0
            • T The

              Try this : ...

              H Offline
              H Offline
              Hans Ruck
              wrote on last edited by
              #6

              I've tried. Same story. But it's not unusual. I had a problem with the pattern facet also. Guess MSXML has to grow up a bit. If you need the sources i can send them to you. rechi

              T 1 Reply Last reply
              0
              • H Hans Ruck

                I've tried. Same story. But it's not unusual. I had a problem with the pattern facet also. Guess MSXML has to grow up a bit. If you need the sources i can send them to you. rechi

                T Offline
                T Offline
                The
                wrote on last edited by
                #7

                Thanks for your kindness , but no thanks :-O Be The First

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups