SlideShare a Scribd company logo
1 of 1
Download to read offline
Best Practices in a Nutshell
Below is a very brief synopsis of the Best Practice guidelines. Each of the items will be
elaborated upon in great detail in the following guidelines.
1.   Make targetNamespace the default namespace.
2.   Make two identical copies of all your schemas, where the copies differ only in the value of
     elementFormDefault (in one copy set elementFormDefault=“qualified”, in the other copy
     set elementFormDefault=“unqualified”)
3.   Uniquely identify all schema components with the id attribute. Note: this is NOT the same
     thing as creating an element with an attribute that has an ID-datatype. Rather, what is being
     referred to here is the capability to associate an id attribute with every schema component
     (types, elements, attributes, etc). Here are some examples:
            <xsd:element name=“elevation” type=“xsd:integer”
                   id=“flight:aircraft:elevation”/>
            <xsd:complexType name=“publication” id=“wrox:book:publication”/>

This provides a finer level of granularity for identifying components than does namespaces,
which provides only a course level of granularity.
4.   Postpone decisions as long as possible.
4.1 Postpone binding schema components to a namespace.
     Corrollary: Don’t give schema’s a targetNamespace. Let schemas which <include> your no-
     namespace schema supply a targetNamespace, one that makes sense to the <include>ing
     schema
4.2 Postpone binding a type reference to an implementation, i.e., use dangling types.
     Corrollary: In an <import> element the schemaLocation attribute is optional. Don’t use it.
5.   Create extensible schemas.
5.1 Recognize your limitations as a schema designer, i.e, be smart enough to know that you’re
    not smart enough to anticipate all the varieties of data that an instance document author
    might need to use in creating an instance document.
     Corrollary: use the <any> element.
6.   Recognize that with XML Schemas you will not be able to express all your business rules.
     Express those business rules using either XSLT or Schematron.




                                                 3

More Related Content

Viewers also liked

IBM India - HR practices
IBM India - HR practicesIBM India - HR practices
IBM India - HR practices
nehajain248
 
HR PRACTICES IN RENATA LIMITED
HR PRACTICES IN RENATA LIMITEDHR PRACTICES IN RENATA LIMITED
HR PRACTICES IN RENATA LIMITED
Ariful ISLAM
 
Top 10 Best Practices for Human Resources in 2012
Top 10 Best Practices for Human Resources in 2012Top 10 Best Practices for Human Resources in 2012
Top 10 Best Practices for Human Resources in 2012
aaronsedwards
 
Vodafone HR Practices - A study
Vodafone HR Practices - A studyVodafone HR Practices - A study
Vodafone HR Practices - A study
Mayank Mohan
 
Best practice model
Best practice modelBest practice model
Best practice model
Saad Afridi
 
Innovative Hr Practices Ppt
Innovative Hr Practices PptInnovative Hr Practices Ppt
Innovative Hr Practices Ppt
Karthik Shakthi
 
HR practices in infosys Ltd
HR practices in infosys LtdHR practices in infosys Ltd
HR practices in infosys Ltd
Leesa Shah
 
HR practices in infosys
HR practices in infosysHR practices in infosys
HR practices in infosys
Bhasker Rajan
 
HR Practices at HUL
HR Practices at HUL HR Practices at HUL
HR Practices at HUL
Madhav Desai
 

Viewers also liked (20)

hr practices at ntpc ltd
hr practices at ntpc ltdhr practices at ntpc ltd
hr practices at ntpc ltd
 
Hr practices of telecom sector
Hr practices of telecom sectorHr practices of telecom sector
Hr practices of telecom sector
 
IBM India - HR practices
IBM India - HR practicesIBM India - HR practices
IBM India - HR practices
 
Bit torrent ppt
Bit torrent pptBit torrent ppt
Bit torrent ppt
 
HR PRACTICES IN RENATA LIMITED
HR PRACTICES IN RENATA LIMITEDHR PRACTICES IN RENATA LIMITED
HR PRACTICES IN RENATA LIMITED
 
Top 10 Best Practices for Human Resources in 2012
Top 10 Best Practices for Human Resources in 2012Top 10 Best Practices for Human Resources in 2012
Top 10 Best Practices for Human Resources in 2012
 
Vodafone HR Practices - A study
Vodafone HR Practices - A studyVodafone HR Practices - A study
Vodafone HR Practices - A study
 
Hr Practices
Hr PracticesHr Practices
Hr Practices
 
Hr practices in ibm india
Hr practices in ibm indiaHr practices in ibm india
Hr practices in ibm india
 
Best HR Practices
Best HR PracticesBest HR Practices
Best HR Practices
 
Best hr practices
Best hr practicesBest hr practices
Best hr practices
 
Innovative HR Practices that make a Difference
Innovative HR Practices that make a DifferenceInnovative HR Practices that make a Difference
Innovative HR Practices that make a Difference
 
Best practice model
Best practice modelBest practice model
Best practice model
 
HR Practices in Fedex
HR Practices in FedexHR Practices in Fedex
HR Practices in Fedex
 
Innovative Hr Practices Ppt
Innovative Hr Practices PptInnovative Hr Practices Ppt
Innovative Hr Practices Ppt
 
A study of hr practices in ITC
A study of  hr practices in ITCA study of  hr practices in ITC
A study of hr practices in ITC
 
Human resource policy of hul
Human resource policy of hulHuman resource policy of hul
Human resource policy of hul
 
HR practices in infosys Ltd
HR practices in infosys LtdHR practices in infosys Ltd
HR practices in infosys Ltd
 
HR practices in infosys
HR practices in infosysHR practices in infosys
HR practices in infosys
 
HR Practices at HUL
HR Practices at HUL HR Practices at HUL
HR Practices at HUL
 

Similar to Best Practice In Nutshell

Xml For Dummies Chapter 10 Building A Custom Xml Schema it-slideshares.blog...
Xml For Dummies   Chapter 10 Building A Custom Xml Schema it-slideshares.blog...Xml For Dummies   Chapter 10 Building A Custom Xml Schema it-slideshares.blog...
Xml For Dummies Chapter 10 Building A Custom Xml Schema it-slideshares.blog...
phanleson
 
Max Dynamic Capability
Max Dynamic CapabilityMax Dynamic Capability
Max Dynamic Capability
LiquidHub
 
Debugging and Error handling
Debugging and Error handlingDebugging and Error handling
Debugging and Error handling
Suite Solutions
 
ActionScript 3.0 Fundamentals
ActionScript 3.0 FundamentalsActionScript 3.0 Fundamentals
ActionScript 3.0 Fundamentals
Saurabh Narula
 

Similar to Best Practice In Nutshell (20)

Xml For Dummies Chapter 10 Building A Custom Xml Schema it-slideshares.blog...
Xml For Dummies   Chapter 10 Building A Custom Xml Schema it-slideshares.blog...Xml For Dummies   Chapter 10 Building A Custom Xml Schema it-slideshares.blog...
Xml For Dummies Chapter 10 Building A Custom Xml Schema it-slideshares.blog...
 
Coding standards
Coding standards Coding standards
Coding standards
 
Ruby on Rails: Coding Guideline
Ruby on Rails: Coding GuidelineRuby on Rails: Coding Guideline
Ruby on Rails: Coding Guideline
 
Max Dynamic Capability
Max Dynamic CapabilityMax Dynamic Capability
Max Dynamic Capability
 
Debugging and Error handling
Debugging and Error handlingDebugging and Error handling
Debugging and Error handling
 
RomaFramework Tutorial Basics
RomaFramework Tutorial BasicsRomaFramework Tutorial Basics
RomaFramework Tutorial Basics
 
ActionScript 3.0 Fundamentals
ActionScript 3.0 FundamentalsActionScript 3.0 Fundamentals
ActionScript 3.0 Fundamentals
 
The Naked Bundle - Tryout
The Naked Bundle - TryoutThe Naked Bundle - Tryout
The Naked Bundle - Tryout
 
The Naked Bundle - Symfony Live London 2014
The Naked Bundle - Symfony Live London 2014The Naked Bundle - Symfony Live London 2014
The Naked Bundle - Symfony Live London 2014
 
Mastering the Lightning Framework - Part 1
Mastering the Lightning Framework - Part 1Mastering the Lightning Framework - Part 1
Mastering the Lightning Framework - Part 1
 
Coding standard
Coding standardCoding standard
Coding standard
 
Play Template Engine Based On Scala
Play Template Engine Based On ScalaPlay Template Engine Based On Scala
Play Template Engine Based On Scala
 
Readme
ReadmeReadme
Readme
 
Aem best practices
Aem best practicesAem best practices
Aem best practices
 
Ibm
IbmIbm
Ibm
 
Knockoutjs – components
Knockoutjs – componentsKnockoutjs – components
Knockoutjs – components
 
Basic JavaScript Tutorial
Basic JavaScript TutorialBasic JavaScript Tutorial
Basic JavaScript Tutorial
 
Developing Lightning Components for Communities.pptx
Developing Lightning Components for Communities.pptxDeveloping Lightning Components for Communities.pptx
Developing Lightning Components for Communities.pptx
 
Jazz
JazzJazz
Jazz
 
Web technologies part-2
Web technologies part-2Web technologies part-2
Web technologies part-2
 

More from LiquidHub

Sharepoint 2013 upgrade process
Sharepoint 2013 upgrade processSharepoint 2013 upgrade process
Sharepoint 2013 upgrade process
LiquidHub
 
Share point 2013
Share point 2013Share point 2013
Share point 2013
LiquidHub
 
Share point 2010-uiimprovements
Share point 2010-uiimprovementsShare point 2010-uiimprovements
Share point 2010-uiimprovements
LiquidHub
 
Microsoft office-sharepoint-server-2007-presentation-120211522467022-2
Microsoft office-sharepoint-server-2007-presentation-120211522467022-2Microsoft office-sharepoint-server-2007-presentation-120211522467022-2
Microsoft office-sharepoint-server-2007-presentation-120211522467022-2
LiquidHub
 
Managing metadata in_share_point_2010
Managing metadata in_share_point_2010Managing metadata in_share_point_2010
Managing metadata in_share_point_2010
LiquidHub
 
Fast search for share point
Fast search for share pointFast search for share point
Fast search for share point
LiquidHub
 
Simple Farm Server Deployment
Simple Farm Server DeploymentSimple Farm Server Deployment
Simple Farm Server Deployment
LiquidHub
 
Pre Install Databases
Pre Install DatabasesPre Install Databases
Pre Install Databases
LiquidHub
 
Moss 2007 Deployment Detail
Moss 2007 Deployment DetailMoss 2007 Deployment Detail
Moss 2007 Deployment Detail
LiquidHub
 
Moss 2007 Backup Strategies
Moss 2007 Backup StrategiesMoss 2007 Backup Strategies
Moss 2007 Backup Strategies
LiquidHub
 
How To Configure Email Enabled Lists In Moss2007 Rtm Using Exchange 2003
How To Configure Email Enabled Lists In Moss2007 Rtm Using Exchange 2003How To Configure Email Enabled Lists In Moss2007 Rtm Using Exchange 2003
How To Configure Email Enabled Lists In Moss2007 Rtm Using Exchange 2003
LiquidHub
 
5060 A 01 Demonstration Steps
5060 A 01 Demonstration Steps5060 A 01 Demonstration Steps
5060 A 01 Demonstration Steps
LiquidHub
 
Working With Infopath 2007
Working With Infopath 2007Working With Infopath 2007
Working With Infopath 2007
LiquidHub
 
Whats New In Microsoft Windows Share Point Services Feature Walkthrough
Whats New In Microsoft Windows Share Point Services Feature WalkthroughWhats New In Microsoft Windows Share Point Services Feature Walkthrough
Whats New In Microsoft Windows Share Point Services Feature Walkthrough
LiquidHub
 
Overviewofthe2007 Microsoft Office System Components Refresh
Overviewofthe2007 Microsoft Office System Components RefreshOverviewofthe2007 Microsoft Office System Components Refresh
Overviewofthe2007 Microsoft Office System Components Refresh
LiquidHub
 
Organizingand Finding Resourceswith Office Share Point Server2007 Refresh
Organizingand Finding Resourceswith Office Share Point Server2007 RefreshOrganizingand Finding Resourceswith Office Share Point Server2007 Refresh
Organizingand Finding Resourceswith Office Share Point Server2007 Refresh
LiquidHub
 

More from LiquidHub (20)

Share point 2013 coding standards and best practices 1.0
Share point 2013 coding standards and best practices 1.0Share point 2013 coding standards and best practices 1.0
Share point 2013 coding standards and best practices 1.0
 
Sharepoint 2013 upgrade process
Sharepoint 2013 upgrade processSharepoint 2013 upgrade process
Sharepoint 2013 upgrade process
 
Share point 2013
Share point 2013Share point 2013
Share point 2013
 
Share point 2010-uiimprovements
Share point 2010-uiimprovementsShare point 2010-uiimprovements
Share point 2010-uiimprovements
 
Microsoft office-sharepoint-server-2007-presentation-120211522467022-2
Microsoft office-sharepoint-server-2007-presentation-120211522467022-2Microsoft office-sharepoint-server-2007-presentation-120211522467022-2
Microsoft office-sharepoint-server-2007-presentation-120211522467022-2
 
Managing metadata in_share_point_2010
Managing metadata in_share_point_2010Managing metadata in_share_point_2010
Managing metadata in_share_point_2010
 
Fast search for share point
Fast search for share pointFast search for share point
Fast search for share point
 
Simple Farm Server Deployment
Simple Farm Server DeploymentSimple Farm Server Deployment
Simple Farm Server Deployment
 
Pre Install Databases
Pre Install DatabasesPre Install Databases
Pre Install Databases
 
Moss 2007 Deployment Detail
Moss 2007 Deployment DetailMoss 2007 Deployment Detail
Moss 2007 Deployment Detail
 
Moss 2007 Backup Strategies
Moss 2007 Backup StrategiesMoss 2007 Backup Strategies
Moss 2007 Backup Strategies
 
How To Configure Email Enabled Lists In Moss2007 Rtm Using Exchange 2003
How To Configure Email Enabled Lists In Moss2007 Rtm Using Exchange 2003How To Configure Email Enabled Lists In Moss2007 Rtm Using Exchange 2003
How To Configure Email Enabled Lists In Moss2007 Rtm Using Exchange 2003
 
Bdc Screens
Bdc ScreensBdc Screens
Bdc Screens
 
Bdc Screens
Bdc ScreensBdc Screens
Bdc Screens
 
5060 A 01 Demonstration Steps
5060 A 01 Demonstration Steps5060 A 01 Demonstration Steps
5060 A 01 Demonstration Steps
 
5060 A 01
5060 A 015060 A 01
5060 A 01
 
Working With Infopath 2007
Working With Infopath 2007Working With Infopath 2007
Working With Infopath 2007
 
Whats New In Microsoft Windows Share Point Services Feature Walkthrough
Whats New In Microsoft Windows Share Point Services Feature WalkthroughWhats New In Microsoft Windows Share Point Services Feature Walkthrough
Whats New In Microsoft Windows Share Point Services Feature Walkthrough
 
Overviewofthe2007 Microsoft Office System Components Refresh
Overviewofthe2007 Microsoft Office System Components RefreshOverviewofthe2007 Microsoft Office System Components Refresh
Overviewofthe2007 Microsoft Office System Components Refresh
 
Organizingand Finding Resourceswith Office Share Point Server2007 Refresh
Organizingand Finding Resourceswith Office Share Point Server2007 RefreshOrganizingand Finding Resourceswith Office Share Point Server2007 Refresh
Organizingand Finding Resourceswith Office Share Point Server2007 Refresh
 

Recently uploaded

Recently uploaded (20)

Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 

Best Practice In Nutshell

  • 1. Best Practices in a Nutshell Below is a very brief synopsis of the Best Practice guidelines. Each of the items will be elaborated upon in great detail in the following guidelines. 1. Make targetNamespace the default namespace. 2. Make two identical copies of all your schemas, where the copies differ only in the value of elementFormDefault (in one copy set elementFormDefault=“qualified”, in the other copy set elementFormDefault=“unqualified”) 3. Uniquely identify all schema components with the id attribute. Note: this is NOT the same thing as creating an element with an attribute that has an ID-datatype. Rather, what is being referred to here is the capability to associate an id attribute with every schema component (types, elements, attributes, etc). Here are some examples: <xsd:element name=“elevation” type=“xsd:integer” id=“flight:aircraft:elevation”/> <xsd:complexType name=“publication” id=“wrox:book:publication”/> This provides a finer level of granularity for identifying components than does namespaces, which provides only a course level of granularity. 4. Postpone decisions as long as possible. 4.1 Postpone binding schema components to a namespace. Corrollary: Don’t give schema’s a targetNamespace. Let schemas which <include> your no- namespace schema supply a targetNamespace, one that makes sense to the <include>ing schema 4.2 Postpone binding a type reference to an implementation, i.e., use dangling types. Corrollary: In an <import> element the schemaLocation attribute is optional. Don’t use it. 5. Create extensible schemas. 5.1 Recognize your limitations as a schema designer, i.e, be smart enough to know that you’re not smart enough to anticipate all the varieties of data that an instance document author might need to use in creating an instance document. Corrollary: use the <any> element. 6. Recognize that with XML Schemas you will not be able to express all your business rules. Express those business rules using either XSLT or Schematron. 3