0% found this document useful (0 votes)
38 views1 page

XMLBible 34

The document discusses XML and how it allows users to define their own tags to structure documents in their domain. It describes how a DTD defines the vocabulary and syntax for these custom tags. The document also explains that XML defines the meta syntax that other markup languages must follow, and that browsers understand this meta syntax and can display tags for various languages. Formatting is separated from the XML and added with style sheets.

Uploaded by

Sai Kuamr
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views1 page

XMLBible 34

The document discusses XML and how it allows users to define their own tags to structure documents in their domain. It describes how a DTD defines the vocabulary and syntax for these custom tags. The document also explains that XML defines the meta syntax that other markup languages must follow, and that browsers understand this meta syntax and can display tags for various languages. Formatting is separated from the XML and added with style sheets.

Uploaded by

Sai Kuamr
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

3236-7 ch01.F.

qc

6/29/99

1:03 PM

Page 4

Part I Introducing XML

The tags you create can be documented in a Document Type Definition (DTD).
Youll 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-Rusts 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 Schrodingers equation:

2
2 r, t
r, t
h
ih
=
+ V(r) r, t
t
2m 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 dont support sheet music.
XML means you dont 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
documents 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.

You might also like