True HTML output

The previous section outlines a number of issues that are raised when attempting to output an HTML document that conforms to the XML standard. To avoid these problems, the standard includes a mechanism for outputting documents that do not conform to the XML standard. The Output element is used to specify another format. Currently, the value of its Method attribute must be 'xml' (the default option), 'html' or 'text'. This element must appear directly within the Stylesheet (or Transform) element:

<stylesheet ...>
  <output method="html" ... />
  ...
</stylesheet>

To specify that the processor should output true HTML data, the value 'html' is used. When the 'html' value is entered in the Method element, HTML tags are recognized and ...

Get XSL companion, The now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.