1539
1539
https://testbankmall.com/product/solution-manual-for-cfin-3-3rd-
edition-by-besley/
https://testbankmall.com/product/solution-manual-for-sql-
fundamentals-3-e-3rd-edition-0137126026/
https://testbankmall.com/product/solution-manual-for-performance-
management-3-e-3rd-edition-0132556383/
https://testbankmall.com/product/solution-manual-for-engineers-guide-
to-matlab-3-e-3rd-edition/
Solution Manual for Operating Systems, 3/E 3rd Edition.
Gary Nutt
https://testbankmall.com/product/solution-manual-for-operating-
systems-3-e-3rd-edition-gary-nutt/
https://testbankmall.com/product/principles-of-marketing-
version-3-0-3rd-tanner-solution-manual/
https://testbankmall.com/product/introduction-to-psychology-
version-3-0-3rd-stangor-solution-manual/
https://testbankmall.com/product/solution-manual-for-intro-to-java-
programming-comp-version-10-e-10th-edition-0133813460/
https://testbankmall.com/product/solution-manual-for-nonlinear-
systems-3-e-3rd-edition-hassan-k-khalil/
New Perspectives on XML Comprehensive, 3rd Edition, Instructors Manual 2 of 14
End of Tutorial Material 12
Glossary of Key Terms 13
Tutorial Objectives
Students will have mastered the material in Tutorial Two when they can:
Session 2.1 Session 2.3
⚫ Review the principles of data validation ⚫ Place internal and external content in an
⚫ Create a DOCTYPE entity
⚫ Declare XML elements and define their ⚫ Create entity references
content ⚫ Understand how to store code in
⚫ Define the structure of child elements parameter entities
⚫ Create comments in a DTD
Session 2.2 ⚫ Understand how to create conditional
⚫ Declare attributes sections
⚫ Set rules for attribute content ⚫ Understand how to create entities for non-
⚫ Define optional and required attributes character data
⚫ Validate an XML document ⚫ Understand how to validate standard
vocabularies
BOXES
TIP: The root value in the DOCTYPE must match the name of the XML document’s root element;
otherwise,parsers will reject the document as invalid.(XML 71)
InSight: Understanding URIs (XML 72)
ProSkills: Written Communication: Interpreting Public Identifiers (XML 73)
Reference: Declaring a DTD (XML 74)
FIGURES
Figure 2-1, Figure 2-2, Figure 2-3, Figure 2-4, Figure 2-5
TEACHER TIP
Provide students with a table like the one in Figure 2-1, marking which fields, if any, are optional, and ask
them to devise the corresponding structure for the data in the document, like the one shown in Figure 2-3.
CLASSROOM ACTIVITIES
1. GroupActivity: Present students with scenarios and ask them to determine the kind of DOCTYPE
statement the scenario would require. For example, if a company is using a standard XML vocabulary
like MathML, what kind of statement is required? (Answer: A public identifier) If a company has
developed a customized XML parser to read its XML documents, what is required? (Answer: An
external file with a system identifier)
2. Quick Quiz:
A DTD can be used to .
a. ensure that all required elements are present in a document
b. prevent undefined elements from being used in a document
c. define default values for attributes
d. All of these are correct.
(Answer: D)
A(n) subset is a set of declarations placed within the XML document. (Answer:
internal)
True/False: An internal DTD can be easily used as a common DTD among many documents,
forcing them to use the same elements, attributes, and document structure. (Answer: False)
BOXES
TIP: Element declarations must begin with <!ELEMENT in all uppercase letters and not <!Element
or <!element. (XML 75)
Reference: Specifying Types of Element Content (XML 77)
FIGURES
Figure 2-6
TEACHER TIP
Ask students to brainstorm examples of elements that would fall under each of the five types of content
models. The more examples that you can go over with them, the more it will help students understand the
various types of elements.
CLASSROOM ACTIVITIES
1. GroupActivity: Present students with examples of elements that have been declared to be of a
particular type and then are invalid, and ask students to explain how to correct the element so it
complies with its assigned type.
2. Quick Quiz:
An element declaration can specify all of the following except .
a. the reserved symbols that the element name can contain
b. the element’s name
c. what kind of content the element can contain
d. the order in which elements appear in the document
(Answer: A)
An element declared as cannot store any content. (Answer: empty)
True/False: Generally, elements are declared as being of type ANY or #PCDATA. (Answer:
False)
BOXES
Reference: Specifying Child Elements (XML 80)
TIP: You can specify that an element contains a minimum number of a child element by entering
duplicate elements equal to the minimum number and adding a + to the last one. (XML 80)
Reference: Applying Modifying Symbols (XML 81)
InSight: DTDs and Mixed Content (XML 83)
Review:Session 2.1 Quick Check (XML 83)
FIGURES
Figure 2-7
TEACHER TIP
Present students with examples of elements that have been declared to be of a particular type and then are
invalid, and ask students to explain how to correct the elements so they comply with their assigned type.
This will help them to understand child elements better.
CLASSROOM ACTIVITIES
1. GroupActivity: Describe in words the child elements a parent element must contain (for example,“a
citizen must have a state or a province code, but not both”) and ask students to write the element
declarations that correspond to the examples presented. Another exercise would be to present a list of
child elements (e.g., name, company) and ask what element declaration allows the given list of child
elements, making sure to remind students that modifying symbols add extra possible solutions.
2. Quick Quiz:
True/False: For content that involves multiple child elements, you can specify the elements in
either a sequence or a choice of elements. (Answer: True)
A is a list of elements that follow a defined order.
a. choice
b. source
c. sequence
d. series
(Answer: C)
A(n) symbol specifies the number of occurrences of each child element. (Answer:
modifying)
LAB ACTIVITY
Have students begin to construct a DTD for the following situation:
Students who have student ID, first name, last name, email, phone
Courses which have course ID, description, and number of credits
Grade records which have record ID, student ID, course ID, and grade
They should create the main elements and then specify the children. Students may have more than one
phone number and email address.
BOXES
Reference: Declaring Attributes in a DTD (XML 87)
FIGURES
Figure 2-8, Figure 2-9
TEACHER TIP
Stress that right now the attribute declarations would be rejected since the attribute types are not specified.
As with the other sections, go through several examples to help students understand the process.
CLASSROOM ACTIVITIES
1. Class Discussion: Ask students to come up with attributes for a course element. What attributes
would they have? How would they be specified in a DTD?
2. Quick Quiz:
True/False: If a parser encounters more than one declaration for the same attribute, it only
recognizes the second statement and ignores the first. (Answer: False)
Which of the following is true of attribute-list declarations?
a. They must be located at the beginning of the DTD.
b. They must be located at the end of the DTD.
c. They must be located adjacent to the declaration for the element with which they are
associated.
d. They can be located anywhere within the DTD.
(Answer: D)
To enforce attribution properties on a document, you must add a(n) to the
document’s DTD. (Answer: attribute-list declaration)
BOXES
TIP: You’ll learn more about default attribute values later in this tutorial. (XML 90)
TIP: Because an ID must be valid XML names, it cannot begin with a number. Commonly used
identifiers, such as Social Security numbers, must be prefaced with one or more alphabetical
characters, such as SS123-45-6789. (XML 93)
FIGURES
Figure 2-10, Figure 2-11, Figure 2-12, Figure 2-13
TEACHER TIP
Point out the fact that quantities, to which students would expect to assign a data type of “integer” or
“number,” are expressed as being of type “CDATA.” If they have programmed at all before, they may be
confused about this. Caution students that the use of the IDREF token requires that there be a matching
attribute to be cross-referenced, or the document will be rejected as invalid.
CLASSROOM ACTIVITIES
1. GroupActivity: Ask students to brainstorm scenarios in which enumerated-type attributes would be
useful because the values must be limited to a known, bounded set.
2. Quick Quiz:
The simplest form for attribute text is .
a. CDATA
b. ID
c. enumerated list
d. NMTOKEN
(Answer: A)
Attributes that are limited to a set of possible values are known as types. (Answer:
enumerated)
True/False: Tokens are used when an attribute value refers to a file containing nontextual data,
like a graphic image or a video clip. (Answer: False)
BOXES
TIP: If you specify a default value for an attribute, omit #REQUIRED and #IMPLIED from the
attribute declaration so parsersdon’t reject the DTD. (XML 95)
Reference: Specifying the Attribute Default (XML 96)
FIGURES
Figure 2-14, Figure 2-15
TEACHER TIP
© 2015 Cengage Learning
New Perspectives on XML Comprehensive, 3rd Edition, Instructors Manual 7 of 14
In studying XML, students often worry that there are too many options to remember. Provide more
examples and ask students to contribute a few; thiswill help students to remember the various options.
CLASSROOM ACTIVITIES
1. Class Discussion: Ask students to break into teams. Have them devise scenarios that allow them to
provide examples of the uses of each of the attribute defaults in Figure 2-14. Have them discuss their
results with each other.
2. Quick Quiz:
You can indicate that a given element must always have a particular attribute by adding the
value to the attribute declaration.
a. #FIXED
b. #REQUIRED
c. #IMPLIED
d. #MANDATED
(Answer: B)
The value for an attribute indicates that the use of this attribute is optional.
(Answer: #implied)
BOXES
TIP: You can also press F7 (Windows) of fn+F7(Mac) to validate a document in Exchanger
XMLEditor. (XML 98)
ProSkills: Problem Solving: ReconcilingDTDs and Namespaces (XML 102)
Review:Session 2.2 Quick Check (XML 103)
FIGURES
Figure 2-16, Figure 2-17, Figure 2-18, Figure 2-19, Figure 2-20
TEACHER TIP
As the text example shows, go through a document with errors and let students see how to correct them.
This really helps them prepare for when they are on their own and validating their work.
CLASSROOM ACTIVITIES
1. GroupActivity: If you have a computer with a projection device, use it to open valid XML code and
make changes to it, creating some errors on purpose, in order to illustrate the kinds of errors students
will become familiar with as they do more coding in XML.
2. Quick Quiz:
True/False: You can use Internet Explorer’s MSXML parser to validate your XML document
yourself. (Answer: False)
LAB ACTIVITY
Students should now add attributes to their DTD. For “phone,” they should add a phoneType
attribute that identifies the phone as home, work, or cell. For “email,” there should be an emailType
attribute that identifies the email address as home, work, or school. For “first name,” they can add
an attribute of title. Also, the record “no” for grade should include semester and year attributes,
which will be used to indicate which semester and year the grade was given for a course. The grade
record attributes are required. Have the students specify default values where appropriate.
Students should create an XML file to go along with this (or you can provide one if you like), and
then they should validate their work.
FIGURES
Figure 2-21
TEACHER TIP
Stress that entities can be used to avoid data entry errors. An analogy from outside programming is macros,
such as Microsoft Word’s AutoText feature, which allows a few keystrokes to represent a longer character
string.
CLASSROOM ACTIVITIES
1. Class Discussion: Can students think of scenarios when they might use a customized entity?
2. Quick Quiz:
Which of the following is not a built-in XML entity?
a. <
b. &
c. "
d. &posit;
(Answer: D)
True/False: Using entities can help you to avoid data errors. (Answer: True)
BOXES
TIP: For a long text string that will be repeated throughout an XML document, avoid data entry
errors by placing the text string in its own entity.(XML 106)
TIP: Including markup tags in an entity value lets you create a section of XML code and content,
and insert it once or multiple times into a document. (XML 107)
Reference: Declaring and ReferencingParsed Entities (XML 108)
FIGURES
Figure 2-22, Figure 2-23,Figure 2-24,Figure 2-25,Figure 2-26,Figure 2-27
TEACHER TIP
Caution students that if they use an external file, it must contain well-formed XML content and no XML
declaration. Emphasize that students must handle the & and % symbols with careful consideration.
CLASSROOM ACTIVITIES
1. GroupActivity: Present students with a series of types of content and ask them to characterize what
type of entity could be used to reference them (e.g., a paragraph of text inside the DTD would be an
internal parsed entity; a video file would be an unparsed external entity).
2. Quick Quiz:
True/False: You cannot use the hyphen character in an entity’s value because this is the symbol
used for inserting parameter entities. (Answer: False)
Which of the following entity types would reference a video file?
a. unparsed internal
b. parsed internal
c. unparsed external
d. parsed external
(Answer: C)
A(n) entity is an entity that references content to be used within an XML
document. (Answer: general)
BOXES
TIP: Note that when declaring a parameter entity, you include a space after the %; but when
referencing a parameter entity, there is no space between the % and the entity name. (XML 114)
Reference: Declaring and ReferencingParameter Entities (XML 115)
FIGURES
Figure 2-28
TEACHER TIP
Make sure to point out that not all browsers support external entities in combination with DTDs.
CLASSROOM ACTIVITIES
1. GroupActivity: Have students come up with scenarios when parameters may be used, and then have
themcreate declarations for the scenarios.
2. Quick Quiz:
You use a(n) to insert content into a DTD. (Answer: parameter entity)
True/False: Firefox browsers allow external entities in combination with DTDs. (Answer: False)
BOXES
ProSkills: Teamwork: Documenting Shared Code with Comments (XML 115)
FIGURES
Figure 2-29
TEACHER TIP
Let students know that comments can also be useful to explain the browser compatibility issues.
CLASSROOM ACTIVITIES
1. Class Discussion: Have students brainstorm ways to use comments in their DTDs.
TEACHER TIP
Remind students thatconditional sections cannot be applied to internal DTDs.
CLASSROOM ACTIVITIES
1. Class Discussion: If you have a computer with a projection device, show a couple of examples of
conditional sections. Can students think of other uses?
2. Quick Quiz:
True/False: One effective way of creating IGNORE sections is to create a parameter entity that
defines when the section should be included or not. (Answer: True)
BOXES
TIP: As an alternative to notations, you can place a URL that lists a resource for nontextual content
in an element or attribute, and then allow your application to work with that element or attribute
value directly. (XML 118)
Reference: Declaring an Unparsed Entity (XML 119)
TEACHER TIP
Stress that the notation will not necessarily enable an application to open. Current Web browsers may not
support notation mechanisms to display files from helper applications.
CLASSROOM ACTIVITIES
1. GroupActivity: Ask students to brainstorm scenarios in which unparsed data would be useful to an
XML document.
2. Quick Quiz:
1. True/False: Current Web browsers support mechanisms for validating and rendering unparsed
data declared in the DTDs of XML documents. (Answer: False)
2. True/False: An alternate to notations is to place a URL in an element or attribute. (Answer:
True)
BOXES
InSight: Advantages and Disadvantages of DTDs (XML 121)
Review:Session 2.3 Quick Check (XML 121)
FIGURES
Figure 2-30, Figure 2-31
TEACHER TIP
The online validator by W3C is a great tool. Show how to use it to validate and fix errors so that students
can become familiar with common errors.
CLASSROOM ACTIVITIES
1. GroupActivity: If you have a computer with a projection device, use it to show a portion of the
XHTML 1.0 strict DTD from W3C.org for another element or elements.
2. Quick Quiz:
True/False: Most standard vocabularies make their DTDs available online for inspection.
(Answer: True)
True/False:The W3C does not provide an online validator.(Answer: False)
LAB ACTIVITY
Students are going to modify the grades section of their XML document to include a reference to the
professor. They should modify their DTD to add the professor element. They should create elements for
five professors called prof1, prof2, prof3, prof4, and prof5. The elements should contain the professor’s
name and title (i.e., John Smith, Associate Professor). Then, in the XML, they should just reference the
entity when referring to the professor. They should then add appropriate comments to their work.
Finally, have the students validate their work again to make sure it is correct.
understanding of the soft skills and how to apply them appropriately in real-world, professional
situations that also involve software application skills. ProSkills exercises are offered at various
points throughout a text, encompassing the concepts and skills presented in a standalone tutorial or
a group of related tutorials.
Top of Document
The floors of Roman buildings were paved with tiny blocks of brick
called 'tesserae', three to four inches long and one inch wide. A piece
of flooring in the Grosvenor Museum shows that the bricks were laid
on a bed of cement or concrete in 'herring-bone' pattern, that is, with
the bricks at right angles to one another. A large number of tiles used
in roofing have been found all over the city; on many of these you will
see the stamp LEG XX VV of the Twentieth Legion. There was a tile
factory at Holt on the Dee where also many of these tiles bearing the
same stamp have recently been found.
The Romans taught the Britons many useful trades. 'Veratinum' or
Wilderspool became under the Romans quite a busy manufacturing
town, the forerunner of a modern Warrington or Wigan. The site of
the ancient Roman town has been carefully dug over. Traces have
been found of many pits, hearths, furnaces, and ovens for the
manufacture of glass and pottery, a bronze foundry, and an iron
smelting furnace, and an enameller's workshop. In the museums at
Warrington and at Stockport are many fragments of pottery found
here. Most of it is of a rough brown-red ware, called 'rough-cast', of
which the commoner utensils, water-jugs and bowls and funeral urns,
were made. A more ornamental kind is called 'Samian', and is of a
darker colour, highly glazed and decorated with embossed figures of
men and animals. Many articles of iron, knives, padlocks, keys, nails,
found on the same spot show that Veratinum was the Birmingham of
the Roman occupation.
Roman coins have been dug up in large numbers at Chester and other
sites along the Roman roads. Many of them are to be seen in Chester
Town Hall and in our museums. Nearly all the emperors of the first
four centuries are represented upon them. Several emperors came to
Britain, and we may be sure that in their tours of inspection they paid
visits to the important garrison city of the 'great legion'.
Some of these coins bear the name of Constantine, the first Christian
emperor, who was born at York, and whose mother was perhaps a
lady of British birth. There is unfortunately nothing to show that there
was any Christian church in Roman Cheshire, though many of the
Roman soldiers must have been familiar with the Christian faith.
Romans who became Christians were allowed to worship in the
basilica, which in after days, as we shall see, became the model upon
which Christian churches were built.
On a house near the East Gate of Chester are carved these words:
'The fear of the Lord is a fountain of life.' This is the translation of an
inscription on a Roman coin found when the workmen were digging
the foundations of the building. The coins of the Emperor Magnentius
show the monogram of the first two letters of Christ.
The Roman rule lasted for 370 years. During this period they had
transformed a desolate and barren land, inhabited by a people that
were almost savages, into a fertile and prosperous province; Britannia
Felix the Romans themselves called it. Large tracts of forest land were
cleared and brought under cultivation. Britain became one of the chief
granaries of Rome. In the museums you may see the Roman querns
or handmills with which they ground their corn.
The Romans worked the copper mines on Alderley Edge; stone
hammer-heads with which the Britons crushed the ore for their
Roman masters have been found there. A 'pig' of lead weighing over
a hundredweight, dug up in the Roodee, shows that lead mines were
extensively worked. The lead was brought to Chester from the mines
of Denbighshire and was part of the tribute paid by the Britons to the
Roman emperors. Salt, a scarce commodity in many countries, was
obtained, as at the present day, from the salt beds of Northwich.
At the end of the fourth century the Roman empire was overrun by
hordes of barbarians from Northern Europe. The Romans, weakened
by luxury and wealth, were unable to beat back the ruthless invaders.
Legion after legion was summoned from the distant parts of the
empire for the defence of the imperial city itself. About the year A.D.
380 the 'Conquering Legion' marched out for the last time through the
city gates of Chester, and by 410 no Roman soldiers were left in
Britain.
With sorrow and despair the Britons watched the last soldiers depart.
Their own fighting-men were far away in distant lands, and they knew
that without the protection of the Roman legions on whom they had
so long relied, they were left a defenceless prey of the foes that were
threatening them on all sides.
CHAPTER VII
SAXONS AND ANGLES COME TO CHESHIRE
During the latter years of the Roman occupation there must have
been many among the Roman soldiers stationed in Cheshire who had
heard the message of the Gospel, and, following the example of their
emperors, professed the faith of Christ. But, as we have before
stated, there is no proof that a Christian church existed in Cheshire in
those days, though tradition says that where the cathedral church of
Chester now stands there was a church dedicated to S. Peter and S.
Paul, which had previously been a temple of Apollo.
In Wales and Ireland the Church flourished greatly through the
troublous period of the Anglo-Saxon invasions. We are told that
Kentigern, the first bishop of Glasgow, on his return to Wales landed
in Wirral and founded a church there. In the previous chapter we
have seen that at Bangor-Iscoed on the Dee there was a monastery
of great importance, which after the victory of Aethelfrith of
Northumbria was razed to the ground.
Yet it was from Northumbria that Christianity was destined to be
brought and preached to the Angles and Saxons of Cheshire. Oswald,
the son of the heathen Aethelfrith, had during his exile in Scotland
been converted by Celtic missionaries. During the reign of this 'most
Christian king, a man dearly beloved of God, and fenced with the faith
of Christ', missionaries from Scotland 'began with great and fervent
devotion to preach the word of faith to those provinces which King
Oswald governed, baptising all such as believed. Therefore churches
were builded in places convenient: the people rejoicing assembled
together to hear the word of God,' The ancient churches dedicated to
S. Oswald at Chester, Malpas, Brereton, Peover, Bidston, and
Worleston, are proof of the great part played by King Oswald in the
conversion of Cheshire and of the high repute in which he was held as
a champion of Christianity.
The tiny hamlet of Chadkirk near Marple suggests to us a famous
missionary who lived at a time when Cheshire had become part of the
kingdom of Mercia. This was Ceadda or Chad, who was sent by the
Irish saint Colomba to preach the gospel to the people of Mercia, and
became in later times the patron saint of the bishopric of Mercia,
founded by King Offa. Chad, who like Oswald had received
Christianity from the Celtic missionaries of North Britain, continued
the good work of the Northumbrian missionaries. At the village of
Over were formerly two stone crosses which may well mark the spots
where Chad preached to the Saxons of Cheshire, baptizing the
converts in the river Weaver that flows hard by. The old church of
Over is dedicated to him, as are also the churches of Farndon and
Wybunbury. It is worthy of note that all the Cheshire churches named
after him were built on the banks of streams, which leads us to
suppose that S. Chad, like S. John the Baptist by the banks of Jordan,
chose places where his preaching might be immediately followed by
the ceremony of baptism.
At Sandbach are two stone crosses which are thought to be closely
connected with the conversion of Cheshire. The story goes that
Peada, son of Penda the heathen king of Mercia, wished to marry the
Christian daughter of Oswiu of Northumbria. To win the maiden the
young man consented to forsake his old religion and become a
Christian; whereupon the crosses were set up to commemorate his
conversion and marriage.
If you look carefully at the Sandbach crosses you will see that the
Angles of Mercia had reached a very high level of art in sculptured
stones. Carved upon them are several scenes in the life of our Lord,
the Nativity in the stable at Bethlehem with the ox and the ass
kneeling before the infant Christ, the Crucifixion with S. Mary and
Apostles below, Christ carrying the Cross, and Christ in glory with S.
Peter on His right hand bearing the keys of heaven.
Few crosses were, however, carved so elaborately as these Sandbach
crosses. The majority were doubtless of wood, set up in the middle of
the open space round which clustered the huts and wattled dwellings
of the inhabitants. Others consisted of a plain stone shaft set upright
in the ground or on a base of stone steps, sometimes rudely adorned
with scroll-work such as you may see on the fragments of a cross
preserved in the churchyard of Prestbury. Most of them have
perished, broken into fragments where they fell, or have been used
for repairs to damaged buildings. Many were wantonly destroyed in
the seventeenth century during the Civil War.
Anglian Crosses at Sandbach