Skip to Content
Learning XSLT
book

Learning XSLT

by Michael Fitzgerald
November 2003
Beginner
368 pages
9h 33m
English
O'Reilly Media, Inc.
Content preview from Learning XSLT

Chapter 3. Controlling Output

Chapter 3 shows you how to control the XML, HTML, and text output of an XSLT processor using the XSLT top-level element output. You have seen the output element in previous examples, but I have only discussed 2 of output’s 10 attributes so far. I’ll talk about each of output’s attributes in this chapter.

In this chapter, I’ll talk about the results you can expect from different output methods in XML, HTML, text, or custom output. I’ll also cover indentation, how to manage XML declarations, document type declarations, CDATA sections, and media types. For more detail, cross-reference this chapter with Section 16 of the XSLT specification.

Tip

Be aware that not all XSLT processors adhere strictly to the output element. There are models in which the XSLT processor has no control over the final serialization of the output because the output values are overridden. You will see an example of this type of model when you use the Moxie processor, discussed in Chapter 17.

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

XSLT

XSLT

Doug Tidwell
Java and XSLT

Java and XSLT

Eric M. Burke
Inside XSLT

Inside XSLT

Steven Holzner
XSLT and XPATH: A Guide to XML Transformations

XSLT and XPATH: A Guide to XML Transformations

John Robert Gardner, Zarella L. Rendon

Publisher Resources

ISBN: 0596003277Supplemental ContentErrata Page