Skip to Content
Special Edition Using XSLT
book

Special Edition Using XSLT

by Michael Floyd
January 2002
Intermediate to advanced
480 pages
11h 5m
English
Que
Content preview from Special Edition Using XSLT

Putting the DOM to Work

In the example discussed in this section, a direct marketing company (ABC Corporation) needs to provides information in an XML format that differs from the format currently used in its structure and semantics.

Listing 9.2 shows a fragment of the DTD for the XML data.

Listing 9.2. This DTD Defines People as the Root Element of a Document Containing Information About a Person
<!ELEMENT People (Person*)> 
    <!ELEMENT Person (FirstName, LastName, Address)> 
        <!ELEMENT FirstName (#PCDATA)> 
        <!ELEMENT LastName (#PCDATA)> 
        <!ELEMENT Address (Street, City, State, ZipCode)> 
            <!ELEMENT Street (#PCDATA)> 
            <!ELEMENT City (#PCDATA)> 
            <!ELEMENT State (#PCDATA)> 
            <!ELEMENT ZipCode (#PCDATA)> 

Listing 9.3 shows a sample XML document that could ...

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

Special Edition Using XML, Second Edition

Special Edition Using XML, Second Edition

- et al. David Gulbransen
XML for Publishers

XML for Publishers

Keith Fahlgren

Publisher Resources

ISBN: 0789725053Purchase book