SlideShare a Scribd company logo
Validation - DTDs
Nguyễn Đăng Khoa
Content
• Document Type Definitions (DTDs)
• XML Schemas
DTD – What’s a DTD?
• is a set of rules that defines the elements and
their attributes for an XML document
• DTD defines the “grammar” for an XML
document
• DTDs were created as part of SGML
DTD’s goals
• Check XML document is valid or not
When to use a DTD
• To create and manage large sets of documents
for your company
• To define clearly what markup may be used in
certain documents and how markup should be
sequenced
• To provide a common frame of reference for
documents that many users can share
When NOT to use a DTD
• You’re working with only one or a few small
document
• You’re using a nonvalidating processor to
handle your XML documents
DTD - Example
DTD - Example
DTD – Internal subset declarations
<!DOCTYPE name_of_root [
…. declarations …
]>
• Declarations appear between the [ and ]
DTD – External subset declarations
• System Identifiers
<!DOCTYPE name_of_root SYSTEM “URI to DTD file”
[
…. declarations …
]>
– Example:
• <!DOCTYPE name SYSTEM “file:///c:/name.dtd” [ ]>
• <!DOCTYPE name SYSTEM
“http://wiley.com/hr/name.dtd” [ ]>
• <!DOCTYPE name SYSTEM “name.dtd”>
DTD – External subset declarations
• Public Identifiers
<!DOCTYPE name_of_root PUBLIC “entry in a
catalog” optional_system_identifier>
– Example:
• <!DOCTYPE name PUBLIC “-//Beginning XML//DTD
Name Example//EN”>
• <!DOCTYPE name PUBLIC “-//Beginning XML//DTD
Name Example//EN” “name.dtd”>
– Common format is Formal Public Identifiers, FPIs
-//Owner//Class Description//Language//Version
DTD – External subset declarations
• Public Identifiers
<!DOCTYPE name_of_root PUBLIC “entry in a
catalog” optional_system_identifier>
– Example:
• <!DOCTYPE name PUBLIC “-//Beginning XML//DTD
Name Example//EN”>
• <!DOCTYPE name PUBLIC “-//Beginning XML//DTD
Name Example//EN” “name.dtd”>
– Common format is Formal Public Identifiers, FPIs
-//Owner//Class Description//Language//Version
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN”
“http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
Anatomy of a DTD
• Element declarations
• Attribute declarations
• Entity declarations
DTD – Element declarations
• declare each element that appears within the
document
• can include declarations for optional elements
<!ELEMENT name (first, middle, last)>
ELEMENT
declaration
element name
element content
model
DTD – Element content models
• Element
• Mixed
• Empty
• Any
DTD – Element Content
• Include the allowable elements within
parentheses
<!ELEMENT contact (name)>
<!ELEMENT contact
(name, location, phone, knows, description)>
Sequences
Choices
DTD – Element Content – Sequences
• Elements within these documents must
appear in a distinct order
<!ELEMENT name (first, middle, last)>
<!ELEMENT contact
(name, location, phone, knows, description)>
DTD – Element Content – Sequences
• Elements within these documents must
appear in a distinct order
<!ELEMENT name (first, middle, last)>
<!ELEMENT contact
(name, location, phone, knows, description)>
Error when parent
element:
• is missing one of the
elements
• contains more elements
• the elements appeared in
another order
DTD – Element Content – Choices
• Allow one element or another, but not both
<!ELEMENT location (address | GPS)>
DTD – Element Content – Choices
• Allow one element or another, but not both
<!ELEMENT location (address | GPS)>
Error when parent
element:
• is empty
• contain more than one of
these elements
DTD – Element Content – Combining
Sequences and Choices
• Many XML documents need to leverage much
more complex rules
<!ELEMENT location (address |
(latitude, longitude))>
DTD – Mixed Content
• Any element with text in its content
– text can appear by itself or it can be interspersed
between elements
• Case 1: simplest mixed content model - text-
only:
<!ELEMENT first (#PCDATA)>
<first>John</first>
DTD – Mixed Content
• Case 2: Mixed content models can also
contain elements interspersed within the text
<description>Joe is a developer and author for
<title>Beginning XML</title>, now in its
<detail>5th Edition</detail></description>
<!ELEMENT description (#PCDATA | title | detail)*>
DTD – Mixed Content
• Case 2: Mixed content models can also
contain elements interspersed within the text
<description>Joe is a developer and author for
<title>Beginning XML</title>, now in its
<detail>5th Edition</detail></description>
<!ELEMENT description (#PCDATA | title | detail)*>
4 rules:
• They must use the choice
mechanism to separate
elements
• The #PCDATA keyword
must appear first
• There must be no inner
content models.
• If there are child
elements, the * cardinality
indicator must appear at
the end of the model
DTD – Empty Content
• Elements never need to contain content
<!ELEMENT br EMPTY>
DTD – Any Content
• The ANY keyword indicates that
– text (PCDATA)
– any elements must be declared within the DTD
– any order any number of times
<!ELEMENT description ANY>
DTD – Example
DTD – Example
DTD – Cardinality
• An element’s cardinality defines how many
times it will appear within a content model
DTD - Example
DTD - Example
DTD - Example
DTD - Example
DTD – Attribute Declarations
• declare a list of allowable attributes for each
element
<!ATTLIST contacts source CDATA #IMPLIED>
ATTLIST
declaration
associated
element’s name
list of declared
attributes
DTD – Attribute Declarations
• declare a list of allowable attributes for each
element
<!ATTLIST contacts source CDATA #IMPLIED>
attribute name
attribute type
attribute value
declaration
DTD – Attribute Types
• When declaring attributes, you can specify
how the processor should handle the data
that appears in the value
DTD – Attribute Types
DTD – Attribute Types – CDATA
<!ATTLIST website description CDATA #IMPLIED>
DTD – Attribute Types – ID
<!ATTLIST website url ID #IMPLIED>
DTD – Attribute Types – IDREF
<!ATTLIST website link IDREF #IMPLIED>
DTD – Attribute Types – IDREFS
<!ATTLIST website links IDREFS #IMPLIED>
DTD – Attribute Types – NMTOKEN
<!ATTLIST website category NMTOKEN
#IMPLIED>
DTD – Attribute Types – NMTOKENS
<!ATTLIST website category NMTOKENS
#IMPLIED>
DTD – Attribute Types – Enumerated
list
<!ATTLIST website like (YES|NO) #IMPLIED>
DTD – Attribute Value Declarations
• Within each attribute declaration you must
specify how the value will appear in the
document
– Has a default value
– Has a fixed value
– Is required
– Is implied (or is optional)
DTD – Attribute Value Declarations –
Default values
• can be sure that it is included in the final
output
<!ATTLIST phone kind (Home | Work | Cell |
Fax) “Home”>
kind=“Work”
kind=“Home”
DTD – Attribute Value Declarations –
Fixed Values
• When an attribute’s value can never
change, you use the #FIXED keyword followed
by the fixed value
• Fixed values operate much like default values
<!ATTLIST contacts version CDATA #FIXED
“1.0”>
DTD – Attribute Value Declarations –
Required Values
• Attribute is required must be included within
the XML document
– you are not permitted to specify a default value
<! ATTLIST phone kind (Home | Work | Cell |
Fax) #REQUIRED>
DTD – Attribute Value Declarations –
Implied Values
• Attribute has no default value, has no fixed
value, and is not required
<! ATTLIST knows contacts IDREFS #IMPLIED>
DTD – Specifying Multiple Attributes
<!ATTLIST contacts version CDATA #FIXED
“1.0” source CDATA #IMPLIED>
<!ATTLIST contacts version CDATA #FIXED
“1.0”>
<!ATTLIST contacts source CDATA #IMPLIED>
DTD – Example
DTD – Example
DTD – Example
DTD – Example
DTD – Entity Declarations
• escape characters
• include special characters
• refer to sections of replacement text, other
XML markup, and even external files
DTD – Entity Declarations
• 4 primary types
– Built-in entities
– Character entities
– General entities
– Parameter entities
DTD – Entity Declarations – Built-in
entities
• Start with an ampersand (&) and finish with a
semicolon (;)
• There are five built-in entity references in XML
DTD – Entity Declarations – Character
entities
• Begin with &# and end with a semicolon (;)
• Example: the Greek letter omega (Ω) as a
reference it would be &#x03A9; in
hexadecimal or &#937; in decimal
DTD – Entity Declarations – General
entities
• create reusable sections of replacement text
• must be declared within the DTD before they
can be used
• There are 2 ways to declare:
– Internal entity declaration
– External entity declaration
DTD – Entity Declarations – General
entities
• Internal Entity Declaration
&source-text;
&address-unknow;
&empty-gps;
DTD – Entity Declarations – General
entities
• External Entity Declaration
DTD – Entity Declarations – Parameter
entities
• much like general entities, enable you to
create reusable sections of replacement text
• cannot be used in general content
• can refer to parameter entities only within the
DTD
%NameDeclarations;
DTD – Entity Declarations – Parameter
entities
DTD Limitations
• Poor support for XML namespaces
• Poor data typing
• Limited content model descriptions

More Related Content

PDF
Relational Model and Relational Algebra - Lecture 3 - Introduction to Databas...
PPTX
Html form tag
PPTX
PDF
Presto: Optimizing Performance of SQL-on-Anything Engine
PDF
The Parquet Format and Performance Optimization Opportunities
PPTX
Segmentation in operating systems
PPTX
Ogsa service taxonomy
PPTX
Nosql-Module 1 PPT.pptx
Relational Model and Relational Algebra - Lecture 3 - Introduction to Databas...
Html form tag
Presto: Optimizing Performance of SQL-on-Anything Engine
The Parquet Format and Performance Optimization Opportunities
Segmentation in operating systems
Ogsa service taxonomy
Nosql-Module 1 PPT.pptx

What's hot (20)

PPTX
Elastic search overview
PPT
Inverted index
PPTX
Markup language classification, designing static and dynamic
PPTX
Xml dtd- Document Type Definition- Web Technology
PPTX
Div Tag Tutorial
PPTX
HTTP request and response
PDF
Elasticsearch From the Bottom Up
PPTX
Css lists
PPTX
Data storage and indexing
PPTX
PPTX
Presentation on Segmentation
PPT
Database performance tuning and query optimization
PPTX
SPARQL Cheat Sheet
PPTX
SQL: Structured Query Language
PPTX
Communication in Distributed Systems
PDF
jQuery for beginners
PPTX
Bootstrap 3
PPT
Introduction to RDF
PDF
Bootstrap
Elastic search overview
Inverted index
Markup language classification, designing static and dynamic
Xml dtd- Document Type Definition- Web Technology
Div Tag Tutorial
HTTP request and response
Elasticsearch From the Bottom Up
Css lists
Data storage and indexing
Presentation on Segmentation
Database performance tuning and query optimization
SPARQL Cheat Sheet
SQL: Structured Query Language
Communication in Distributed Systems
jQuery for beginners
Bootstrap 3
Introduction to RDF
Bootstrap
Ad

Viewers also liked (7)

PPTX
PPT
Xml Schema
PPT
Introduction to XML
PPT
2 dtd - validating xml documents
PPS
Xml dtd
PPTX
XML, DTD & XSD Overview
Xml Schema
Introduction to XML
2 dtd - validating xml documents
Xml dtd
XML, DTD & XSD Overview
Ad

Similar to XML's validation - DTD (20)

PPT
2-DTD.ppt
PDF
it8074-soa-uniti-.pdf
PPTX
It8074 soa-unit i
PPTX
Xml dtd
PPTX
Unit iv xml
PPT
01 xml document structure
PPTX
DTD1.pptx
PPTX
PPTX
XML DTD DOCUMENT TYPE DEFINITION
PPTX
It8074 soa-unit i
PDF
Xml 20111006 hurd
PPTX
Xml dtd
PDF
23xml
PPT
PDF
Xml
PPTX
distributed system concerned lab sessions
2-DTD.ppt
it8074-soa-uniti-.pdf
It8074 soa-unit i
Xml dtd
Unit iv xml
01 xml document structure
DTD1.pptx
XML DTD DOCUMENT TYPE DEFINITION
It8074 soa-unit i
Xml 20111006 hurd
Xml dtd
23xml
Xml
distributed system concerned lab sessions

Recently uploaded (20)

PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Basic Mud Logging Guide for educational purpose
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
Institutional Correction lecture only . . .
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PPTX
Pharma ospi slides which help in ospi learning
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
Business Ethics Teaching Materials for college
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
master seminar digital applications in india
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
Pre independence Education in Inndia.pdf
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Insiders guide to clinical Medicine.pdf
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Basic Mud Logging Guide for educational purpose
VCE English Exam - Section C Student Revision Booklet
2.FourierTransform-ShortQuestionswithAnswers.pdf
Institutional Correction lecture only . . .
Anesthesia in Laparoscopic Surgery in India
O7-L3 Supply Chain Operations - ICLT Program
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
Pharma ospi slides which help in ospi learning
Abdominal Access Techniques with Prof. Dr. R K Mishra
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Business Ethics Teaching Materials for college
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
master seminar digital applications in india
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Pre independence Education in Inndia.pdf
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Insiders guide to clinical Medicine.pdf

XML's validation - DTD

  • 2. Content • Document Type Definitions (DTDs) • XML Schemas
  • 3. DTD – What’s a DTD? • is a set of rules that defines the elements and their attributes for an XML document • DTD defines the “grammar” for an XML document • DTDs were created as part of SGML
  • 4. DTD’s goals • Check XML document is valid or not
  • 5. When to use a DTD • To create and manage large sets of documents for your company • To define clearly what markup may be used in certain documents and how markup should be sequenced • To provide a common frame of reference for documents that many users can share
  • 6. When NOT to use a DTD • You’re working with only one or a few small document • You’re using a nonvalidating processor to handle your XML documents
  • 9. DTD – Internal subset declarations <!DOCTYPE name_of_root [ …. declarations … ]> • Declarations appear between the [ and ]
  • 10. DTD – External subset declarations • System Identifiers <!DOCTYPE name_of_root SYSTEM “URI to DTD file” [ …. declarations … ]> – Example: • <!DOCTYPE name SYSTEM “file:///c:/name.dtd” [ ]> • <!DOCTYPE name SYSTEM “http://wiley.com/hr/name.dtd” [ ]> • <!DOCTYPE name SYSTEM “name.dtd”>
  • 11. DTD – External subset declarations • Public Identifiers <!DOCTYPE name_of_root PUBLIC “entry in a catalog” optional_system_identifier> – Example: • <!DOCTYPE name PUBLIC “-//Beginning XML//DTD Name Example//EN”> • <!DOCTYPE name PUBLIC “-//Beginning XML//DTD Name Example//EN” “name.dtd”> – Common format is Formal Public Identifiers, FPIs -//Owner//Class Description//Language//Version
  • 12. DTD – External subset declarations • Public Identifiers <!DOCTYPE name_of_root PUBLIC “entry in a catalog” optional_system_identifier> – Example: • <!DOCTYPE name PUBLIC “-//Beginning XML//DTD Name Example//EN”> • <!DOCTYPE name PUBLIC “-//Beginning XML//DTD Name Example//EN” “name.dtd”> – Common format is Formal Public Identifiers, FPIs -//Owner//Class Description//Language//Version <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
  • 13. Anatomy of a DTD • Element declarations • Attribute declarations • Entity declarations
  • 14. DTD – Element declarations • declare each element that appears within the document • can include declarations for optional elements <!ELEMENT name (first, middle, last)> ELEMENT declaration element name element content model
  • 15. DTD – Element content models • Element • Mixed • Empty • Any
  • 16. DTD – Element Content • Include the allowable elements within parentheses <!ELEMENT contact (name)> <!ELEMENT contact (name, location, phone, knows, description)> Sequences Choices
  • 17. DTD – Element Content – Sequences • Elements within these documents must appear in a distinct order <!ELEMENT name (first, middle, last)> <!ELEMENT contact (name, location, phone, knows, description)>
  • 18. DTD – Element Content – Sequences • Elements within these documents must appear in a distinct order <!ELEMENT name (first, middle, last)> <!ELEMENT contact (name, location, phone, knows, description)> Error when parent element: • is missing one of the elements • contains more elements • the elements appeared in another order
  • 19. DTD – Element Content – Choices • Allow one element or another, but not both <!ELEMENT location (address | GPS)>
  • 20. DTD – Element Content – Choices • Allow one element or another, but not both <!ELEMENT location (address | GPS)> Error when parent element: • is empty • contain more than one of these elements
  • 21. DTD – Element Content – Combining Sequences and Choices • Many XML documents need to leverage much more complex rules <!ELEMENT location (address | (latitude, longitude))>
  • 22. DTD – Mixed Content • Any element with text in its content – text can appear by itself or it can be interspersed between elements • Case 1: simplest mixed content model - text- only: <!ELEMENT first (#PCDATA)> <first>John</first>
  • 23. DTD – Mixed Content • Case 2: Mixed content models can also contain elements interspersed within the text <description>Joe is a developer and author for <title>Beginning XML</title>, now in its <detail>5th Edition</detail></description> <!ELEMENT description (#PCDATA | title | detail)*>
  • 24. DTD – Mixed Content • Case 2: Mixed content models can also contain elements interspersed within the text <description>Joe is a developer and author for <title>Beginning XML</title>, now in its <detail>5th Edition</detail></description> <!ELEMENT description (#PCDATA | title | detail)*> 4 rules: • They must use the choice mechanism to separate elements • The #PCDATA keyword must appear first • There must be no inner content models. • If there are child elements, the * cardinality indicator must appear at the end of the model
  • 25. DTD – Empty Content • Elements never need to contain content <!ELEMENT br EMPTY>
  • 26. DTD – Any Content • The ANY keyword indicates that – text (PCDATA) – any elements must be declared within the DTD – any order any number of times <!ELEMENT description ANY>
  • 29. DTD – Cardinality • An element’s cardinality defines how many times it will appear within a content model
  • 34. DTD – Attribute Declarations • declare a list of allowable attributes for each element <!ATTLIST contacts source CDATA #IMPLIED> ATTLIST declaration associated element’s name list of declared attributes
  • 35. DTD – Attribute Declarations • declare a list of allowable attributes for each element <!ATTLIST contacts source CDATA #IMPLIED> attribute name attribute type attribute value declaration
  • 36. DTD – Attribute Types • When declaring attributes, you can specify how the processor should handle the data that appears in the value
  • 38. DTD – Attribute Types – CDATA <!ATTLIST website description CDATA #IMPLIED>
  • 39. DTD – Attribute Types – ID <!ATTLIST website url ID #IMPLIED>
  • 40. DTD – Attribute Types – IDREF <!ATTLIST website link IDREF #IMPLIED>
  • 41. DTD – Attribute Types – IDREFS <!ATTLIST website links IDREFS #IMPLIED>
  • 42. DTD – Attribute Types – NMTOKEN <!ATTLIST website category NMTOKEN #IMPLIED>
  • 43. DTD – Attribute Types – NMTOKENS <!ATTLIST website category NMTOKENS #IMPLIED>
  • 44. DTD – Attribute Types – Enumerated list <!ATTLIST website like (YES|NO) #IMPLIED>
  • 45. DTD – Attribute Value Declarations • Within each attribute declaration you must specify how the value will appear in the document – Has a default value – Has a fixed value – Is required – Is implied (or is optional)
  • 46. DTD – Attribute Value Declarations – Default values • can be sure that it is included in the final output <!ATTLIST phone kind (Home | Work | Cell | Fax) “Home”> kind=“Work” kind=“Home”
  • 47. DTD – Attribute Value Declarations – Fixed Values • When an attribute’s value can never change, you use the #FIXED keyword followed by the fixed value • Fixed values operate much like default values <!ATTLIST contacts version CDATA #FIXED “1.0”>
  • 48. DTD – Attribute Value Declarations – Required Values • Attribute is required must be included within the XML document – you are not permitted to specify a default value <! ATTLIST phone kind (Home | Work | Cell | Fax) #REQUIRED>
  • 49. DTD – Attribute Value Declarations – Implied Values • Attribute has no default value, has no fixed value, and is not required <! ATTLIST knows contacts IDREFS #IMPLIED>
  • 50. DTD – Specifying Multiple Attributes <!ATTLIST contacts version CDATA #FIXED “1.0” source CDATA #IMPLIED> <!ATTLIST contacts version CDATA #FIXED “1.0”> <!ATTLIST contacts source CDATA #IMPLIED>
  • 55. DTD – Entity Declarations • escape characters • include special characters • refer to sections of replacement text, other XML markup, and even external files
  • 56. DTD – Entity Declarations • 4 primary types – Built-in entities – Character entities – General entities – Parameter entities
  • 57. DTD – Entity Declarations – Built-in entities • Start with an ampersand (&) and finish with a semicolon (;) • There are five built-in entity references in XML
  • 58. DTD – Entity Declarations – Character entities • Begin with &# and end with a semicolon (;) • Example: the Greek letter omega (Ω) as a reference it would be &#x03A9; in hexadecimal or &#937; in decimal
  • 59. DTD – Entity Declarations – General entities • create reusable sections of replacement text • must be declared within the DTD before they can be used • There are 2 ways to declare: – Internal entity declaration – External entity declaration
  • 60. DTD – Entity Declarations – General entities • Internal Entity Declaration &source-text; &address-unknow; &empty-gps;
  • 61. DTD – Entity Declarations – General entities • External Entity Declaration
  • 62. DTD – Entity Declarations – Parameter entities • much like general entities, enable you to create reusable sections of replacement text • cannot be used in general content • can refer to parameter entities only within the DTD %NameDeclarations;
  • 63. DTD – Entity Declarations – Parameter entities
  • 64. DTD Limitations • Poor support for XML namespaces • Poor data typing • Limited content model descriptions

Editor's Notes

  • #2: XML trong OOP
  • #6: To create and manage large sets of documents for your company. DTDsallow you to create and maintain rules that all documents must follow.To define clearly what markup may be used in certain documents andhow markup should be sequenced. DTDs make document rules explicit.To provide a common frame of reference for documents that manyusers can share. Big-name XML applications such as XPath have theirown associated DTDs.
  • #7: You’re working with only one or a few small documents. Remember whyyou create DTDs: to make your life easier. If a DTD is bigger than the documentthat it describes, you may be wasting your time. You’re using a nonvalidating processor to handle your XML documents.If the processor checks only for well-formedness, you don’t need anexternal DTD.
  • #15: An element may contain element children, text, a combination of children and text, or the element may be empty
  • #26: Using the EMPTYkeyword, you shouldn’t declare elements that may contain content. For example, a &lt;middle&gt;element used to hold a middle name may or may not contain text, and therefore should not use theEMPTY keyword
  • #27: However, the ANY keyword does not allow you to include elements that are not declared within the DTD
  • #36: Value declaration; it controls how the XML parser handles the attribute’s value.
  • #37: Value declaration; it controls how the XML parser handles the attribute’s value.
  • #38: Value declaration; it controls how the XML parser handles the attribute’s value.
  • #51: When declaring that an attribute is required, you are not permitted to specify a default value.
  • #52: When declaring that an attribute is required, you are not permitted to specify a default value.
  • #53: When declaring that an attribute is required, you are not permitted to specify a default value.
  • #54: When declaring that an attribute is required, you are not permitted to specify a default value.
  • #55: When declaring that an attribute is required, you are not permitted to specify a default value.
  • #56: When declaring that an attribute is required, you are not permitted to specify a default value.
  • #57: When declaring that an attribute is required, you are not permitted to specify a default value.