Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

What is the best way to define the number of decimals in a schema?

Posted on 2013-10-22
1
Medium Priority
?
137 Views
Last Modified: 2013-10-28
I'm using xmlspy. Do I use facets and paterns to set the number of decimal places? If yes, can I get an example? Thx!
0
Comment
Question by:BillTr
1 Comment
 
LVL 60

Accepted Solution

by:
Geert Bormans earned 400 total points
ID: 39592855
I think you need a regex

<xsd:simpleType name="exactlyTwoAfterDecimal">
    <xsd:restriction base="xsd:token">
        <xsd:pattern value="-?\d+\.\d\d"/>
    </xsd:restriction>
</xsd:simpleType>
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
Many times as a report developer I've been asked to display normalized data such as three rows with values Jack, Joe, and Bob as a single comma-separated string such as 'Jack, Joe, Bob', and vice versa.  Here's how to do it. 
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Loops Section Overview
Suggested Courses

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question