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

Automating the Transformation

The idea is to automatically generate the XSLT style sheet in Listing 11.2 by using the document schema as a guide to the tags. For a simple example, consider the schema in Listing 11.4. This describes the format of the article document. Like the XSLT document, this schema is nothing more than an XML document itself.

Listing 11.4. The Article Document Schema
 <?xml version =”1.0”?> <!-- http://www.w3.org/1999/XMLSchema and should work with MSXML 3--> <schema xmlns = “http://www.w3.org/1999/XMLSchema”> <element name = “article”> <complexType content = “elementOnly”> <sequence> <element ref = “headline”/> <element ref = “deck”/> <element ref = “byline”/> <element ref = “aBody”/> <element name = “copyright”/> </sequence> ...
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