Chapter01


3236-7 ch01.F.qc 6/29/99 1:03 PM Page 3
C H A P T E R
1
1
An Eagle s Eye
View of XML
&' &' &' &'
In This Chapter
What is XML?
his first chapter introduces you to XML. It explains in
Tgeneral what XML is and how it is used. It shows you how
Why are developers
the different pieces of the XML equation fit together, and how
excited about XML?
an XML document is created and delivered to readers.
The life of an XML
document
What Is XML?
Related technologies
XML stands for Extensible Markup Language (often written as
&' &' &' &'
eXtensibleMarkup Language to justify the acronym). XML is a
set of rules for defining semantic tags that break a document
into parts and identify the different parts of the document. It
is a meta-markup language that defines a syntax used to define
other domain-specific, semantic, structured markup languages.
XML Is a Meta-Markup Language
The first thing you need to understand about XML is that it
isn t just another markup language like the Hypertext Markup
Language (HTML) or troff. These languages define a fixed set
of tags that describe a fixed number of elements. If the markup
language you use doesn t contain the tag you need  you re
out of luck. You can wait for the next version of the markup
language hoping that it includes the tag you need; but then
you re really at the mercy of what the vendor chooses to
include.
XML, however, is a meta-markup language. It s a language
in which you make up the tags you need as you go along.
These tags must be organized according to certain general
principles, but they re quite flexible in their meaning. For
instance, if you re working on genealogy and need to desc-
ribe people, births, deaths, burial sites, families, marriages,
divorces, and so on, you can create tags for each of these.
You don t have to force your data to fit into paragraphs, list
items, strong emphasis, or other very general categories.
3236-7 ch01.F.qc 6/29/99 1:03 PM Page 4
Part I &' Introducing XML
4
The tags you create can be documented in a Document Type Definition (DTD).
You ll learn more about DTDs in Part II of this book. For now, think of a DTD as a
vocabulary and a syntax for certain kinds of documents. For example, the MOL.DTD
in Peter Murray-Rust s Chemical Markup Language (CML) describes a vocabulary
and a syntax for the molecular sciences: chemistry, crystallography, solid state
physics, and the like. It includes tags for atoms, molecules, bonds, spectra, and so
on. This DTD can be shared by many different people in the molecular sciences
field. Other DTDs are available for other fields, and you can also create your own.
XML defines a meta syntax that domain-specific markup languages like MusicML,
MathML, and CML must follow. If an application understands this meta syntax, it
automatically understands all the languages built from this meta language. A
browser does not need to know in advance each and every tag that might be used
by thousands of different markup languages. Instead it discovers the tags used by
any given document as it reads the document or its DTD. The detailed instructions
about how to display the content of these tags are provided in a separate style
sheet that is attached to the document.
For example, consider Schrodinger s equation:
"È r, t
h2 "2È r, t + V(r) È r, t
ih =  2m
"t
"x2
Scientific papers are full of equations like this, but scientists have been waiting
eight years for the browser vendors to support the tags needed to write even the
most basic math. Musicians are in a similar bind, since Netscape Navigator and
Internet Explorer don t support sheet music.
XML means you don t have to wait for browser vendors to catch up with what you
want to do. You can invent the tags you need, when you need them, and tell the
browsers how to display these tags.
XML Describes Structure and
Semantics, Not Formatting
The second thing to understand about XML is that XML markup describes a
document s structure and meaning. It does not describe the formatting of the
elements on the page. Formatting can be added to a document with a style sheet.
The document itself only contains tags that say what is in the document, not what
the document looks like.
3236-7 ch01.F.qc 6/29/99 1:03 PM Page 5
Chapter 1 &' An Eagle s Eye View of XML
5
By contrast, HTML encompasses formatting, structural, and semantic markup.
is a formatting tag that makes its content bold. is a semantic tag that
means its contents are especially important. is a structural tag that indicates
that the contents are a cell in a table. In fact, some tags can have all three kinds of
meaning. An

tag can simultaneously mean 20 point Helvetica bold, a level-1
heading, and the title of the page.
For example, in HTML a song might be described using a definition title, definition
data, an unordered list, and list items. But none of these elements actually have
anything to do with music. The HTML might look something like this:
Hot Cop
by Jacques Morali, Henri Belolo, and Victor Willis

  • Producer: Jacques Morali
  • Publisher: PolyGram Records
  • Length: 6:20
  • Written: 1978
  • Artist: Village People

In XML the same data might be marked up like this:

Hot Cop
Jacques Morali
Henri Belolo
Victor Willis
Jacques Morali
PolyGram Records
6:20
1978
Village People

Instead of generic tags like
and
  • , this listing uses meaningful tags like
    , , <COMPOSER>, and <YEAR>. This has a number of advantages,<br>including that it s easier for a human to read the source code to determine what <br>the author intended. <br>XML markup also makes it easier for non-human automated robots to locate all of<br>the songs in the document. In HTML robots can t tell more than that an element is <br>a dt. They cannot determine whether that dtrepresents a song title, a definition, <br>or just some designer s favorite means of indenting text. In fact, a single document<br>may well contain dtelements with all three meanings.<br>XML element names can be chosen such that they have extra meaning in additional<br>contexts. For instance, they might be the field names of a database. XML is far more<br>flexible and amenable to varied uses than HTML because a limited number of tags<br>don t have to serve many different purposes. <br> 3236-7 ch01.F.qc 6/29/99 1:03 PM Page 6<br>Part I &' Introducing XML<br>6<br>Why Are Developers Excited about XML?<br>XML makes easy many Web-development tasks that are extremely painful<br>using only HTML, and it makes tasks that are impossible with HTML, possible.<br>Because XML is eXtensible, developers like it for many reasons. Which ones<br>most interest you depend on your individual needs. But once you learn XML,<br>you re likely to discover that it s the solution to more than one problem<br>you re already struggling with. This section investigates some of the <br>generic uses of XML that excite developers. In Chapter 2, you ll see some <br>of the specific applications that have already been developed with XML.<br>Design of Domain-Specific Markup Languages<br>XML allows various professions (e.g., music, chemistry, math) to develop their own<br>domain-specific markup languages. This allows individuals in the field to trade<br>notes, data, and information without worrying about whether or not the person on<br>the receiving end has the particular proprietary payware that was used to create<br>the data. They can even send documents to people outside the profession with a<br>reasonable confidence that the people who receive them will at least be able to<br>view the documents.<br>Furthermore, the creation of markup languages for individual domains does not<br>lead to bloatware or unnecessary complexity for those outside the profession. You<br>may not be interested in electrical engineering diagrams, but electrical engineers<br>are. You may not need to include sheet music in your Web pages, but composers<br>do. XML lets the electrical engineers describe their circuits and the composers<br>notate their scores, mostly without stepping on each other s toes. Neither field will<br>need special support from the browser manufacturers or complicated plug-ins, as is<br>true today.<br>Self-Describing Data<br>Much computer data from the last 40 years is lost, not because of natural disaster or<br>decaying backup media (though those are problems too, ones XML doesn t solve),<br>but simply because no one bothered to document how one actually reads the data<br>media and formats. A Lotus 1-2-3 file on a 10-year old 5.25-inch floppy disk may be<br>irretrievable in most corporations today without a huge investment of time and<br>resources. Data in a less-known binary format like Lotus Jazz may be gone forever. <br>XML is, at a basic level, an incredibly simple data format. It can be written in 100<br>percent pure ASCII text as well as in a few other well-defined formats. ASCII text is<br>reasonably resistant to corruption. The removal of bytes or even large sequences of<br>bytes does not noticeably corrupt the remaining text. This starkly contrasts with<br>many other formats, such as compressed data or serialized Java objects where the<br>corruption or loss of even a single byte can render the entire remainder of the file<br>unreadable.<br> 3236-7 ch01.F.qc 6/29/99 1:03 PM Page 7<br>Chapter 1 &' An Eagle s Eye View of XML<br>7<br>At a higher level, XML is self-describing. Suppose you re an information archaeologist<br>in the 23rd century and you encounter this chunk of XML code on an old floppy disk<br>that has survived the ravages of time:<br><PERSON ID= p1100 SEX= M ><br><NAME><br><GIVEN>Judson</GIVEN><br><SURNAME> McDaniel</SURNAME><br></NAME><br><BIRTH><br><DATE>21 Feb 1834</DATE> </BIRTH><br><DEATH><br><DATE>9 Dec 1905</DATE> </DEATH><br></PERSON><br>Even if you re not familiar with XML, assuming you speak a reasonable facsimile of<br>20th century English, you ve got a pretty good idea that this fragment describes a<br>man named Judson McDaniel, who was born on February 21, 1834 and died on<br>December 9, 1905. In fact, even with gaps in, or corruption of the data, you could<br>probably still extract most of this information. The same could not be said for some<br>proprietary spreadsheet or word-processor format.<br>Furthermore, XML is very well documented. The W3C s XML 1.0 specification and<br>numerous paper books like this one tell you exactly how to read XML data. There<br>are no secrets waiting to trip up the unwary.<br>Interchange of Data Among Applications<br>Since XML is non-proprietary and easy to read and write, it s an excellent <br>format for the interchange of data among different applications. One such <br>format under current development is the Open Financial Exchange Format <br>(OFX). OFX is designed to let personal finance programs like Microsoft Money<br>and Quicken trade data. The data can be sent back and forth between programs<br>and exchanged with banks, brokerage houses, and the like.<br>Cross-<br>OFX is discussed in Chapter 2.<br>Reference<br>As noted above, XML is a non-proprietary format, not encumbered by copyright,<br>patent, trade secret, or any other sort of intellectual property restriction. It has<br>been designed to be extremely powerful, while at the same time being easy for <br>both human beings and computer programs to read and write. Thus it s an <br>obvious choice for exchange languages.<br>By using XML instead of a proprietary data format, you can use any tool that<br>understands XML to work with your data. You can even use different tools for<br>different purposes, one program to view and another to edit for instance. XML<br>keeps you from getting locked into a particular program simply because that s what<br> 3236-7 ch01.F.qc 6/29/99 1:03 PM Page 8<br>Part I &' Introducing XML<br>8<br>your data is already written in, or because that program s proprietary format is all<br>your correspondent can accept.<br>For example, many publishers require submissions in Microsoft Word. This <br>means that most authors have to use Word, even if they would rather use<br>WordPerfect or Nisus Writer. So it s extremely difficult for any other company <br>to publish a competing word processor unless they can read and write Word <br>files. Since doing so requires a developer to reverse-engineer the undocumented<br>Word file format, it s a significant investment of limited time and resources. Most<br>other word processors have a limited ability to read and write Word files, but <br>they generally lose track of graphics, macros, styles, revision marks, and other<br>important features. The problem is that Word s document format is undocu-<br>mented, proprietary, and constantly changing. Word tends to end up winning <br>by default, even when writers would prefer to use other, simpler programs. If <br>a common word-processing format were developed in XML, writers could use <br>the program of their choice.<br>Structured and Integrated Data<br>XML is ideal for large and complex documents because the data is structured. It not<br>only lets you specify a vocabulary that defines the elements in the document; it<br>also lets you specify the relations between elements. For example, if you re putting<br>together a Web page of sales contacts, you can require that every contact have a<br>phone number and an email address. If you re inputting data for a database, you<br>can make sure that no fields are missing. You can require that every book have an<br>author. You can even provide default values to be used when no data is entered. <br>XML also provides a client-side include mechanism that integrates data from<br>multiple sources and displays it as a single document. The data can even be<br>rearranged on the fly. Parts of it can be shown or hidden depending on user<br>actions. This is extremely useful when you re working with large information<br>repositories like relational databases.<br>The Life of an XML Document<br>XML is, at the root, a document format. It is a series of rules about what XML<br>documents look like. There are two levels of conformity to the XML standard. The<br>first is well-formedness and the second is validity. Part I of this book shows you how<br>to write well-formed documents. Part II shows you how to write valid documents. <br>HTML is a document format designed for use on the Internet and inside Web<br>browsers. XML can certainly be used for that, as this book demonstrates. However,<br>XML is far more broadly applicable. As previously discussed, it can be used as a<br>storage format for word processors, as a data interchange format for different<br>programs, as a means of enforcing conformity with Intranet templates, and as a way<br>to preserve data in a human-readable fashion. <br> 3236-7 ch01.F.qc 6/29/99 1:03 PM Page 9<br>Chapter 1 &' An Eagle s Eye View of XML<br>9<br>However, like all data formats, XML needs programs and content before it s useful. So it<br>isn t enough to only understand XML itself which is little more than a specification for<br>what data should look like. You also need to know how XML documents are edited, how<br>processors read XML documents and pass the information they read on to applications,<br>and what these applications do with that data. <br>Editors<br>XML documents are most commonly created with an editor. This may be a basic<br>text editor like Notepad or vi that doesn t really understand XML at all. On the<br>other hand, it may be a completely WYSIWYG editor like Adobe FrameMaker that<br>insulates you almost completely from the details of the underlying XML format. Or<br>it may be a structured editor like JUMBO that displays XML documents as trees. For<br>the most part, the fancy editors aren t very useful yet, so this book concentrates on<br>writing raw XML by hand in a text editor. <br>Other programs can also create XML documents. For example, later in this book, in<br>the chapter on designing a new DTD, you ll see some XML data that came straight out<br>of a FileMaker database. In this case, the data was first entered into the FileMaker<br>database. Then a FileMaker calculation field converted that data to XML. In general,<br>XML works extremely well with databases. <br>Cross- Specifically, you ll see this in Chapter 23, Designing a New XML Application.<br>Reference<br>In any case, the editor or other program creates an XML document. More often <br>than not this document is an actual file on some computer s hard disk, but it<br>doesn t absolutely have to be. For example, the document may be a record or <br>a field in a database, or it may be a stream of bytes received from a network. <br>Parsers and Processors<br>An XML parser (also known as an XML processor) reads the document and verifies<br>that the XML it contains is well formed. It may also check that the document is<br>valid, though this test is not required. The exact details of these tests will be<br>covered in Part II. But assuming the document passes the tests, the processor<br>converts the document into a tree of elements. <br>Browsers and Other Tools<br>Finally the parser passes the tree or individual nodes of the tree to the end<br>application. This application may be a browser like Mozilla or some other <br>program that understands what to do with the data. If it s a browser, the data <br>will be displayed to the user. But other programs may also receive the data. <br>For instance, the data might be interpreted as input to a database, a series of<br>musical notes to play, or a Java program that should be launched. XML is extr-<br>emely flex-ible and can be used for many different purposes. <br> 3236-7 ch01.F.qc 6/29/99 1:03 PM Page 10<br>Part I &' Introducing XML<br>10<br>The Process Summarized<br>To summarize, an XML document is created in an editor. The XML parser reads the<br>document and converts it into a tree of elements. The parser passes the tree to the<br>browser that displays it. Figure 1-1 shows this process.<br>Figure 1-1: XML Document Life Cycle<br>It s important to note that all of these pieces are independent and decoupled from<br>each other. The only thing that connects them all is the XML document. You can<br>change the editor program independently of the end application. In fact you may<br>not always know what the end application is. It may be an end user reading your<br>work, or it may be a database sucking in data, or it may even be something that<br>hasn t been invented yet. It may even be all of these. The document is independent<br>of the programs that read it. <br>HTML is also somewhat independent of the programs that read and write it, but it s<br>Note<br>really only suitable for browsing. Other uses, like database input, are outside its<br>scope. For example, HTML does not provide a way to force an author to include cer-<br>tain required content, like requiring that every book have an ISBN number. In XML<br>you can require this. You can even enforce the order in which particular elements<br>appear (for example, that level-2 headers must always follow level-1 headers).<br>Related Technologies<br>XML doesn t operate in a vacuum. Using XML as more than a data format requires<br>interaction with a number of related technologies. These technologies include<br>HTML for backward compatibility with legacy browsers, the CSS and XSL style-<br>sheet languages, URLs and URIs, the XLL linking language, and the Unicode<br>character set. <br>Hypertext Markup Language<br>Mozilla 5.0 and Internet Explorer 5.0 are the first Web browsers to provide some<br>(albeit incomplete) support for XML, but it takes about two years before most users<br>have upgraded to a particular release of the software. (In 1999, my wife Beth is still<br> 3236-7 ch01.F.qc 6/29/99 1:03 PM Page 11<br>Chapter 1 &' An Eagle s Eye View of XML<br>11<br>using Netscape 1.1.) So you re going to need to convert your XML content into<br>classic HTML for some time to come.<br>Therefore, before you jump into XML, you should be completely comfortable with<br>HTML. You don t need to be an absolutely snazzy graphical designer, but you<br>should know how to link from one page to the next, how to include an image in a<br>document, how to make text bold, and so forth. Since HTML is the most common<br>output format of XML, the more familiar you are with HTML, the easier it will be to<br>create the effects you want.<br>On the other hand, if you re accustomed to using tables or single-pixel GIFs to<br>arrange objects on a page, or if you start to make a Web site by sketching out its<br>appearance rather than its content, then you re going to have to unlearn some bad<br>habits. As previously discussed, XML separates the content of a document from the<br>appearance of the document. The content is developed first; then a format is<br>attached to that content with a style sheet. Separating content from style is an<br>extremely effective technique that improves both the content and the appearance<br>of the document. Among other things, it allows authors and designers to work more<br>independently of each other. However, it does require a different way of thinking<br>about the design of a Web site, and perhaps even the use of different project-<br>management techniques when multiple people are involved. <br>Cascading Style Sheets<br>Since XML allows arbitrary tags to be included in a document, there isn t any way<br>for the browser to know in advance how each element should be displayed. When<br>you send a document to a user you also need to send along a style sheet that tells<br>the browser how to format individual elements. One kind of style sheet you can use<br>is a Cascading Style Sheet (CSS).<br>CSS, initially designed for HTML, defines formatting properties like font size, <br>font family, font weight, paragraph indentation, paragraph alignment, and other<br>styles that can be applied to particular elements. For example, CSS allows HTML<br>documents to specify that all H1elements should be formatted in 32 point cent-<br>ered Helvetica bold. Individual styles can be applied to most HTML tags that<br>override the browser s defaults. Multiple style sheets can be applied to a single<br>document, and multiple styles can be applied to a single element. The styles <br>then cascade according to a particular set of rules. <br>Cross- CSS rules and properties are explored in more detail in Chapter 12, Cascading<br>Reference<br>Style Sheets Level 1, and Chapter 13, Cascading Style Sheets Level 2.<br>It s easy to apply CSS rules to XML documents. You simply change the names of the<br>tags you re applying the rules to. Mozilla 5.0 directly supports CSS style sheets<br>combined with XML documents, though at present, it crashes rather too frequently.<br> 3236-7 ch01.F.qc 6/29/99 1:03 PM Page 12<br>Part I &' Introducing XML<br>12<br>Extensible Style Language<br>The Extensible Style Language (XSL) is a more advanced style-sheet language<br>specifically designed for use with XML documents. XSL documents are themselves<br>well-formed XML documents. <br>XSL documents contain a series of rules that apply to particular patterns of XML<br>elements. An XSL processor reads an XML document and compares what it sees to<br>the patterns in a style sheet. When a pattern from the XSL style sheet is recognized<br>in the XML document, the rule outputs some combination of text. Unlike cascading<br>style sheets, this output text is somewhat arbitrary and is not limited to the input<br>text plus formatting information.<br>CSS can only change the format of a particular element, and it can only do so on an<br>element-wide basis. XSL style sheets, on the other hand, can rearrange and reorder<br>elements. They can hide some elements and display others. Furthermore, they can<br>choose the style to use not just based on the tag, but also on the contents and<br>attributes of the tag, on the position of the tag in the document relative to other<br>elements, and on a variety of other criteria. <br>CSS has the advantage of broader browser support. However, XSL is far more<br>flexible and powerful, and better suited to XML documents. Furthermore, XML<br>documents with XSL style sheets can be easily converted to HTML documents with<br>CSS style sheets. <br>Cross- XSL style sheets will be explored in great detail in Chapter 14, XSL Transformations,<br>Reference<br>and Chapter 15, XSL Formatting Objects.<br>URLs and URIs<br>XML documents can live on the Web, just like HTML and other documents. When they<br>do, they are referred to by Uniform Resource Locators (URLs), just like HTML files. For<br>example, at the URL http://www.hypermedic.com/style/xml/tempest.xmlyou ll<br>find the complete text of Shakespeare s Tempest marked up in XML. <br>Although URLs are well understood and well supported, the XML specification <br>uses the more general Uniform Resource Identifier (URI). URIs are a more general<br>architecture for locating resources on the Internet, that focus a little more on the<br>resource and a little less on the location. In theory, a URI can find the closest copy<br>of a mirrored document or locate a document that has been moved from one site <br>to another. In practice, URIs are still an area of active research, and the only kinds<br>of URIs that are actually supported by current software are URLs. <br> 3236-7 ch01.F.qc 6/29/99 1:03 PM Page 13<br>Chapter 1 &' An Eagle s Eye View of XML<br>13<br>XLinks and XPointers<br>As long as XML documents are posted on the Internet, you re going to want to be<br>able to address them and hot link between them. Standard HTML link tags can be<br>used in XML documents, and HTML documents can link to XML documents. For<br>example, this HTML link points to the aforementioned copy of the Tempest<br>rendered in XML:<br><a href= http://www.hypermedic.com/style/xml/tempest.xml ><br>The Tempest by Shakespeare<br></a><br>Whether the browser can display this document if you follow the link, depends on<br>Note<br>just how well the browser handles XML files. Most current browsers don t handle<br>them very well.<br>However, XML lets you go further with XLinks for linking to documents and<br>XPointers for addressing individual parts of a document.<br>XLinks enable any element to become a link, not just an Aelement. Furthermore,<br>links can be bi-directional, multidirectional, or even point to multiple mirror sites<br>from which the nearest is selected. XLinks use normal URLs to identify the site<br>they re linking to. <br>Cross- XLinks are discussed in Chapter 16, XLinks.<br>Reference<br>XPointers enable links to point not just to a particular document at a particular<br>location, but to a particular part of a particular document. An XPointer can refer to<br>a particular element of a document, to the first, the second, or the 17th such<br>element, to the first element that s a child of a given element, and so on. XPointers<br>provide extremely powerful connections between documents that do not require<br>the targeted document to contain additional markup just so its individual pieces<br>can be linked to it.<br>Furthermore, unlike HTML anchors, XPointers don t just refer to a point in a<br>document. They can point to ranges or spans. Thus an XPointer might be used to<br>select a particular part of a document, perhaps so that it can be copied or loaded<br>into a program. <br>Cross- XPointers are discussed in Chapter 17, XPointers.<br>Reference<br> 3236-7 ch01.F.qc 6/29/99 1:03 PM Page 14<br>Part I &' Introducing XML<br>14<br>The Unicode Character Set<br>The Web is international, yet most of the text you ll find on it is in English. XML is<br>starting to change that. XML provides full support for the two-byte Unicode<br>character set, as well as its more compact representations. This character set<br>supports almost every character commonly used in every modern script on Earth. <br>Unfortunately, XML alone is not enough. To read a script you need three things:<br>1. A character set for the script<br>2. A font for the character set<br>3. An operating system and application software that understands the<br>character set<br>If you want to write in the script as well as read it, you ll also need an input method<br>for the script. However, XML defines character references that allow you to use<br>pure ASCII to encode characters not available in your native character set. This is<br>sufficient for an occasional quote in Greek or Chinese, though you wouldn t want to<br>rely on it to write a novel in another language.<br>Cross- In Chapter 7, Foreign Languages and non-Roman Text, you ll explore how interna-<br>Reference<br>tional text is represented in computers, how XML understands text, and how you<br>can use the software you have to read and write in languages other than English.<br>How the Technologies Fit Together<br>XML defines a grammar for tags you can use to mark up a document. An XML<br>document is marked up with XML tags. The default encoding for XML documents <br>is Unicode. <br>Among other things, an XML document may contain hypertext links to other<br>documents and resources. These links are created according to the XLink<br>specification. XLinks identify the documents they re linking to with URIs <br>(in theory) or URLs (in practice). An XLink may further specify the individual <br>part of a document it s linking to. These parts are addressed via XPointers. <br>If an XML document is intended to be read by human beings  and not all XML<br>documents are  then a style sheet provides instructions about how individual<br>elements are formatted. The style sheet may be written in any of several style-sheet<br>languages. CSS and XSL are the two most popular style-sheet languages, though<br>there are others including DSSSL  the Document Style Semantics and Specification<br>Language  on which XSL is based. <br> 3236-7 ch01.F.qc 6/29/99 1:03 PM Page 15<br>Chapter 1 &' An Eagle s Eye View of XML<br>15<br>Caution I ve outlined a lot of exciting stuff in this chapter. However, honesty compels me to<br>tell you that I haven t discussed all of it yet. In fact, much of what I ve described is<br>the promise of XML rather than the current reality. XML has a lot of people in the<br>software industry very excited, and a lot of programmers are working very hard to<br>turn these dreams into reality. New software is released every day that brings us<br>closer to XML nirvana, but this is all very new, and some of the software isn t fully<br>cooked yet. Throughout the rest of this book, I ll be careful to point out not only<br>what is supposed to happen, but what actually does happen. Depressingly these<br>are all too often not the same thing. Nonetheless with a little caution you can do<br>real work right now with XML. <br>Summary<br>In this chapter, you have learned some of the things that XML can do for you. In<br>particular, you have learned:<br>&' XML is a meta-markup language that enables the creation of markup<br>languages for particular documents and domains.<br>&' XML tags describe the structure and semantics of a document s content, not<br>the format of the content. The format is described in a separate style sheet.<br>&' XML grew out of many users frustration with the complexity of SGML and the<br>inadequacies of HTML.<br>&' XML documents are created in an editor, read by a parser, and displayed by a<br>browser.<br>&' XML on the Web rests on the foundations provided by HTML, Cascading Style<br>Sheets, and URLs.<br>&' Numerous supporting technologies layer on top of XML, including XSL style<br>sheets, XLinks, and XPointers. These let you do more than you can<br>accomplish with just CSS and URLs.<br>&' Be careful. XML isn t completely finished. It will change and expand, and you<br>will encounter bugs in current XML software.<br>In the next chapter, you ll see a number of XML applications, and learn about some<br>ways XML is being used in the real world today. Examples include vector graphics,<br>music notation, mathematics, chemistry, human resources, Webcasting, and more.<br>&' &' &'<br> 3236-7 ch01.F.qc 6/29/99 1:03 PM Page 16<br><br> <br>Wyszukiwarka<br> <form method="get" action="https://zanotowane.pl/szukaj3.php"> <input value="" id="q" name="q" /> <input type="submit" value="Szukaj" /> </form> <br>Podobne podstrony:<br><a href="../../143/3763">chapter13</a><br><a href="../../143/6037">The Kama Sutra Part V Chapter 3</a><br><a href="../../143/8587">Book 4, Chapter 8</a><br><a href="../../143/8984">Tagg J , The discliplinary frame Footnotes to Chapter 5 Pencil of history</a><br><a href="../../109/8134">Feynman Lectures on Physics Volume 1 Chapter</a><br><a href="../../109/8908">The Kama Sutra Part I Chapter 2</a><br><a href="../../119/593">Chapter56</a><br><a href="../../119/1840">Chapter29</a><br><a href="../../119/2850">Chapter03</a><br><br><a href="https://zanotowane.pl/szukaj3.php?q=Chapter01" rel="nofollow">więcej podobnych podstron</a><br><br><form method="get" action="https://zanotowane.pl/szukaj3.php"><input value="" id="q" name="q" /><input type="submit" value="Szukaj" /></form> </div> <!-- /.container --> <footer> <div class="footer-blurb"> <div class="container"> <div class="row"> <div class="col-sm-4 footer-blurb-item"> </div> </div> <!-- /.row --> </div> </div> <div class="small-print"> <div class="container"> <p><a href="mailto:edibk@onet.pl">Kontakt</a> | <a href="../../polityka.php">Polityka prywatności</a></p> </div> </div> </footer> <!-- Google tag (gtag.js) --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-L8W7STRP18"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-L8W7STRP18'); </script> </body> </html>