[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Terminology: Maximum Constraint? Maximal Constraint? StrongestConstraint

  • From: "Costello, Roger L." <costello@mitre.org>
  • To: "xml-dev@lists.xml.org" <xml-dev@lists.xml.org>
  • Date: Fri, 5 Feb 2010 06:32:12 -0500

Terminology: Maximum Constraint? Maximal Constraint? StrongestConstraint
Hi Folks,

I am seeking the correct (or best) terminology.

Suppose that in my business I need to do things with person last names. That manifests in a requirement for a <last-name> element. So, I create an XML Schema that declares a last-name element, e.g.,

      <element name="last-name" type="string" />

But, that declaration is not acceptable. I do not want the value of <last-name> to be any unbounded string. I want to constrain the value of <last-name>.

I consult the experts and they inform that, for my business, last names should not be longer than 26 characters, and they should only consist of the characters a-z, A-Z, hyphen, and apostrophe.

So, here is how I declare <last-name>:

      <element name="last-name">
          <simpleType>
              <restriction base="string">
                  <maxLength value="26" />
                  <pattern value="[a-zA-Z'-]+" />
              </restriction>
          </simpleType>
      </element>

Thus, rather than allowing the value of <last-name> to be any string, I have restricted the values. I restricted <last-name> to the greatest extent possible. That is, if I were to set maxLength to less than 26, to, say, 25, then my element declaration would reject some legitimate last name values. Or, if I were to omit, say, the apostrophe from the pattern facet then some legitimate values would be rejected.

Okay, now to my terminology questions.

QUESTION #1

I constrained <last-name> to the greatest extent possible, such that any tighter constraints would break rules of my business. What is the correct (or best) term for "the greatest extent possible?" How would you fill in this blank?

      ________ constraint

Here are some terms that came to mind:

      Maximum constraint
      Maximal constraint
      Tightest constraint
      Strongest constraint

Which is the correct (or best) term: maximum, maximal, tightest, or strongest? Or, perhaps there's another term that I haven't considered?


QUESTION #2

My XML Schema declaration expresses the limitations on the value of this element:

      <last-name>____________</last-name>

What is the correct (or best) term for "limitations?" How would you fill in this blank?

      ________ on the value

Here are some terms that came to mind:

      Constraints on the value
      Restrictions on the value
      Limitations on the value

Which is the correct (or best) term: constraints, restrictions, or limitations? Or, perhaps there's another term that I haven't considered?


QUESTION #3

Are constraints *applied* to elements? Or, are constraints *imposed* on elements? How would you fill in the blank?

      ________ constraints

Here are some terms that came to mind:

      Apply constraints
      Impose constraints

Which is the correct (or best) term: apply or impose? Or, perhaps there's another term that I haven't considered?


/Roger


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.