Convert HTML to XML

The Convert HTML to XML Template Building Block checks the package it receives for an item called Output and attempts to convert the HTML in that item into XHTML. The Dreamweaver Template Building Blocks automatically places an item called Output in the output package. You can specify the name of a different item in the package to transform using the Item name parameter.

Use

You can use this Template Building Block in any Compound Template.

Parameters

The Template Building Block has the following parameters:

Accessibility level (default)
Specifies the accessibility level of the XHTML to be produced, as specified by the World Wide Web Consortium, or W3C in its Web Content Accessibility Guidelines, or WCAG. When executed, the Compound Template fails to execute if the specified accessibility level is not complied with.
The accessibility levels—explained in more detail at http://www.w3.org/TR/WAI-WEBCONTENT/ from which the quotations below are taken—are:
none (default)
The Compound Template does not check for accessibility.
WCAG Priority 1
If this priority is not met, "one or more groups will find it impossible to access information in the document. Satisfying this checkpoint is a basic requirement for some groups to be able to use Web documents."
WCAG Priority 2
If this priority is not met, "one or more groups will find it difficult to access information in the document. Satisfying this checkpoint will remove significant barriers to accessing Web documents."
WCAG Priority 3
If this priority is not met, "one or more groups will find it somewhat difficult to access information in the document.Satisfying this checkpoint will improve access to Web documents."
Document type
Specifies the strictness level used by the DOCTYPE of the XHTML produced (as specified by the W3C). Possible values are:
  • Auto (default)
  • Omit
  • Loose
  • Strict
Item name
specifies the name of an item in the input package (which must contain HTML) to convert instead of the Output item.