Welcome!

Industrial IoT Authors: Elizabeth White, Stackify Blog, Yeshim Deniz, SmartBear Blog, Liz McMillan

RSS Feed Item

RE: XML Design Guidelines for Facilitating the Creation and Pr

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


Read the original blog entry...

IoT & Smart Cities Stories
DXWorldEXPO | CloudEXPO are the world's most influential, independent events where Cloud Computing was coined and where technology buyers and vendors meet to experience and discuss the big picture of Digital Transformation and all of the strategies, tactics, and tools they need to realize their goals. Sponsors of DXWorldEXPO | CloudEXPO benefit from unmatched branding, profile building and lead generation opportunities.
Andrew Keys is Co-Founder of ConsenSys Enterprise. He comes to ConsenSys Enterprise with capital markets, technology and entrepreneurial experience. Previously, he worked for UBS investment bank in equities analysis. Later, he was responsible for the creation and distribution of life settlement products to hedge funds and investment banks. After, he co-founded a revenue cycle management company where he learned about Bitcoin and eventually Ethereal. Andrew's role at ConsenSys Enterprise is a mul...
Bill Schmarzo, Tech Chair of "Big Data | Analytics" of upcoming CloudEXPO | DXWorldEXPO New York (November 12-13, 2018, New York City) today announced the outline and schedule of the track. "The track has been designed in experience/degree order," said Schmarzo. "So, that folks who attend the entire track can leave the conference with some of the skills necessary to get their work done when they get back to their offices. It actually ties back to some work that I'm doing at the University of San...
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.
To Really Work for Enterprises, MultiCloud Adoption Requires Far Better and Inclusive Cloud Monitoring and Cost Management … But How? Overwhelmingly, even as enterprises have adopted cloud computing and are expanding to multi-cloud computing, IT leaders remain concerned about how to monitor, manage and control costs across hybrid and multi-cloud deployments. It’s clear that traditional IT monitoring and management approaches, designed after all for on-premises data centers, are falling short in ...
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.
Poor data quality and analytics drive down business value. In fact, Gartner estimated that the average financial impact of poor data quality on organizations is $9.7 million per year. But bad data is much more than a cost center. By eroding trust in information, analytics and the business decisions based on these, it is a serious impediment to digital transformation.
Founded in 2000, Chetu Inc. is a global provider of customized software development solutions and IT staff augmentation services for software technology providers. By providing clients with unparalleled niche technology expertise and industry experience, Chetu has become the premiere long-term, back-end software development partner for start-ups, SMBs, and Fortune 500 companies. Chetu is headquartered in Plantation, Florida, with thirteen offices throughout the U.S. and abroad.
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...