Jun. 27, 2018 10:15 AM EDT Reads: 5,264
| By XMLDEV Mailing List: An Email Discussion Forum for W3C XML technologies and XML development trends. | Article Rating: |
|
| March 6, 2009 11:59 AM EST | Reads: |
622 |
The best advice I have comes from Dr. Charles Goldfarb: Conserve nouns. It's a challenge of resolution over reference space complexity. Even if processed, humans use the output. As in behavioral programming (interactive document design vs compounding), program back from the end states of the uses of the document. Are the uses the reason for compounding? IOW, is the compounding a result of interactive screen design or printed forms? Why compounds? len From: Costello, Roger L. [mailto:[email protected]] Hi Folks, What guidelines would you recommend to someone who: - wants to create an XML vocabulary, - that will be combined with other XML vocabularies to create a compound instance document, - which will be processed by applications? In other words, what XML designs will facilitate the creation and processing of compound documents? Below is a list of guidelines that I have come up with. Are there other guidelines that you recommend? ---------------------------------------------- GUIDELINES FOR FACILITATING THE CREATION AND PROCESSING OF COMPOUND DOCUMENTS ---------------------------------------------- Namespaces are key to creating compound documents that can be effectively processed. Applications can partition compound documents along the lines identified by namespaces, thus enabling module-specific processing. 1. When designing a schema, associate the XML vocabulary it creates with a namespace. Thus the first guideline is to identify each XML vocabulary via a namespace. Here's an example of a Book XML vocabulary identified by the http://www.book.org namespace: <Book xmlns="http://www.book.org"> <Title>Illusions</Title> <Author>Richard Bach</Author> <Date>1977</Date> <ISBN>0-440-34319-4</ISBN> <Publisher>Dell Publishing Co.</Publisher> </Book> Conversely, do not identify the XML vocabulary by embedding a unique identifier inside an element or attribute. Here's an example of the Book XML vocabulary identified using a GUID embedded inside an element: <Book> <Identifier>fc48ee30-0a6b-11de-8c30-0800200c9a66</Identifier> <Title>Illusions</Title> <Author>Richard Bach</Author> <Date>1977</Date> <ISBN>0-440-34319-4</ISBN> <Publisher>Dell Publishing Co.</Publisher> </Book> 2. If the schema language used to create the XML vocabulary provides the option of namespace-qualifying all elements or namespace-qualifying only global elements, choose the former. For example, the W3C XML Schema language allows you to specify "all elements must be qualified in the instance document" by setting: elementFormDefault="qualified" Conversely, it allows you to specify "only qualify globally declared elements in the instance document" by setting: elementFormDefault="unqualified" Don't use the latter as it destroys the value of namespaces. Instead, use the former as it maximizes the value of namespaces. 3. Use standard filename suffixes: .xsd (W3C XML Schema), .rng (ISO RELAX NG), .sch (ISO Schematron), .dtd (W3C DTD). Although it is technically accurate to, say, suffix an XML Schema file with .xml, it is preferable to use .xsd as the latter enables applications to more easily recognize an XML vocabulary's schema language. 4. Design your schema maximizing the use of globally declared elements. Each globally declared component is a potential compound document component. For example, with this schema both BookStore and Book can be used as a component in a compound document: <element name="BookStore"> <complexType> <element ref="Book" maxOccurs="unbounded" /> </complexType> </element> <element name="Book"> ... </element> Conversely, this schema only allows BookStore to be used as a component in a compound document: <element name="BookStore"> <complexType> <element name="Book" maxOccurs="unbounded"> ... </element> </complexType> </element> What else would you add to this list? /Roger _______________________________________________________________________ XML-DEV is a publicly archived, unmoderated list hosted by OASIS to support XML implementation and development. To minimize spam in the archives, you must subscribe before posting. [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/ Or unsubscribe: [email protected] subscribe: [email protected] List archive: http://lists.xml.org/archives/xml-dev/ List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
CIO, CTO & Developer Resources
Read the original blog entry...
Published March 6, 2009 Reads 622
Copyright © 2009 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
IoT & Smart Cities Stories
By Yeshim Deniz Jun. 27, 2018 10:00 AM EDT Reads: 4,024 |
By Elizabeth White Jun. 27, 2018 09:45 AM EDT Reads: 2,278 |
By Elizabeth White IoT is rapidly becoming mainstream as more and more investments are made into the platforms and technology. As this movement continues to expand and gain momentum it creates a massive wall of noise that can be difficult to sift through. Unfortunately, this inevitably makes IoT less approachable for people to get started with and can hamper efforts to integrate this key technology into your own portfolio. There are so many connected products already in place today with many hundreds more on the h...Jun. 27, 2018 09:15 AM EDT Reads: 2,058 |
By Elizabeth White SYS-CON Events announced today that IoT Global Network has been named “Media Sponsor” of SYS-CON's @ThingsExpo, which will take place on June 6–8, 2017, at the Javits Center in New York City, NY. The IoT Global Network is a platform where you can connect with industry experts and network across the IoT community to build the successful IoT business of the future.Jun. 27, 2018 07:45 AM EDT Reads: 4,935 |
By Yeshim Deniz Jun. 27, 2018 06:45 AM EDT Reads: 3,210 |
By Pat Romanski A valuable conference experience generates new contacts, sales leads, potential strategic partners and potential investors; helps gather competitive intelligence and even provides inspiration for new products and services. Conference Guru works with conference organizers to pass great deals to great conferences, helping you discover new conferences and increase your return on investment.Jun. 27, 2018 02:00 AM EDT Reads: 4,643 |
By Elizabeth White Jun. 26, 2018 10:45 PM EDT Reads: 2,805 |
By Yeshim Deniz Jun. 26, 2018 06:30 PM EDT Reads: 3,178 |
By Liz McMillan SYS-CON Events announced today that CrowdReviews.com has been named “Media Sponsor” of SYS-CON's 22nd International Cloud Expo, which will take place on June 5–7, 2018, at the Javits Center in New York City, NY.
CrowdReviews.com is a transparent online platform for determining which products and services are the best based on the opinion of the crowd. The crowd consists of Internet users that have experienced products and services first-hand and have an interest in letting other potential buye...Jun. 26, 2018 05:45 PM EDT Reads: 4,336 |


IoT is rapidly becoming mainstream as more and more investments are made into the platforms and technology. As this movement continues to expand and gain momentum it creates a massive wall of noise that can be difficult to sift through. Unfortunately, this inevitably makes IoT less approachable for people to get started with and can hamper efforts to integrate this key technology into your own portfolio. There are so many connected products already in place today with many hundreds more on the h...
SYS-CON Events announced today that IoT Global Network has been named “Media Sponsor” of SYS-CON's @ThingsExpo, which will take place on June 6–8, 2017, at the Javits Center in New York City, NY. The IoT Global Network is a platform where you can connect with industry experts and network across the IoT community to build the successful IoT business of the future.
A valuable conference experience generates new contacts, sales leads, potential strategic partners and potential investors; helps gather competitive intelligence and even provides inspiration for new products and services. Conference Guru works with conference organizers to pass great deals to great conferences, helping you discover new conferences and increase your return on investment.
SYS-CON Events announced today that CrowdReviews.com has been named “Media Sponsor” of SYS-CON's 22nd International Cloud Expo, which will take place on June 5–7, 2018, at the Javits Center in New York City, NY.
CrowdReviews.com is a transparent online platform for determining which products and services are the best based on the opinion of the crowd. The crowd consists of Internet users that have experienced products and services first-hand and have an interest in letting other potential buye...

















