PWG Logo


Printer Working Group Draft, August 19, 2002

This version:
Latest version:
PDF Version:
Previous version:
Don Wright, Lexmark International
Melinda Grant, HP
Peter Zehler, Xerox
Jun Fujisawa, Canon
Jim Bigelow, Hewlett-Packard Co.


HTML 4 is a powerful language for authoring Web content, but its design does not take into consideration issues pertinent to printers, including the implementation cost (in power, memory, etc.) of the full feature set. Printers have relatively limited resources that cannot generally afford to implement the full feature set of HTML 4.

Because there are many ways to subset HTML, there are many almost identical subsets defined by organizations and companies. Without a common base set of features, developing print applications for a wide range of printers is difficult.

XHTML-Print's targeted usage is for printing in environments where it is not feasible or desirable to install a printer-specific driver and where some variability in the formatting of the output is acceptable.

The document type definition for XHTML-Print is implemented based on the XHTML modules defined in Modularization of XHTML [XHTMLMOD].

Status of this Document

This section describes the status of this document at the time of its publication. Other documents may supersede this document. The latest status of this document series is maintained at the PWG.

This document is a draft and only a draft. It has not be reviewed by PWG Members nor approved. It is not a stable document and may not be used as reference material nor cited as a normative reference from another document.

Public discussion of XHTML-Print takes place on the mailing list: xp@pwg.org ( archive). To subscribe send an email to majordomo@pwg.org with the words subscribe xp in the body. You must be subscribed to the mailing list to post there. Please report errors in this document to one of the editors listed above or on the mailing list.

A list of current PWG Standards and other technical documents can be found at http://www.pwg.org/standards.html

Note: The following review conventions are used in this document:

Table of Contents

1. Introduction

1.1. XHTML for Printing

This document specifies a simple XHTML based data stream suitable for printing as well as display. It is based on the W3C's XHTML Basic [XHTMLBASIC] with the addition of cascading style sheets (CSS) [CSS1, CSS2]. Its targeted usage is for printing in environments where it is not feasible or desirable to install a printer-specific driver and where some variability in the formatting of the output is acceptable. Throughout this document this data stream is called "XHTML-Print."

XHTML-Print is designed to be appropriate for low-cost printers that may not have a full-page buffer and that generally print from top-to-bottom and left-to-right with the paper in a portrait orientation. For other printers (i.e., those that print in another direction or orientation) a full-page buffer may be required.

XHTML-Print is not appropriate when strict layout consistency and repeatability across printers are required. The design objective of XHTML-Print is to provide a relatively simple, broadly supportable page description format where content preservation and reproduction are the goal, i.e. "Content is King." Traditional printer page description formats such as PostScript or PCL are more suitable when strict layout control is required. XHTML-Print does not utilize bi-directional communications with the printer either for capabilities or status inquiries.

This document creates a set of conformance criteria for XHTML-Print. It referencesincludes style sheet constructs drawn from CSS2 [CSS2] and proposed for CSS3 [CSS3] as defined in the CSS Print Profile [CSSPP] to provide a strong basis for rich printing results without a detailed understanding of each individual printer's characteristics.

It also defines an extension set (or sets) that provide stronger layout control for the printing of mixed text and images, tables and image collections.

The document type definition for XHTML-Print is implemented based on the XHTML modules defined in Modularization of XHTML [XHTMLMOD].

1.2. Terminology

The keywords "MUST", "SHALL", "MUST NOT", "SHALL NOT", "REQUIRED", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" when used in this document are to be interpreted as described in RFC 2119 [RFC2119]. However, for readability, these words do not appear in all uppercase letters in this specification.

1.3. Design Rationale

This section explains why certain HTML features are not part of XHTML-Print.

1.3.1. Script and Events

The script and noscript elements are not supported as a printer lacks typical user interaction necessary for a script.  Content of the script should not be printed.

Event handler attributes used to invoke script programs are not supported. Events are device dependent and unlikely to happen in a printer. A generic event handling mechanism would be more appropriate than hardwiring the event names in the document type definition.

1.3.2. Presentation

Many simple printers cannot print a wide variety of fonts other than the generic serif, san serif and monospace. It is recommended that style sheets be used to create a presentation that is appropriate for a particular class of printer.

1.3.3. Forms

Basic XHTML forms, section 5.5.1 [XHTMLMOD] are supported. Since only devices with a local file system can take advantage of file and image input types in forms, they are not included in the basic forms. Also, content developers should keep in mind that users may not be able to input many characters from some devices (e.g. from a mobile phone).

1.3.4. Tables

Basic XHTML tables, section 5.6.1 [XHTMLMOD] are supported, but tables can be difficult to format on very low resourced devices.  Note that in the Basic Tables Module, nesting of tables is prohibited.

1.3.5. Frames

Frames are not supported. Frames depend on a screen interface and therefore are not applicable to printers.

1.3.6. Attributes

Many attributes are commonly parsed in an XML system, and may be handled internally by a printer. We only describe attributes Attributes are described as "required" when they (must) have a visible impact on printed output.

Because a client has control over the data it generates, it only needs one way to achieve a given effect; we don't have a therefore there is no need to support multiple legacy variations. Accordingly, we only specify an attribute asis required only when there is no equivalent CSS property. In cases where both exist, CSS is preferred.

The CSS white-space property is preferred over the xml:space attribute, since the attribute is an internal machanism between the XML processor and the formatting application and doesn't directly control the formatting of the output. The current spec references the xml:space attribute. However this is an internal mechanism between the XML processor and the formatting application, and doesn't directly control the formatting output. We believe the white-space property should be used instead.

2. Conformance

This section is normative.

2.1. Document Conformance

A conforming XHTML-Print document is a document that requires only the facilities described as mandatory in this specification. Such a document must shall meet all of the following criteria:

  1. The document mustshall validate against the DTD found in Appendix C and conform to the constraints expressed in Design Rationale.
  2. The root element of the document mustshall be <html>.
  3. The name of the default namespace on the root element mustshall be the XHTML namespace name, http://www.w3.org/1999/xhtml.
  4. There mustshall be a DOCTYPE declaration in the document prior to the root element. If present, the public identifier included in the DOCTYPE declaration mustshall reference the DTD found in Appendix C using its Formal Public Identifier. The system identifier may be modified appropriately.

<!DOCTYPE html PUBLIC "-//PWG//DTD XHTML-Print 1.0//EN"

The MIME type used to refer to a conforming XHTML-Print document shall be "application/vnd.pwg-xhtml-print+xml".  An optional "charset" parameter may be provided with the MIME type.  Usage of the optional "charset" parameter is as described in section 3.1 of [RFC3023]. 

Additionally, printers may support a MIME type of "application/xhtml+xml" with a profile of "http://www.xhtml-print.org/xhtml-print/xhtml-print10.dtd".  Not all printers will support this option, therefore clients cannot always depend upon it.  Use of a profile is as described in section 2 and section 8 of [RFC3236].

2.2. Client Conformance

  1. Clients shall produce a well-formed XHTML-Print document as defined in XHTML 1.0 [XHTML1] and in Document Conformance.
  2. Beyond number 1 above, clients are not required to use more of the XHTML-Print elements or Style Sheet attributes than necessary to get the desired output.

2.3 Printer Conformance

2.3.1 Formatting/Rendering Rules

  1. In order to be consistent with the XML 1.0 Recommendation [XML], the printer mustshall parse and evaluate an XHTML-Print document to determine if the document is well formed. If the printer claims to be a validating printer, it mustshall also validate documents against their referenced DTDs according to XML. Validation is not required to claim conformance to this standard. A printer may "flush" or otherwise reject a non-conforming XHTML-Print document.
  2. When the printer claims to support facilities defined within this specification or required by this specification through normative reference, it mustshall do so in ways consistent with the facilities' definition.
  3. When a printer processes an XHTML-Print document as generic XML, it shall only recognize attributes of type ID (e.g. the id attribute on most XHTML elements) as fragment identifiers.
  4. Images:
    • If a printer encounters an image in a format it does not support, it shall render any alternate content provided, and may reserve the space specified by the height and width attributes by optionally drawing a box around this space of the size specified for the image.
    • If the image format is not supported or the height and width attributes are absent and no alternate content is provided, the image may be omitted and no space reserved.
    • If the image format is supported and the height and width attributes were omitted, the printer may choose to omit the image from the page.
  5. If a printer encounters an element it does not recognize, it mustshall continue to process the children of that element. If the content is text, the text should be presented to the user.. Printers may chose not to render content within elements defined by XHTML[XHTML1], HTML[HTML4] or deprecated from HTML which is obviously not intended to be rendered, e.g. <script>.
  6. If a printer encounters an attribute it does not recognize, it mustshall ignore the entire attribute specification (i.e., the attribute and its value).
  7. If a printer encounters an attribute value it doesn't recognize, it mustshall use the default attribute value.
  8. If a printer encounters an entity reference, e.g. "&unknownref;", (other than one of the predefined entities) for which the printer has processed no declaration (which could happen if the declaration is in the external subset which the printer hasn't read), the entity reference should be rendered as the characters (starting with the ampersand and ending with the semi-colon) that make up the entity reference.
  9. When rendering content, printers that encounter characters or character entity references that are recognized but not renderable should display the document in such a way that it is obvious to the user that normal rendering has not taken place.
  10. Whitespace is handled according to the following rules. The following characters are defined in XML as whitespace characters: Space (&#x0020;) Tab (&#x0009;) Carriage return (&#x000D;) Line feed (&#x000A;). The XHTML-Print printer in addition mustshall treat the following characters as whitespace: Form feed (&#x000C;) and Zero-width space (&#x200B;). The XML processor normalizes different systems' line end codes into one single Line feed character that is passed up to the application.

The printer mustshall process whitespace characters in the data received from the XML processor as follows:

Note (informative): In determining how to convert a Line feed character, a printer should consider the following cases, whereby the script of characters on either side of the Line feed determines the choice of the replacement. Characters of common script (such as punctuation) are treated as the same as the script on the other side:

  1. If the characters preceding and following the Line feed character belong to a script in which the Space character is used as a word separator, the Line feed character should be converted into a Space character. Examples of such scripts are Latin, Greek, and Cyrillic.
  2. If the characters preceding and following the Line feed character belong to an ideographic-based script or writing system in which there is no word separator, the Line feed should be converted into no character. Examples of such scripts or writing systems are Chinese, Japanese.
  3. If the characters preceding and following the Line feed character belong to a non- ideographic-based script in which there is no word separator, the Line feed should be converted into a Zero-width space character (&#x200B;) or no character. Examples of such scripts are Thai, Khmer.

If none of the conditions in (1) through (3) are true, the Line feed character should be converted into a Space character.

2.3.2 XHTML Requirements

  1. A conforming printer shall support all XHTML Modules listed in The XHTML-Print Document Type.
  2. A conforming printer shall print a static version of a form using default and selected values as specified in the form.
  3. Printers supporting inline image data shall support [MIMEMPX] as described in Appendix B.
  4. A conforming printer shall identify this datastream by the exact string: "XHTML-Print" (without the quotation marks) in all service discovery records and protocols, device identification records and protocols, and in other cases where a list of supported datastreams is to be presented by the printer.  Where such datastreams are identified by a MIME media type, the string "application/vnd.pwg-xhtml-print+xml" shall be used.
  5. A conforming printer shall support the CSS constructs and associated values given in the CSS Print Profile[CSSPP]; support for other values and other properties or constructs is optional. A conforming printer shall support the CSS constructs and associated values as indicated in CSS Requirements, which follows.

2.3.3 CSS Requirements

A conforming printer shall support the CSS constructs and associated values given in the CSS Print Profile[CSSPP]; support for other values and other properties or constructs is optional.

2.4. Enhanced Layout Extension Conformance

To further support print applications requiring more exacting page layout (e.g., photo album pages), the style sheet properties of the Enhance Layout Extension of the CSS Print Profile [CSSPP] and image format shall be supported in an optional, discoverable (via some means outside the scope of this document) Enhanced Layout Extension.

The following is an informative example using absolute positioning with image data:

.picture1 {
     position: absolute;
     top: 25mm;
     left: 25mm;
     padding-top: 10mm;
     width: 30mm;
     height: 30mm;
     clip: rect(10mm, 30mm, 30mm, 0mm)
. . .
<div class="picture1">
<img src="some_file.jpg" />

3. The XHTML-Print Document Type

This section is normative.

The XHTML-Print document type is defined as a set of XHTML modules. All XHTML modules are defined in the "Modularization of XHTML" specification [XHTMLMOD].

XHTML-Print consists of the following XHTML modules:

Structure Module*
body, head, html, title
Text Module*
abbr, acronym, address, blockquote, br, cite, code, dfn, div, em, h1, h2, h3, h4, h5, h6, kbd, p, pre, q, samp, span, strong, var
Hypertext Module*
List Module*
dl, dt, dd, ol, ul, li
Text Extension Module - Presentation**
b, big, hr, i, small, sub, sup, tt
Basic Forms Module
form, input, label, select, option, textarea
Basic Tables Module
caption, table, td, th, tr
Image Module
Object Module
object, param
Metainformation Module
Style Sheet Module**
Link Module
Base Module
Object Module**
object, param

(*) = This module is a required XHTML Host Language module.
(**) = These modules are not a part of XHTML Basic but are required for XHTML-Print.

An XML 1.0 DTD is available in Appendix C.

NOTE: Since the HTML event handler attributes are not included in XHTML-Print, form controls outside forms may not function as expected by the user.

3.1 Supported Attributes

The attributes for each of the elements shown above are specified in the Modularization of XHTML [XHTMLMOD]. The following sections show the attributes that shall be supported by a conforming printer. All other attributes may be ignored.

3.1.1 Attribute Collections

The attributes collections defined in [XHTMLMOD Section 5.1. Attribute Collections] are replaced by the single collection XPCommon.

Collection Name Attributes in Collection
XPCommon class ( NMTOKENS), id ( ID), style ( CDATA)

3.1.2 Elements and attributes

Element Attributes
html xmlns(URI="htptp://www.w3.org.1999/xhtml")
style type*("text/css")
img XPCommon, alt* (Text), src* (URI)
object XPCommon, codebase (URI), data (URI), type* ("image/jpeg")
link XPCommon, href (URI), rel ("stylesheet"), type ("text/css")
base href (URI)
form XPCommon
input XPCommon, checked ("checked"), size (Number), type ("text"* | "password" | "checkbox" | "radio" | "submit" | "reset" | "hidden" ), value (CDATA)
label XPCommon
select XPCommon, multiple ("multiple"), size (Number)
option XPCommon, selected ("selected"), value (CDATA)
textarea XPCommon, cols* (Number), rows* (Number)
(all others) XPCommon
Table Notes:
  1. In the table, an asterisk (e.g. alt*) indicates a required attribute in the DTD; i.e. every occurrence of the element mustshall have an occurrence of this attribute. If the printer were a validating printer, an element that is missing a required attribute would be treated as invalid. (Non-validating printers may ignore the distinction of DTD-required attributes.)
  2. HTML allows binary attributes to be given without a value, e.g. selected. However, XML requires all attributes to take a value. Thus in XHTML-Print these mustshall be given with a cloned value (e.g. selected="selected").

4. How to Use XHTML-Print

This section is normative.

XHTML-Print inherits all the structure, encoding and other basic infrastructure specified by XHTML1.0 [XHTML1]. The following sections describe and clarify the application and usage restrictions of XHTML-Print.

4.1 Recommended Attributes on the "img" and "object" Elements

Because many printers create the page in a serial manner from top to bottom, it is important for the printer to know the size of images before retrieving the image data itself. This information is then used to create portions of the page layout.

Therefore, the sender is strongly encouraged to include the height and width attributes either within the img or the object element, or within an associated style sheet rule. Printers may omit from the page images that do not include height and width attributes (see Images). These attributes may be expressed as percentages within the img or the object element, or may use the standard absolute or relative units within the CSS rule.  Percentages are relative to the parent element and not the page width or printable area.

This document specifies only one mandatory image format: baseline JPEG as defined in [JPEG]. See Appendix A for a description of JPEG decoder requirements. Printers are not required to support:

within the JFIF and EXIF files.

4.2 Style Sheets

Conforming XHTML-Print printers shall support both in-line and referenced style sheets within the style element or link element in the head element of a document. Conforming XHTML-Print printers shall also support the style attributes (i.e. in-line style) when used within other elements as defined by XHTML 1.1[XHTML1.1]. Normal cascading rules apply. See "Formatting/Rendering Rules" for special cases when the style section includes special characters such as "&" and "<".

4.3 Image Data

In traditional web-based applications of XHTML, image data is contained in a separate file on a web server that the user agent retrieves.

However, there are circumstances where it is desirable to include the image data along with the rest of the print data. Some low cost, resource constrained clients may want to include images in their print output but cannot afford to include a server. Some print applications may require that all the print data can be encapsulated in a single file for transportability, avoiding firewall issues, etc.

See Appendix B for discussion of the method that shall be used to collect both XHTML-Print and associated image data into a single file or data stream.

4.4 Side-by-Side Images

Low-cost printers today often have very little memory into which page data Can Be stored before being printed. As such, they mustshall build and print the page in swaths on the fly from the top of the page to the bottom. To enable the use of XHTML-Print in these low cost printers, some restrictions on the order of images contained in the XHTML-Print data stream mustshall be added.

  1. If two or more images will be even partially side-by-side on the printed page they should be included by reference ( <img src=""> or <object data="">) rather than included inline. (See Appendix B). This allows the printer to get chunks of the image, as it needs it, as it prints down the page.
  2. An XHTML-Print conforming printer lacking sufficient buffer space to hold multiple side-by-side images may choose to reformat the layout of the page to preserve content. Printers shall attempt to preserve content when encountering side-by-side images that may be impossible to print as specified within the XHTML-Print. Discarding the second and subsequent of the side-by-side images should be avoided unless preservation of content is best achieved by doing so. Other than attempting to best preserve content, this specification does not mandate any specific behavior when encountering this situation. Clients providing images inline should order them from left-to-right top-to-bottom unless the print direction is known to be otherwise.

5. Acknowledgements

This specification was prepared by the PWG XHTML-Print Working Group. The members were:

A. JPEG Decoder Requirements

A.1 Introduction

This section is normative.

A.1.1 Intent

This appendix describes recommended behaviors for JPEG decoders in XHTML-Print devices. Behaviors for both minimal printers and photo printers are described. Many of the behaviors described in this document follow directly from language already present in the relevant JPEG standards, but are repeated here to emphasize their importance.

A.1.2 Objectives

The decoder behaviors described in this document are intended to minimize implementation complexity, while retaining maximum compatibility with existing JPEG files. In particular, these recommendations seek to ensure compatibility with both EXIF and baseline JFIF (i.e. the subset of JFIF files that use only baseline JPEG processes). Support for JPEG streams using non-baseline processes, such as arithmetic coding or progressive coding, is not mandated for XHTML-Print compliance.

A.2 Behaviors of Minimal Printers

This section describes behaviors of JPEG decoders for minimal XHTML-Print implementations.

A.2.1 JPEG Processes

A JPEG decoder for an XHTML-Print printer mustshall support all baseline JPEG processes as defined in [CCITT], except for 2- and 4-component images. These processes include grayscale and 3-component images, 8-bit/component sample depth, Huffman entropy coding, 444, 422, 411, and 400 subsampling modes, and sequential (i.e. non-progressive) scan.

A.2.2 Handling of APPx Markers

Baseline decoders may ignore application-specific markers, such as the JFIF APP0 marker and the EXIF APP1/APP2 markers. This will cause all images to print in an un-rotated orientation, with image size as specified in the JPEG SOF marker if not overridden by XHTML-Print mark-up. A JPEG decoder for a minimal printer mustshall not fail as a consequence of encountering an unsupported APPx marker (i.e. all such markers mustshall be correctly parsed, even if they are ignored).

A.2.3 Color Management

This section describes a recommended color management approach for minimal XHTML-Print printers.

Greyscale Images

Sample values in a grayscale (single-component) JPEG image shall be converted to the sRGB color space by setting

Rout= Gout = Bout = Grayin

Color Images

Sample values in 3-component JPEG images shall be interpreted as YCbCr samples, as would be obtained by applying the matrices described in ITU BT.601 to sRGB input data.

A.3 JPEG Decoder for XHTML-Print Enhanced Layout Extension

This section describes behaviors of JPEG decoders for XHTML-Print devices that support the XHTML-Print Enhanced Layout Extension, an optional feature block. The behaviors described below should be interpreted as "in addition to" those described in XHTML-Print Document Type and Printer Conformance (the requirements for minimal XHTML-Print devices).

A.3.1 Handling of EXIF APP1 and APP2 Markers

A JPEG decoder for an XHTML-Print implementation which supports the Enhanced Layout Extension mustshall decode the TIFF IFDs embedded in the EXIF APP1 and APP2 markers, as described in Section 2.6.4 of [JEIDA]. The following IFDs mustshall be fully supported (i.e. they mustshall not be ignored).

Tag Name Field Name Description
Orientation of Image Orientation Sets image orientation in 90-degree increments, and enables transposition.

B. Inline Image Data

B.1 Introduction

This section is normative.

B.1.1 Intent

The intent of this appendix is to describe the method for including XHTML-Print and associated image data in a single data stream or file. Support for Inline Image Data is conditionally mandatory; i.e. any device supporting Inline Image Data mustshall support this method. (See Image Data.) Mandating support for Inline Image Data is outside the scope of this document.

In addition to images, if separate style sheets are to be interleaved with the XHTML-Print data, the same method shall be used.

B.1.2 Objectives

B.2 MIME type Application/Multiplexed

This section includes by reference the entirety of "The MIME Application/Multiplexed Content-type", Robert Herriot [MIMEMPX].  For all printers support inline data, [MIMEMPX] shall be supported.

B.3 Using OBJECT for In-Line Image Data

An alternative method to include inline image data in XHTML-Print is via object element and a forward reference. The "declare" attribute of the object element is used to define the object, but delay its processing. The "id" attribute is used to associate the forward reference with the image content, sent at the end of the XHTML-Print document. Because this method normally encodes the binary image data using base64 encoding, a significant increase in the size of the data transmitted will be experienced. This should be avoided over low speed connections.  Printers supporting inline data may support base64 encoding using object.

See RFC2397 for information on the "data" URL scheme.

<object declare="declare"
   height="20 mm" width="20 mm"
   id="image_1" >

. . . .

<object id="image_1"
   data="data:image/jpeg;base64,aGh67Fghsapa0Hji7dfGSweTa . . . ">

This method may be useful for very simple clients that cannot afford a server for image download or for some reason cannot utilize the Application/Multiplexed MIME type; however, it is not recommended for general use especially if the size of the printer's buffer is unknown.

C. XHTML-Print DTD and Modules

This appendix is normative.

This section contains the pieces of the XHTML-Print DTD that are unique to XHTML-Print. The remaining entities and modules are as specified in reference [XHTMLMOD].

The following should be used from Modularization of XHTML [XHTMLMOD]:

  1. xhtml-attribs-1.mod
  2. xhtml-base-1.mod
  3. xhtml-basic-form-1.mod
  4. xhtml-basic-table-1.mod
  5. xhtml-blkphras-1.mod
  6. xhtml-blkpres-1.mod
  7. xhtml-blkstruct-1.mod
  8. xhtml-charent-1.mod
  9. xhtml-datatypes-1.mod
  10. xhtml-framework-1.mod
  11. xhtml-hypertext-1.mod
  12. xhtml-image-1.mod
  13. xhtml-inlphras-1.mod
  14. xhtml-inlpres-1.mod
  15. xhtml-inlstruct-1.mod
  16. xhtml-inlstyle-1.mod
  17. xhtml-lat1.ent
  18. xhtml-link-1.mod
  19. xhtml-list-1.mod
  20. xhtml-meta-1.mod
  21. xhtml-notations-1.mod
  22. xhtml-object-1.mod
  23. xhtml-param-1.mod
  24. xhtml-pres-1.mod
  25. xhtml-qname-1.mod
  26. xhtml-special.ent
  27. xhtml-struct-1.mod
  28. xhtml-style-1.mod
  29. xhtml-symbol.ent
  30. xhtml-text-1.mod

C.1. XHTML-Print 1.0 DTD

<!-- ....................................................................... -->
<!-- XHTML-Print 1.0 DTD ................................................... -->
<!-- file: xhtml-print10.dtd

<!-- XHTML-Print 1.0 DTD

     This is XHTML-Print 1.0, a variant of XHTML Basic for printing.

     Copyright 2001 Lexmark International Inc., Hewlett-Packard Company,
     Xerox Corporation, and Canon Inc. All Rights Reserved.

     Permission to use, copy, modify and distribute the XHTML-Print DTD and
     its accompanying documentation for any purpose and without fee is hereby
     granted in perpetuity, provided that the above copyright notice and
     this paragraph appear in all copies.  The copyright holders make no
     representation about the suitability of the DTD for any purpose.

     It is provided "as is" without expressed or implied warranty.

        Author:   Jun Fujisawa <fujisawa.jun@canon.co.jp>
        Revision: $Id: xhtml-print10.dtd,v 1.2 2001/06/04 17:16:35 fujisawa Exp $

<!-- This is the driver file for version 1.0 of the XHTML-Print DTD.

     This DTD is identified by the PUBLIC and SYSTEM identifiers:

        PUBLIC "-//PWG//DTD XHTML-Print 1.0//EN"
        SYSTEM "http://www.xhtml-print.org/xhtml-print/xhtml-print10.dtd"
<!ENTITY % XHTML.version "-//PWG//DTD XHTML-Print 1.0//EN" >

<!-- Use this URI to identify the default namespace:

<!ENTITY % NS.prefixed "IGNORE" >
<!ENTITY % XHTML.prefix "" >

<!-- Reserved for use with the XLink namespace:
<!ENTITY % XLINK.xmlns "" >
<!ENTITY % XLINK.xmlns.attrib "" >

<!-- reserved for future use with document profiles -->
<!ENTITY % XHTML.profile "" >

<!-- Bidirectional Text features
     This feature-test entity is used to declare elements
     and attributes used for bidirectional text support.

<!-- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->

<!ENTITY % xhtml-events.module "IGNORE" >
<!ENTITY % xhtml-bdo.module "%XHTML.bidi;" >

<!-- Style Attribute Module ............................ -->
<!ENTITY % xhtml-inlstyle.module "INCLUDE" >
<!ENTITY % xhtml-inlstyle.mod
     PUBLIC "-//W3C//ENTITIES XHTML Inline Style 1.0//EN"
            "http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-inlstyle-1.mod" >

<!-- Document Model Module ............................. -->
<!ENTITY % xhtml-model.mod
     PUBLIC "-//PWG//ENTITIES XHTML-Print 1.0 Document Model 1.0//EN"
            "http://www.pwg.org/xhtml-print/xhtml-print10-model-1.mod" >

<!-- Modular Framework Module (required) ............... -->
<!ENTITY % xhtml-framework.mod
     PUBLIC "-//W3C//ENTITIES XHTML Modular Framework 1.0//EN"
            "http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-framework-1.mod" >

<!-- Text Module (required) ............................ -->
<!ENTITY % xhtml-text.mod
     PUBLIC "-//W3C//ELEMENTS XHTML Text 1.0//EN"
            "http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-text-1.mod" >

<!-- Hypertext Module (required) ....................... -->
<!ENTITY % xhtml-hypertext.mod
     PUBLIC "-//W3C//ELEMENTS XHTML Hypertext 1.0//EN"
            "http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-hypertext-1.mod" >

<!-- Lists Module (required) ........................... -->
<!ENTITY % xhtml-list.mod
     PUBLIC "-//W3C//ELEMENTS XHTML Lists 1.0//EN"
            "http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-list-1.mod" >

<!-- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->

<!-- Presentation Module ............................... -->
<!ENTITY % xhtml-pres.module "INCLUDE" >
<!ENTITY % xhtml-pres.mod
     PUBLIC "-//W3C//ELEMENTS XHTML Presentation 1.0//EN"
            "http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-pres-1.mod" >

<!-- Image Module ...................................... -->
<!ENTITY % xhtml-image.module "INCLUDE" >
<!ENTITY % xhtml-image.mod
     PUBLIC "-//W3C//ELEMENTS XHTML Images 1.0//EN"
            "http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-image-1.mod" >

<!-- Tables Module ..................................... -->
<!ENTITY % xhtml-table.module "INCLUDE" >
<!ENTITY % xhtml-table.mod
     PUBLIC "-//W3C//ELEMENTS XHTML Basic Tables 1.0//EN"
            "http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-basic-table-1.mod" >

<!-- Forms Module ...................................... -->
<!ENTITY % xhtml-form.module "INCLUDE" >
<!ENTITY % xhtml-form.mod
     PUBLIC "-//W3C//ELEMENTS XHTML Basic Forms 1.0//EN"
            "http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-basic-form-1.mod" >

<!-- Style Sheet Module ................................ -->
<!ENTITY % xhtml-style.module "INCLUDE" >
<!ENTITY % xhtml-style.mod
     PUBLIC "-//W3C//ELEMENTS XHTML Style Sheets 1.0//EN"
            "http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-style-1.mod" >

<!-- Link Module ....................................... -->
<!ENTITY % xhtml-link.module "INCLUDE" >
<!ENTITY % xhtml-link.mod
     PUBLIC "-//W3C//ELEMENTS XHTML Link Element 1.0//EN"
            "http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-link-1.mod" >

<!-- Metainformation Module ............................ -->
<!ENTITY % xhtml-meta.module "INCLUDE" >
<!ENTITY % xhtml-meta.mod
     PUBLIC "-//W3C//ELEMENTS XHTML Metainformation 1.0//EN"
            "http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-meta-1.mod" >

<!-- Base Module ....................................... -->
<!ENTITY % xhtml-base.module "INCLUDE" >
<!ENTITY % xhtml-base.mod
     PUBLIC "-//W3C//ELEMENTS XHTML Base Element 1.0//EN"
            "http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-base-1.mod" >

<!-- Param Module ...................................... -->
<!ENTITY % xhtml-param.module "INCLUDE" >
<!ENTITY % xhtml-param.mod
     PUBLIC "-//W3C//ELEMENTS XHTML Param Element 1.0//EN"
            "http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-param-1.mod" >

<!-- Object Module ..................................... -->
<!ENTITY % xhtml-object.module "INCLUDE" >
<!ENTITY % xhtml-object.mod
     PUBLIC "-//W3C//ELEMENTS XHTML Embedded Object 1.0//EN"
            "http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-object-1.mod" >

<!-- Structure Module (required) ....................... -->
<!ENTITY % xhtml-struct.mod
     PUBLIC "-//W3C//ELEMENTS XHTML Document Structure 1.0//EN"
            "http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-struct-1.mod" >

<!-- end of XHTML-Print 1.0 DTD ............................................ -->
<!-- ....................................................................... -->

C.2. XHTML-Print 1.0 Document Model Module

<!-- ....................................................................... -->
<!-- XHTML-Print 1.0 Document Model Module ................................. -->
<!-- file: xhtml-print10-model-1.mod

     This is XHTML-Print 1.0, a variant of XHTML Basic for printing.
     Copyright 2001 Lexmark International Inc., Hewlett-Packard Company,
     Xerox Corporation, and Canon Inc. All Rights Reserved.
     Revision: $Id: xhtml-print10-model-1.mod,v 1.2 2001/06/04 17:16:35 fujisawa Exp $

     This DTD module is identified by the PUBLIC and SYSTEM identifiers:

        PUBLIC "-//PWG//ENTITIES XHTML-Print 1.0 Document Model 1.0//EN"
        SYSTEM "http://www.xhtml-print.org/xhtml-print/xhtml-print10-model-1.mod

     ....................................................................... -->

<!-- XHTML-Print 1.0 Document Model

     This module describes the groupings of elements that make up
     common content models for XHTML-Print elements.

<!-- Optional Elements in head ......................... -->

<!ENTITY % HeadOpts.mix
     "( %meta.qname; | %link.qname; | %object.qname; | %style.qname; )*" >

<!-- Miscellaneous Elements ............................ -->

<!ENTITY % Misc.class "" >

<!-- Inline Elements ................................... -->

<!ENTITY % InlStruct.class "%br.qname; | %span.qname;" >

<!ENTITY % InlPhras.class
     "| %em.qname; | %strong.qname; | %dfn.qname; | %code.qname;
      | %samp.qname; | %kbd.qname; | %var.qname; | %cite.qname;
      | %abbr.qname; | %acronym.qname; | %q.qname;" >

<!ENTITY % InlPres.class
     "| %tt.qname; | %i.qname; | %b.qname; | %big.qname;
      | %small.qname; | %sub.qname; | %sup.qname; " >

<!ENTITY % I18n.class "" >

<!ENTITY % Anchor.class "| %a.qname;" >

<!ENTITY % InlSpecial.class "| %img.qname; | %object.qname;" >

<!ENTITY % InlForm.class
     "| %input.qname; | %select.qname; | %textarea.qname;
      | %label.qname;"

<!ENTITY % Inline.extra "" >

<!ENTITY % Inline.class

<!ENTITY % InlNoAnchor.class

<!ENTITY % InlNoAnchor.mix

<!ENTITY % Inline.mix

<!-- Block Elements .................................... -->

<!ENTITY % Heading.class
     "%h1.qname; | %h2.qname; | %h3.qname;
      | %h4.qname; | %h5.qname; | %h6.qname;"
<!ENTITY % List.class  "%ul.qname; | %ol.qname; | %dl.qname;" >

<!ENTITY % Table.class "| %table.qname;" >

<!ENTITY % Form.class  "| %form.qname;" >

<!ENTITY % BlkStruct.class "%p.qname; | %div.qname;" >

<!ENTITY % BlkPhras.class
     "| %pre.qname; | %blockquote.qname; | %address.qname;"

<!ENTITY % BlkPres.class "| %hr.qname;" >

<!ENTITY % BlkSpecial.class

<!ENTITY % Block.extra "" >

<!ENTITY % Block.class

<!ENTITY % Block.mix
      | %List.class;
      | %Block.class;

<!-- All Content Elements .............................. -->

<!ENTITY % FlowNoTable.mix
      | %List.class;
      | %BlkStruct.class;
      | %Inline.class;

<!ENTITY % Flow.mix
      | %List.class;
      | %Block.class;
      | %Inline.class;

<!-- end of xhtml-print10-model-1.mod -->

D. References

D.1. Normative References

"HTML 4.01 Specification", W3C Recommendation, D. Raggett, A. Le Hors, I. Jacobs, eds., 24 December 1999. Available at: http://www.w3.org/TR/1999/REC-html401-19991224.  The latest version is available at: http://www.w3.org/TR/html4
"XHTML 1.0: The Extensible HyperText Markup Language - A Reformulation of HTML 4 in XML 1.0", W3C Recommendation, Steven Pemberton et al., 26 January 2000. Available at: http://www.w3.org/TR/2000/REC-xhtml1-20000126.  The latest version is available at: http://www.w3.org/TR/xhtml1
"XHTML 1.1 - Module-based XHTML", W3C Recommendation, Murray Altheim, Shane McCarron, eds., 31 May 2001. Available at: http://www.w3.org/TR/2001/REC-xhtml11-20010531.  The latest version is available at: http://www.w3.org/TR/xhtml11
"XHTML Basic", W3C Recommendation, Mark Baker, Masayasu Ishikawa, et al, eds., 19 December 2000 is available at: http://www.w3.org/TR/2000/REC-xhtml-basic-20001219.  The latest version is available at: http://www.w3.org/TR/xhtml-basic
"Modularization of XHTML", W3C Candidate Recommendation, R. Adams, M. Altheim, F. Boumphrey, S. Dooley, S. McCarron, S. Schnitzenbaumer, T. Wugofski, eds., 20 October 2000. Available at: http://www.w3.org/TR/2000/CR-xhtml-modularization-20001020.  The latest version is available at: http://www.w3.org/TR/xhtml-modularization
"Extensible Markup Language (XML) 1.0 (Second Edition)", W3C Recommendation, T. Bray, J. Paoli, C. M. Sperberg-McQueen, E. Maler, eds., 6 October 2000. Available at: http://www.w3.org/TR/2000/REC-xml-20001006.  The latest version is available at: http://www.w3.org/TR/REC-xml
"CSS Print Profile", PWG Draft, D. Wright, J. Refstrup, J. Bigelow, eds. 27 August, 2002. Available at: http://www.pwg.org/xhtml-print/HTML-Version/css-print.htm
"Cascading Style Sheets, level 1",W3C Recommendation,  H?on Wium Lie, Bert Bos, eds., 11 January 1999. Available at: http://www.w3.org/TR/1999/REC-CSS1-19990111.  The latest version is available at: http://www.w3.org/TR/REC-CSS1
"Cascading Style Sheets, level 2", W3C Recommendation, Bert Bos, H?on Wium Lie, Chris Lilley, Ian Jacobs, eds., 12 May 1998.  Available at: http://www.w3.org/TR/1998/REC-CSS2-19980512 . The latest version is available at:  http://www.w3.org/TR/REC-CSS2/
"Introduction to CSS3", W3C Working Group Draft, Eric A. Meyer, Bert Bos, eds., 23 May 2001.  Available at: http://www.w3.org/TR/2001/WD-css3-roadmap-20010523/. The latest version is available from: http://www.w3.org/Style/Group/css3-src/css3-roadmap/
"Paged Media Properties for CSS3", Working Group Draft, Robert Stevahn. Available from http://www.w3.org/TR/1999/WD-css3-page-19990928
"RFC2119 - Key words for use in RFCs to Indicate Requirement Levels", S. Bradner. It is available from http://www.ietf.org/rfc/rfc2119.txt?number=2119
"JPEG File Interchange Format, version 1.02, September 1, 1992", C-Cube Microsystems. Available from ftp://ftp.uu.net/graphics/jpeg/jfif.ps.gz or ftp://ftp.uu.net/graphics/jpeg/jfif.txt.gz
"CCITT Recommendation T.81 | ISO/IEC 10918-1, Digital Compression and Coding of Continuous-tone Still Images: Requirements and Guidelines", ISO. Available from http://www.iso.org/iso/en/StandardsQueryFormHandler.StandardsQueryFormHandler
"JEIDA-49-1998 Digital still camera image file format standard(exif)", Japan Electronics and Information Technology Industries Association (JEITA). Available from http://tsc.jeita.or.jp/
"The MIME Application/Multiplexed Content-type", Robert Herriot. It is currently available from http://search.ietf.org/internet-drafts/draft-herriot-application-multiplexed-05.txt (Subsequent versions will be available from the same location with the "05" incremented.)
"RFC2397 - The "data" URL scheme", L. Masinter. It is available from http://www.ietf.org/rfc/rfc2397.txt
"RFC3023 - XML Media Types", M. Murata, S. St.Laurent, and D. Kohn. January 2001. It is available from http://www.ietf.org/rfc/rfc3023.txt.
"RFC3236 - The 'application/xhtml+xml' Media Type", M. Baker. January 2002.  It is available from http://www.ietf.org/rfc/rfc3236.txt.

D.2. Informative References

"RFC 2045 - Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies", N. Freed, N. Borenstein, Section 6.8. "Base64 Content-Transfer-Encoding" is of particular interest. It is available at http://www.ietf.org/rfc/rfc2045.txt
"Compact HTML for Small Information Appliances", W3C Note, T. Kamada, 9 February 1998. Available at: http://www.w3.org/TR/1998/NOTE-compactHTML-19980209
"HTML 4.0 Guidelines for Mobile Access, W3C Note, T. Kamada, T. Asada, M. Ishikawa, S. Matsui, eds., 15 March 1999. Available at: http://www.w3.org/TR/1999/NOTE-html40-mobile-19990315
The latest version is available at: http://www.w3.org/TR/NOTE-html40-mobile
"Web Content Accessibility Guidelines 1.0", W3C Recommendation, W. Chisholm, G. Vanderheiden, I. Jacobs, eds., 5 May 1999. Available at: http://www.w3.org/TR/1999/WAI-WEBCONTENT-19990505
The latest version is available at: http://www.w3.org/TR/WCAG10
"Wireless Markup Language Specification", WAP Forum Ltd. Available from http://www.wapforum.org/what/technical.htm