Stylesheet DTD issues

In theory, one of the most obvious benefits of using the XML data format for XSLT stylesheets is that an XML editor can be used to assist in the construction of stylesheets. Such editors can prevent errors from occurring in the markup, ensure that the stylesheet conforms to the constraints of the XSLT standard, and help the author by indicating which elements and attributes are available in the current context. But these benefits are only realized if a DTD or schema exists, and this requirement raises some issues.

The XSLT standard includes a DTD that defines the XSLT elements and attributes. But this DTD alone may not be sufficient. The fact that XSLT markup can be mixed with output markup means that a DTD may need to be ...

Get XML Companion, The, Third Edition 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.