Skip to Content
Real World XML
book

Real World XML

by Steven Holzner
January 2003
Beginner to intermediate content levelBeginner to intermediate
1200 pages
23h 42m
English
Peachpit Press
Content preview from Real World XML

Extending Public XHTML DTDs

In the previous section, I created a new DTD to extend XHTML, and I put it to work in an XHTML document like this:

<?xml version="1.0"?> 
<?xml-stylesheet type="text/css" href="ch17_19.css"?>
<!DOCTYPE html SYSTEM "ch17_17.dtd">
<html xmlns="ch17_17.dtd"
xml:lang="en" lang="en">
    <head>
        <title>
        </title>
    </head>

    <body>
        <p>
            This text uses a new XHTML element for
            <underlinedredtext>emphasis</underlinedredtext>.
        </p>
    </body>
</html>

In this case, I declared a local DTD for private use with the SYSTEM keyword. You can also make your DTD public with the PUBLIC keyword, but to do that, you've got to create a formal public identifier (FPI). Here are the rules for FPIs:

  • The first field in an FPI specifies the connection of ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Inside XML

Inside XML

Steven Holzner
XML Hacks

XML Hacks

Michael Fitzgerald

Publisher Resources

ISBN: 0735712867Purchase book