Skip to Content
XSLT and XPATH: A Guide to XML Transformations
book

XSLT and XPATH: A Guide to XML Transformations

by John Robert Gardner, Zarella L. Rendon
July 2001
Intermediate to advanced
592 pages
11h 16m
English
Pearson
Content preview from XSLT and XPATH: A Guide to XML Transformations

2.4. XML Components of XSLT Stylesheets

Explanations of comments and processing-instructions in general may be unnecessary for those of you familiar with their use in XML document instances. However, these components can also be accessed by XSLT stylesheets, or even be part of XSLT stylesheets, so their application in XSLT is important to understand. There are two concepts in particular that are worth reviewing, the XML declaration and the document type declaration.

2.4.1. The XML Declaration

One of the key components of any XML document instance is the XML declaration, which is a processing-instruction, or PI, that is always the first item in the document—it even comes before the document element. The XML declaration identifies the contents ...

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

Beginning XSLT and XPath: Transforming XML Documents and Data

Beginning XSLT and XPath: Transforming XML Documents and Data

Ian Williams
Java and XSLT

Java and XSLT

Eric M. Burke
Learning XSLT

Learning XSLT

Michael Fitzgerald

Publisher Resources

ISBN: 0130404462Purchase book