Name: 
 

Study Guide 02



True/False
Indicate whether the sentence or statement is true or false.
 

 1. 

Name collisions are always avoidable with good planning.
 

 2. 

One of the downsides of the use of XML vocabularies is their failure to provide simple element names to describe data.
 

 3. 

Creating complex element names to avoid name collision would eliminate one of the benefits of XML.
 

 4. 

Common XHTML element names like title, name, first, last, or address are likely to be found in the thousands of XML vocabularies currently available.
 

 5. 

Once a namespace has been declared, it can be applied to any descendant of the element.
 

 6. 

All URIs are URLs.
 

 7. 

A URL does not have to actually point to a real site on the Web to be used to define a namespace.
 

 8. 

One example of a URL is the identification of a book by its ISBN number.
 

 9. 

Currently URLs are rarely used in place of URNs but this may change in the future.
 

 10. 

Using URLs or URNs has not gained widespread acceptance in declaring namespaces.
 

 11. 

Nothing prevents you from using almost any unique identifier to declare a namespace.
 

 12. 

It is a good idea to verify that you have not added any syntax errors to a file after you have added several namespace prefixes to the elements in a document.
 

 13. 

It is required that you use namespace prefixes for all of the elements in a compound XML document.
 

 14. 

Many compound documents use a default namespace that covers most of the elements in the document, with elements from other XML vocabularies assigned namespace prefixes.
 

 15. 

Unlike an element name, an attribute can be qualified by adding a namespace prefix.
 

 16. 

Default namespaces apply to attributes but not to elements.
 

 17. 

The class attribute is often used in CSS to apply common formats to groups of elements
 

 18. 

If a namespace prefix is declared more than one, only the first instance is used in the style sheet.
 

 19. 

Once you have declared a namespace in a style sheet, you can associate selectors with that namespace by adding the namespace prefix to each selector name.
 

 20. 

If you omit the namespace prefix from a selector, the style sheet is rejected as invalid.
 

 21. 

When the specifications for XML 1.0 were first posted, there was no support for namespaces.
 

 22. 

At the outset of XML 1.0, there were several competing proposals for adding namespace support to XML and CSS.
 

 23. 

All browsers support the use of the @namespace rule.
 

 24. 

Vocabularies like RSS and MathML cannot be combined within single documents.
 

 25. 

As time goes on, browsers are less and less likely to extend and improve their ability to support documents that combine multiple vocabularies.
 

 26. 

Currently, it is sometimes easiest to design XML documents that use multiple vocabularies for viewing on specialized browsers.
 

 27. 

Browsers like Amaya and Jumbo include built-in support and style sheets for the elements of the relevant vocabularies.
 

 28. 

The elements of almost any XML document can be displayed in the current major browsers if you design style sheets to work with the elements of the XML vocabulary.
 

 29. 

Every element in a document that lacks a namespace prefix is considered part of the XHTML vocabulary if the default namespace points to the URI for XHTML.
 

Modified True/False
Indicate whether the sentence or statement is true or false.  If false, change the identified word or phrase to make the sentence or statement true.
 

 30. 

A document that combines several vocabularies is known as a(n) aggregate document. _________________________

 

 31. 

A name collapse occurs when the same element name is used from different XML vocabularies within the same compound document. _________________________

 

 32. 

XML offers hosts as a mechanism for distinguishing elements from one vocabulary from elements into another vocabulary. _________________________

 

 33. 

A glossary is a defined collection of element and attribute names. _________________________

 

 34. 

Applying a namespace to an XML document involves two steps. _________________________

 

 35. 

To declare a namespace you add the attribute xml:prefix= “uri” to an element within an XML document. _________________________

 

 36. 

In order to make a namespace available to all elements within a document, some XML authors add all namespace declarations to the document’s root element. _________________________

 

 37. 

If an XML vocabulary is made widely available, the namespace associated with that vocabulary needs to be unique. _________________________

 

 38. 

One type of URL is a Uniform Resource Name. _________________________

 

 39. 

Currently, URNs are rarely used in place of URLs but this may change in the future. _________________________

 

 40. 

The main requirement of a URI is that it be standardized. ___________________________________

 

 41. 

To apply an XML namespace, you give elements and attributes local names. _________________________

 

 42. 

A(n) unindexed name is a name without a namespace reference. _________________________

 

 43. 

Like element names, there is no default namespace for attribute names. _________________________

 

 44. 

As with XML documents, the namespace prefix is required. _________________________

 

 45. 

Any @namespace rules in a style sheet must come before all @import and @charset rules. _________________________

 

 46. 

Any @namespace rules in a style sheet must come after any style declarations. _________________________

 

 47. 

If a namespace prefix is declared more than once, only the first instance is used in the style sheet. _________________________

 
 
studyguide02_files/i0500000.jpg
 

 48. 

Figure 2-22 shows the changing of a document from XML to XHTML. _________________________

 

Multiple Choice
Identify the letter of the choice that best completes the statement or answers the question.
 
 
studyguide02_files/i0530000.jpg
 

 49. 

The figure above shows an example of a name ____.
a.
aggregation
c.
montage
b.
collision
d.
collapse
 

 50. 

One of the benefits of XML ____ is the ability to use simple element names to describe data.
a.
glossaries
c.
indices
b.
vocabularies
d.
sort orders
 

 51. 

A ____ is a mechanism that permits elements from one vocabulary to be distinguished from elements in another.
a.
schematic
c.
MML
b.
CML
d.
namespace
 

 52. 

Applying a namespace to an XML document involves ____ steps.
a.
two
c.
five
b.
three
d.
seven
 

 53. 

The first step in applying a namespace to an XML document is to ____ the namespace.
a.
initiate
c.
call
b.
invoke
d.
declare
 

 54. 

A string of characters that uniquely identifies a resource is called a(n) ____.
a.
URP
c.
URI
b.
URH
d.
URM
 

 55. 

To declare a namespace you add this attribute to an element within an XML document: ____.
a.
xmlns (prefix= “uri”)
c.
xmlns:prefix= “uri”
b.
xmlns= “uri”
d.
xmlns: “uri”
 

 56. 

Given this declaration
<model xmlns:mod= “http://jacksonelect.com/models”> the prefix is ____.
a.
model
c.
mod
b.
xml
d.
xmlns
 

 57. 

What is the maximum number of namespace attributes you can declare within an element?
a.
1
c.
3
b.
2
d.
There is no limit.
 

 58. 

The purpose of a ____ is to provide a unique string of characters identifying a resource.
a.
hostname
c.
protocol
b.
client name
d.
URI
 

 59. 

One version of a ____ is a URL.
a.
URI
c.
URT
b.
URN
d.
URH
 

 60. 

____ serve as built-in mechanisms on the Web for generating unique addresses
a.
URLs
c.
Host names
b.
Protocols
d.
Client names
 

 61. 

A ____ provides a persistent name for a resource.
a.
URN
c.
URL
b.
URI
d.
URX
 

 62. 

URNs take the form ____.
a.
urn(NID)
c.
urn:NID:NSS
b.
urn:NID
d.
urn/NID/NSS
 

 63. 

One example of a URN is a book’s identification by its ____ number.
a.
bar
c.
ISBN
b.
serial
d.
key
 

 64. 

To apply an XML namespace, you give elements and attributes ____ names.
a.
qualified
c.
unique
b.
registered
d.
documented
 

 65. 

A namespace ____ identifies the namespace.
a.
prefix
c.
model
b.
registry
d.
keytag
 

 66. 

The ____ part of a qualified name identifies the element or attribute within that namespace.
a.
main
c.
index
b.
root
d.
local
 

 67. 

Another name for the local part is the local ____.
a.
name
c.
symbol
b.
term
d.
entity
 

 68. 

A(n) ____ name is a name without a namespace reference.
a.
empty
c.
unqualified
b.
null
d.
open
 

 69. 

You can declare a ____ namespace by omitting the prefix in the namespace declaration.
a.
base
c.
main-level
b.
root
d.
default
 

 70. 

The advantage of ____ namespaces is that they make the code easier to read because you do not have to add the namespace prefix to each element.
a.
default
c.
base
b.
main-level
d.
root
 

 71. 

Many compound documents use a ____ namespace that covers most of the elements in the document, with elements from other XML vocabularies assigned namespace prefixes.
a.
main-level
c.
default
b.
base
d.
root
 

 72. 

Like an element name, an attribute can be qualified by adding a namespace ____.
a.
epilog
c.
body
b.
prolog
d.
prefix
 

 73. 

Default namespaces apply to ____.
a.
attributes
c.
elements
b.
comments
d.
Both A and C
 

 74. 

An attribute name without a ____ is assumed to belong to the same namespace as the element that contains it.
a.
link
c.
model
b.
opening tag
d.
prefix
 

 75. 

You can use the ____ symbol to apply a style to any element within a namespace or to elements across different namespaces.
a.
?
c.
&
b.
@
d.
*
 

 76. 

Which of the following sets a width of 150 pixels to any element named title from any namespace?
a.
#|title {width: 150px|
c.
^|title {width: 150px|
b.
*|title {width: 150px|
d.
?|title {width: 150px|
 

 77. 

Which of the following would apply to all elements named title in any namespace?
a.
?|title {width: 150px|
c.
title {width: 150px|
b.
*|title {width: 150px|
d.
#|title {width: 150px|
 

 78. 

Internet Explorer inserts the ____ character before the namespace prefix in CSS style sheets.
a.
|
c.
\
b.
/
d.
+
 

 79. 

You can use the ____ symbol to apply the same style to several elements in the namespace.
a.
?
c.
*
b.
#
d.
^
 

 80. 

Which of the following supports the definition of namespaces using the escape character?
a.
Firefox
c.
Internet Explorer
b.
Opera
d.
All of the above
 

 81. 

The standard ____ that are shared throughout the world such as XHTML, RSS, or MathML can also be combined within single documents.
a.
glossaries
c.
indices
b.
vocabularies
d.
engines
 

 82. 

The namespace URI http://www.microsoft.com/standard/channels.dtd corresponds to what vocabulary?
a.
RSS 1.0
c.
CDF
b.
VoiceXML
d.
XSLT
 

 83. 

The namespace URI http://www.xml-cml.org/dtd/cml1_0_1.dtd corresponds to what vocabulary?
a.
CDF
c.
CML
b.
MathML
d.
SMIL
 

 84. 

The namespace URI http://www.w3.org/1998/Math/MathML corresponds to what vocabulary?
a.
SMIL
c.
XForms
b.
MathML
d.
VoiceXML
 

 85. 

The namespace URI http://purl.org/rss/1.0 corresponds to what vocabulary?
a.
RSS 1.0
c.
SVG
b.
SMIL
d.
XHTML
 

 86. 

The namespace URI http://www.w3.org/2001/SMIL20/Language corresponds to what vocabulary?
a.
XMLSchema
c.
RSS 1.0
b.
SMIL
d.
XSLT
 

 87. 

The namespace URI http://www.w3.org/2000/svg corresponds to what vocabulary?
a.
SVG
c.
CML
b.
CDF
d.
RSS 1.0
 

 88. 

The namespace URI http://www.w3.org/2001/vxml corresponds to what vocabulary?
a.
CDF
c.
VoiceXML
b.
CML
d.
SMIL
 

 89. 

The namespace URI http://www.w3.org/2002/xforms corresponds to what vocabulary?
a.
CML
c.
XForms
b.
SVG
d.
RSS 1.0
 

 90. 

The namespace URI http://www.w3.org/1999/xhtml corresponds to what vocabulary?
a.
CML
c.
XHTML
b.
XMLSchema
d.
XSLT
 

 91. 

The namespace URI http://www.w3.org/2001/XMLSchema corresponds to what vocabulary?
a.
CDF
c.
XMLSchema
b.
SMIL
d.
RSS 1.0
 

 92. 

The namespace URI http://www.w3.org/1999/XSL/Transform corresponds to what vocabulary?
a.
XForms
c.
XSLT
b.
XHTML
d.
XMLSchema
 

 93. 

The W3C provides the ____ Web browser to display documents combining elements from the MathML and XHTML vocabularies.
a.
Firefox
c.
Amaya
b.
Opera
d.
Jumbo
 

 94. 

Browsers like ____ can display compound documents that use XHTML and CML.
a.
Firefox
c.
Jumbo
b.
Opera
d.
Amaya
 
 
studyguide02_files/i1000000.jpg
 

 95. 

Figure 2-21 shows a(n) ____ XHTML and MathML document in the Amaya browser
a.
synthesized
c.
compound
b.
formulaic
d.
integrated
 

 96. 

Converting an HTML file to an XHTML file can be done by adding a(n) ____ declaration at the top of the file and setting the default namespace of the document to the XHTML vocabulary.
a.
xhtml
c.
xml
b.
xsl
d.
Any of the above
 

 97. 

Every element in a document that lacks a namespace prefix is considered part of the XHTML vocabulary if the default namespace points to the ____ for XHTML.
a.
URL
c.
URI
b.
URN
d.
Any of the above
 
 
studyguide02_files/i1040000.jpg
 

 98. 

The figure above shows the changing of a document from ____ to XHTML.
a.
CSS
c.
HTML
b.
XML
d.
It is impossible to tell from the diagram.
 

Completion
Complete each sentence or statement.
 
 
studyguide02_files/i1070000.jpg
 

 99. 

The figure above shows the tree structure of the model ____________________.
 

 

 100. 

A document that combines several vocabularies is known as a(n) ____________________ document.
 

 

 101. 

A(n) ____________________ occurs when the same element name is used from different XML vocabularies within the same compound document.
 

 

 102. 

A(n) ____________________ is a defined collection of element and attribute names.
 

 

 103. 

In the syntax for the declaration of a namespace, a “uri” stands for ____________________.
 

 

 104. 

URL stands for ____________________.
 

 

 105. 

URN stands for ____________________.
 

 

 106. 

Using URNs or URLs is widely accepted in declaring ____________________.
 

 
 
studyguide02_files/i1160000.jpg
 

 107. 

The code highlighted in the figure above is used to declare the models and parts ____________________.
 

 

 108. 

A qualified name, or ____________________, is an element name consisting of the namespace prefix and the local name.
 

 

 109. 

A(n) ____________________ name is a name without a namespace reference.
 

 

 110. 

To apply an XML namespace, you give elements and attributes ____________________ names.
 

 

 111. 

You can declare a default namespace by omitting the ____________________ in the namespace declaration.
 

 

 112. 

The advantage of ____________________ namespaces is that they make the code easier to read because you do not have to add the namespace prefix to each element.
 

 

 113. 

Default namespaces do not apply to ____________________.
 

 

 114. 

If a namespace prefix is declared more than once, only the ____________________ instance is used in the style sheet.
 

 
 
studyguide02_files/i1250000.jpg
 

 115. 

The figure above shows the application of the models namespace to a(n) ____________________.
 

 

 116. 

Internet Explorer inserts the backslash escape character before the ____________________ in CSS style sheets.
 

 
 
studyguide02_files/i1280000.jpg
 

 117. 

The figure above shows a(n) ____________________ XHTML and MathML document in the Amaya browser.
 

 

Matching
 
 
Identify the letter of the choice that best matches the phrase or definition.
a.
compound
e.
URL
b.
name collision
f.
URN
c.
namespace
g.
qname
d.
URI
h.
unqualified name
 

 118. 

Type of document that combines several vocabularies
 

 119. 

Used to identify the location of a resource on the Web
 

 120. 

A string of characters that uniquely identifies a resource
 

 121. 

A defined collection of element and attribute names
 

 122. 

A name without a namespace reference
 

 123. 

Occurs when the same element name is used from different XML vocabularies within the same compound document
 

 124. 

Provides a persistent name for a resource
 

 125. 

An element name consisting of a namespace prefix and the local name
 



 
Check Your Work     Reset Help