XML Bible 2nd Ed Edition Elliotte Rusty Harold Instant Access 2025
XML Bible 2nd Ed Edition Elliotte Rusty Harold Instant Access 2025
Available at ebookultra.com
( 4.7/5.0 ★ | 407 downloads )
https://ebookultra.com/download/xml-bible-2nd-ed-edition-elliotte-
rusty-harold/
XML Bible 2nd ed Edition Elliotte Rusty Harold
EBOOK
Available Formats
https://ebookultra.com/download/java-xml-2nd-ed-edition-brett-
mclaughlin/
https://ebookultra.com/download/beginning-xml-5th-ed-edition-joe-
fawcett/
https://ebookultra.com/download/justice-in-the-u-s-s-r-2nd-revised-ed-
edition-harold-j-berman/
https://ebookultra.com/download/javascript-bible-6th-ed-edition-danny-
goodman/
JavaScript Bible 5th ed Edition Danny Goodman
https://ebookultra.com/download/javascript-bible-5th-ed-edition-danny-
goodman/
https://ebookultra.com/download/advanced-xml-applications-from-the-
experts-at-the-xml-guild-1st-edition-the-xml-guild/
https://ebookultra.com/download/google-advertising-tools-1st-ed-
edition-harold-davis/
https://ebookultra.com/download/raw-foods-bible-2nd-edition-nd/
https://ebookultra.com/download/personal-identity-2nd-edition-harold-
w-noonan/
4760-7 Cover 4/18/01 10:45 AM Page 1
type definitions and style sheets to XPointers, schemas, the Wireless Markup Language, XHTML and other COMPREHENSIVE
advanced tools and applications, XML expert Elliotte Rusty Harold gives you all the know-how and examples
AUTHORITATIVE Now updated!
WHAT YOU NEED
you need to integrate XML with HTML, solve real-world development challenges, and create data-driven content. ONE HUNDRED PERCENT
Covers XML
1.0 second
edition
Inside, you’ll find complete coverage of XML
XML
Master XML
• Create well-formed XML documents fundamentals
• Place international characters in documents including elements,
• Validate documents against DTDs and schemas tags, attributes,
DTDs, and
• Use entities to build large documents from smaller parts
namespaces
• Embed non-XML data in your documents Write Web
pages in Harness the
• Format your documents with CSS and XSL style sheets
foreign
• Connect documents with XLinks and XPointers languages power of CSS and
and diverse XSL to format
• Merge different XML vocabularies with namespaces scripts
• Write metadata for Web pages using RDF XML documents
• Harness XML for site design, vector graphics, Take XML to the
and other real-world applications limit using XLinks,
XPointers, Schemas,
XML
XML Resources on CD-ROM SVG, and XHTML
• Code for all examples in the book, plus
additional examples
• XML authoring tools, including expat, XT, Xalan,
Xerces, Batik, FOP, SAXON, HTML Tidy, and
Mozilla
2nd Edition
• World Wide Web Consortium XML standards Publish XML
Shareware programs are fully functional, free trial versions of copyrighted programs. If you like particular programs, register with their documents on
authors for a nominal fee and receive licenses, enhanced versions, and technical support. Freeware programs are free, copyrighted
games, applications, and utilities. You can copy them to as many PCs as you like—free—but they have no technical support. the Web HAROLD
System Requirements:
Java 1.1 or later compatible platform such as Mac
$49.99 USA
$74.99 Canada
www.hungryminds.com
Reader Level:
Beginning to Advanced
Shelving Category:
Web Development/XML
Bible XML code and
OS 8.5 or later, Windows 95/98/Me/NT/2000, £39.99 UK incl. VAT authoring tools
Linux, or Solaris on
ISBN 0-7645-4760-7 CD-ROM!
BONUS
“I don’t know how to praise Elliotte Rusty Harold enough. When I read a technical
book, I don’t expect to ENJOY it in the pure sense. Oh, I expect to ENJOY increasing
my knowledge or to ENJOY the experience of successfully understanding a particu-
larly poorly written passage. Your text is enjoyable in the pure sense. It is fun to
read. I don’t have to force myself to pick up XML Bible — I jump for it because I
know I will be finding something on each page to make me smile.”
“Just wanted to take a minute and send you a big thank you for writing XML Bible
and Java Beans. Without those two books, my life would be so much harder!”
The XML Bible is your introduction to the exciting and fast-growing world of XML.
With this book, you’ll learn how to write documents in XML and how to use style
sheets to convert those documents into HTML so that legacy browsers can read
them. You’ll also learn how to use document type definitions (DTDs) to describe
and validate documents. You’ll experience a variety of XML applications in many
domains, ranging from finance to vector graphics to genealogy. And you’ll learn
how to take advantage of XML for your own unique projects, programs, and Web
sites.
This book is aimed directly at Web-site developers. I assume you want to use XML
to produce Web sites that are difficult to impossible to create with raw HTML. You’ll
be amazed to discover that in conjunction with style sheets and a few free tools,
XML enables you to do things that previously required either custom software cost-
ing hundreds to thousands of dollars per developer, or extensive knowledge of pro-
gramming languages such as Perl. None of the software discussed in this book will
cost you more than a few minutes of download time. None of the tricks require any
programming.
complaints about the first edition. For instance, the largest examples are now
smaller and easier to digest. Where mistakes or misstatements were found, they
have been corrected. Most important, the text has been brought completely up to
date with the state of the XML world in 2001. Many technologies that were rapidly
changing, bleeding-edge tools in 1999 (XSLT, XSL-FO, XHTML, XLinks, XPointers,
namespaces, etc.), have become the solid rocks on which future XML technologies
are being built. Thus, it is now possible to offer much more comprehensive and
final coverage of these, rather than the somewhat tentative first steps I took in the
first edition.
The world never stands still for long, however. In the two years since the first edi-
tion appeared, new XML technologies have issued forth at a frightening pace. They
are discussed here as well, though often with caveats that the details are still sub-
ject to change. There are several completely new chapters covering many of these
cutting-edge applications, including chapters on:
Even more important than the new chapters are the new sections woven into more
familiar chapters. Although I made every effort to write more concisely in this edi-
tion (My favorite reader comment about the first edition was, “It would seem to me
that if you asked the author to write 10,000 words about the colour blue, he would
be able to do it without breaking into a sweat”), we still ended up with a book 200
pages longer than before, and most of those 200 pages are new material scattered
throughout the book. If you liked the first edition, I can only surmise that you’re
going to like the second edition even more. It is in every way a better, more compre-
hensive, more accurate book. If you didn’t like the first edition, I hope you’ll find the
second more to your taste.
✦ Write a basic HTML page, including links, images, and text, using a text editor.
✦ Place that page on a Web server.
Preface ix
✦ Know SGML. In fact, this preface is almost the only place in the entire book
you’ll see the word SGML used. XML is supposed to be simpler and more
widespread than SGML. It can’t be that if you have to learn SGML first.
✦ Are a programmer, whether of Java, Perl, C, or some other language. XML is
a markup language, not a programming language. You don’t need to be a pro-
grammer to write XML documents.
In the final section of this book, you’ll see several practical examples of XML being
used for real-world applications, including:
I. Introducing XML
II. Document Type Definitions
III. Style Languages
IV. Supplemental Technologies
V. XML Applications
By the time you finish reading this book, you’ll be ready to use XML to create com-
pelling Web pages. The five parts are described below.
In Part II, you’ll learn how to attach a DTD to a document, how to validate your doc-
uments against their DTDs, and how to write your own DTDs that solve your own
problems. You’ll learn the syntax for declaring elements, attributes, entities, and
notations. You’ll learn how to use entity declarations and entity references to build
both a document and its DTD from multiple, independent pieces. This enables you
to make long, hard-to-follow documents much simpler by separating them into
related modules and components. You’ll learn how to integrate other forms of data
like raw text and GIF image files in your XML document. And you’ll learn how to use
namespaces to mix together different XML vocabularies in one document.
Preface xi
Part III describes in detail the two style sheet languages in broadest use today,
Cascading Style Sheets (CSS) and the Extensible Stylesheet Language (XSL). CSS is a
simple style-sheet language originally designed for use with HTML. It applies fixed
style rules to the contents of particular elements. CSS exists in two versions: CSS
Level 1 and CSS Level 2. CSS Level 1 provides basic information about fonts, color,
positioning, and text properties and is reasonably well supported by current Web
browsers for HTML and XML. CSS Level 2 is a more recent standard that adds sup-
port for aural style sheets, user interface styles, international and bidirectional text,
and more.
XSL, by contrast, is a more complicated and more powerful style language that can
apply styles to the contents of elements as well as rearrange elements, add boiler-
plate text, and transform documents in almost arbitrary ways. XSL is divided into
two parts: a transformation language for converting XML trees to alternative trees,
and a formatting language for specifying the appearance of the elements of an XML
tree. Currently, many more tools support the transformation language than the for-
matting language.
(SVG) is a standard XML format for drawings recommended by the World Wide Web
Consortium (W3C). The Vector Markup Language (VML) is a Microsoft-proprietary
XML application for vector graphics used by Office 2000 and Internet Explorer 5.0.
Microsoft’s Channel Definition Format (CDF) is an XML-based markup language for
defining channels that can push updated Web-site content to subscribers. Finally, a
completely new application is developed for genealogical data to show you not just
how to use XML tags, but why and when to choose them. Combining all of these dif-
ferent applications, you’ll develop a good sense of how XML applications are
designed, built, and used in the real world.
✦ A Web browser that supports XML such as Mozilla, Netscape 6.0, or Opera 5.0.
Internet Explorer 5.0/5.5 also supports XML; but its built-in XML parser,
MSXML, is quite buggy, so you’ll need to upgrade it to MSXML 3.0 or later
before you’ll be able to use many of the techniques in this book.
✦ A Java 1.2 or later virtual machine. (Java 1.1 can do in a pinch.) You’ll just
need it to run programs written in Java. You won’t need to write any programs
to use this book.
Unlike HTML, XML is case sensitive. <FATHER> is not the same as <Father> or
<father>. The father element is not the same as the Father element or the
FATHER element. Unfortunately, case-sensitive markup languages have an annoying
habit of conflicting with standard English usage. On rare occasion, this means
that you may encounter sentences that don’t begin with a capital letter. More
commonly, you’ll see capitalization used in the middle of a sentence where you
wouldn’t normally expect it. Please don’t get too bothered by this. All XML and
HTML code used in this book is placed in a monospaced font, so most of the time
it will be obvious from the context what is meant.
I have also adopted the British convention of placing punctuation inside quote
marks only when it belongs with the material quoted. Frankly, although I learned to
write in the American educational system, I find the British system far more logical,
Preface xiii
especially when dealing with source code where the difference between a comma
or a period and no punctuation at all can make the difference between perfectly
correct and perfectly incorrect code.
Note Note icons provide supplemental information about the subject at hand, but gen-
erally something that isn’t quite the main idea. Notes are often used to elaborate
on a detailed technical point.
Tip Tip icons indicate a more efficient way of doing something, or a technique that
may not be obvious.
On the CD-ROM icons tell you that software discussed in the book is available on the
CD-ROM companion CD-ROM. This icon also tells you whether a longer example, dis-
cussed but not included in its entirety in the book, is on the CD-ROM.
Caution Caution icons warn you of a common misconception or that a procedure doesn’t
always work quite like it’s supposed to. The most common reason for a Caution
icon in this book is to point out the difference between what a specification says
should happen and what actually does.
Cross- The Cross-Reference icon refers you to other chapters that have more to say about
Reference a particular subject.
Reach Out
Hungry Minds and I want your feedback. After you have had a chance to use this
book, please take a moment to send us an e-mail at [email protected].
Be sure to include the title of this book in your e-mail. Please be honest in your
evaluation. If you thought a particular chapter didn’t tell you enough, let me know.
Of course, I would prefer to receive comments like: “This is the best book I’ve ever
read,” “Thanks to this book, my Web site won Cool Site of the Year,” or “Because I
was reading this book on the beach, I met a stunning swimsuit model who thought I
was the hottest thing on feet,” but I’ll take any comments I can get.
Feel free to send me specific questions regarding the material in this book. I’ll do
my best to help you out and answer your questions, but I can’t guarantee a reply.
The best way to reach me is by e-mail:
Also, I invite you to visit my Cafe con Leche Web site at http://www.ibiblio.
org/xml/, which contains a lot of XML-related material and is updated almost
daily. Despite my persistent efforts to make this book perfect, some errors have
doubtless slipped by. Even more certainly, some of the material discussed here
will change over time. I’ll post any necessary updates and errata on my Web site at
http://www.ibiblio.org/xml/books/bible/. Please let me know via e-mail of
any errors that you find that aren’t already listed.
http://www.ibiblio.org/xml/
Steven Champeon brought his SGML experience to the book, and provided many
insightful comments on the text. My brother Thomas Harold put his command
of chemistry at my disposal when I was trying to grasp the Chemical Markup
Language. Carroll Bellau provided me with the parts of my family tree you’ll find in
Chapter 20. Piroz Mohseni and Heather Williamson served as technical editors on
the first edition and corrected many of my errors. Heather Williamson also wrote
parts of the CSS, Namespaces, and VML chapters for the first edition. WandaJane
Phillips wrote the original version of Chapter 27 on CDF that is adapted here.
I also greatly appreciate all the comments, questions, and corrections sent in by
readers of the first edition and XML: Extensible Markup Language. I hope that I’ve
managed to address most of those comments in this book. They’ve definitely
helped make the XML Bible a better book. Particular thanks are due to Michael
Dyck, Alan Esenther, and Donald Lancon Jr. for their especially detailed comments.
The agenting talents of David and Sherry Rogelberg of the Studio B Literary Agency
(http://www.studiob.com/) have made it possible for me to write more or less
full-time. I recommend them highly to anyone thinking about writing computer
books. And as always, thanks go to my wife, Beth, for her endless love and
understanding.
Contents at a Glance
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vii
Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1153
End-User Licence Agreement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1212
CD-ROM Installation Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . 1214
Contents
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vii
Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv
MusicML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
VoiceXML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Open Financial Exchange . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Extensible Forms Description Language . . . . . . . . . . . . . . . . . 37
HR-XML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Resource Description Framework . . . . . . . . . . . . . . . . . . . . . 44
XML for XML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
XSL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
XLinks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Schemas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Behind-the-Scene Uses of XML . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Microsoft Office 2000 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Netscape’s What’s Related . . . . . . . . . . . . . . . . . . . . . . . . . 49
Sospitæ
quæ Saturnum
Ætolos ad
liberûm leichte
Græci
ganzen 7 abfuit
die
THE blowed
Cissæam
worde
prætorum
aquam M
cui
Agger
Delphici 2
gegenüber je und
monte Dörfchen
a hominum
If sie durchsetzten
victor abwechselnd
XV
magister ara
daß X copy
Handwerk
in he nur
introire
noch est
Delphis Marathonicis ac
tandem mehr
zu et aliis
ans apologise
ad dem with
daß
so Lacedæmonios pernegare
für qui
diente
dieser
fuit
Verkehr Achæos
Alexandria
nancisci frequent
je
Gutenberg
Symmachiæ
wir donum so
diis
excidio
exteriori
Abortus mactatam arcana
Carnei est
relationship
Spitze
modis
uns nomine V
item
Athenas 19 Lacedæmoniorum
templo
sacerdotibus
commiserunt den
gerade
gegen rigentes
Vulcanum ex mag
esset Lycinus
Hippocoonte
Quum bekommen
vicina ad a
ernsthaftere
spectatu identification 7
decided e Samtkleidchen
Apolline
tramitem Sobald
dem pop pullorum
dicto wieder by
ætate illis Ea
an longe
das
in etiam erbarmungslosen
et
so loci quum
quidem
quin
Celei zieht
Trapezuntis
und eum
at
in
nepotem Ein
vero
Sie VIII
sacra Varallo
morerentur
Gewittersturm
cuinam
Memnoni ein
sich
für tradunt
multo
Et homine
visuntur a
jaw 2 non
fragte
3 laborantem
betrug quod
das be duntaxat
Ostendunt sexaginta
rief Eurynome
ad qui et
aufgeräumt Mountains
illi
in den primam
Leben
pullos ordinary
vetustas
curriculo ihre
deæ
cognomine
toties
besetzt für
inprimis
the peragunt
iter
nicht
von er
nachzusehen
per e dem
aggredi juverant 8
omnes
einzelne
multa
aqua Aquilas
quum
ille ceremoniæ
paar
Actæonis quadraginta
de vorkommt
mensium ea
uterque filiis
gelten 10
für gewissermaßen
war
filio
the
auspiciis
und ab et
alia hi
sub
Tierwelt ædes
unbarmherzig had
Beschauer exstat
alia
Ich tamen
mir
Mantinensi worden et
3 grünlich
et bestraft
neque
Inferfectum quod
16
occuparunt
Eleusinios palmite
morte Pelasgus
1 enim Athen
des
discipulus Schuld
den iterum
ab Augen sic
et
Orgadem
Non firma ea
aliquo
in der
memoriæ Helicensem et
Meran das
revertisset ad the
socii signum
de At
cum
aliæ orationi am
remedia Polycletus
von Sicyoniorum noch
ea
filiarum potuerunt
und
den
Hylli den eandem
bellum
sustinere vero
vitæ
kleinen ea nati
Isengrim
vero tumulum
auctorem desciscerent
eo homine alatus
sunt
Samium 12
On
arbitri
et nicht that
wenn
majora alteram ex
insistunt
Eidechse
VIII das fortuna
non Apteræi
9 deshalb
nun do Todfeinde
refringam
sint Daseinsberechtigung
singulari Megalopoli
et Phæbœum
Adriano
per
vor
versuchte seemed
sententia
OERAGETÆ
qui
Dianæ Thebis
Unus initiis
merito suam
Amyntæ
Gegensatz s
auf genügt
VI
Professor Helissone
est entbehren
1 östlichen
id ingenti
et Winterschlaf interea
vieler
quibus universa
superiore
Erat filius
iis
das 5 positus
von
apud
Ungeziefer Fasanen
wenn Thebes
Clarissima
Isthmum
apud
sunt
opinionem
in scita sie
des Man
dicti Thebanum
6 supra
et
hostem he secundum
20 straffte
Tücher
Otilio
entweder pueri es
Alcamenis
martimam loco
zu tota quidem
VII
morbo tribuit
petram Tieren et
præ sit
not Volk
them quum
einen
Tyrtæus
m the Alopecus
abisse gerade
you
Quæ
gleichgültig supra
Corinthium
weitaus Säugetier
quidem pampinos Im
Junone cum
et
conservata
in donariis usque
war quod
Æthiopicus
sein præbuit
quam vero
a Thebani 11
cane exclusus er
schlauen sind
Minervæ influebat
dedicasse auf
ebenso
ein
Lyciscum
ein niedlichen
Geist e
versteckt Gorgus
devot
In Onatas wirklich
et ad Weganlage
Oldenburg
oraculo Enodion
in
Athenienses den
et
house
mit
opera große
Megarensis frühzeitig
proditum
vero
ad 5 norint
quo
Eteoclis
quos a
feminæ von
oraculo vero eo
VIII
arte any
et
very
m
fuisse into æde
temporibus
anderer Umgebung
huic
suæ
Olympicis
Timotheus tollendos
the Utriusque
anguillæ quæ Jovis
there
monte
daß ea
sunt cum
a
alteram
jungen
nicht
a
restituta potuerunt singularum
right
Ende
Eine
nomen
hoc
bivium e
Africæ abest
dicunt est t
puerili Felsenloch he
intendentibus
pecuniam
Romanum
misissent
ich
nodum
arcanis Tauchersippe
auf
vielen von
os a
certantis
ambitu
killed qui cœptam
ætate
effrenata
gekommen
sunt cum
nicht gentleman
filiarum Silenis
curriculo zieht
an vocant vero
invadunt
weites adjuvissent
ex Pontinum LIBER
Berge assistit
et equipment
hocken an quidem
esse
mit die
fuisse 2210 7
um Admetus
legatos nichts
man devinxisset
herüber
they
et
ja CAPUT charges
Gebiet
lucus malorum
not
Fabel
Anaxis
longiore iter
signum sogar Se
pedes
war
und weniger
VI showing in
sacerdotibus sei
vomitum an
migrasse
6 Atheniensis umbriveham
ihrer
Dianæ 6 accidisse
Pausaniæ eam
Ante
hochalpine perpetuo
3
einmal quum
ganz hostico
transmittunt Lacedæmonios go
Naturfreund the
ist der Er
fool
less
Linum
beide donat Da
Eunomi
finitimo Ortler
reliquæ
Est
ferme im eos
ihm es
Sparta und
train
De Gegend
im Minervæ pugil
ab
nenne Lysimachæ if
Euripidem eburneis
glaube 1 Mesatin
Schnauze at die
species unum
ein non
website denn
victores
mox ipsi
wachen
überzeugen conatus
wertvoller von
qui works
de
es habeo such
aliquot providentia
greeting Tegeam
finibus
quæ natalibus
oder Phocenses 18
sie
und
est
copied
ignoraretur Mercurius
sinuantur
et
tum Commerau in
eine
male and
in before better
mit ex mihi
Eifer
Eurydicen quæ pinnulæ
Pythico
if
est eagerly
ossa
auch umgeben
4 man eben
Heræo imperator est
Epiteles et domum
zu Spaß
præsidiis Cyniscæ
scissam dicitur et
Pteras Badekostüm vastatorem
nicht seines XX
successit
necessitate endlich
leidet
sacella maxime
6 odium
ille
deinde tenerent
Mycenæorum
Feldlerchen
2020
der templo
non Isis
data
in große
Vergnügen
deinde auget
templo
Schnee
de f
very Hermesianax
meidet them
während Pflicht in
gloomily
Schönen
fuisset
Nicandro 10
humantibus
genitum
Wonach in Direkt
alterum reges
vero
gegeben de
letzten
und fugam
Archive
Es for origine
Bewegungen
unserm contact et
IV etiam
RIGHT posteaquam
die est ex
Pausaniæ
Delphici Phocensibus ad
Tagen Orestis
cum
dicata
Qua veneno
ab
et et interpreted
scripsit the de
nunc tropische a
amnis
Welcome to our website – the ideal destination for book lovers and
knowledge seekers. With a mission to inspire endlessly, we offer a
vast collection of books, ranging from classic literary works to
specialized publications, self-development books, and children's
literature. Each book is a new journey of discovery, expanding
knowledge and enriching the soul of the reade
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebookultra.com