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

Best Practice - Character sets

  • From: Paul Spencer <paul.spencer@b...>
  • To: Xml-Dev <xml-dev@l...>
  • Date: Thu, 12 Oct 2000 09:27:01 +0100

best character set
Perhaps I shouldn't be raising a new "best practice" issue before I have
caught up with the rest, but this one has really been bugging me.

You have probably picked up by now that I am doing schema work for the UK
Government. We have a number of re-usable complex data types, and naturally,
we want people to re-use them.

The problem we have is that we do not want to restrict the character set for
re-usable types. For example, we have to accept text in English and Welsh,
but some government departments might need to support all European
languages, and others might need to support non-roman character sets.

So now we have, say, a Name type that has no strict character set
restrictions. But say department A cannot accept a German name with an
umlaut. Given that the name is a complex type with sub-elements (from
memory: Title?, Forename*, Surname, Suffix?, PreferredName?), how do we
restrict the character set in Dept A's schemas? I can't see an alternative
to deriving each sub-element separately, in which case, I might as well
define a new simple type (a:RestrictedString) and redefine the complex type
from scratch for Department A.

Thoughts?

Paul Spencer
Author: XML Design and Implementation (Wrox Press)
Co-author: Beginning XML (Wrox Press)
Boynings Consulting - Delivering XML to industry and government
http://www.boynings.co.uk/


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.