14
December 15, 1997
X Print Attributes
14
X Print Attributes
Release 6.4
X Version 11
model qualified attribute) will effectively "unset" the lower precedence attribute specification. When a print
job commences, the X Print Service may infer a default value for an attribute that has no value. In some
cases the X Print Service may explicitly assign a default value to an attribute before presenting it in an
attribute pool.
3.1.2
Validating Attribute Values
The X Print Server ensures that attribute pools presented to the client are always comprised of valid attribute
specifications for attributes defined by the X Print Service. Validation is first performed when a print context
is created. Validation is also performed whenever a client requests an update to an attribute pool.
Validation involves checking the attribute value against its set of valid values. The process may also take into
account the current values of other attributes and the capabilities of the DDX driver.
Attributes may be single-valued or multi-valued.
When a print context is created, if the server determines that an attribute value is invalid, the server will
ignore the invalid attribute specification and may set an explicit default for the attribute in the pool. For
multi-valued attributes, the server will ignore each value component that is invalid. If all of the specified
components are invalid the server will reject the attribute specification, and for certain attributes will set an
explicit default for the attribute in the pool.
When the client requests an update to an attribute pool (e.g. when issuing PrintSetAttributes), if the server
determines that a single-valued attribute is invalid, that attribute will not be updated. If all components of a
multi-valued attribute are invalid the attribute will not be updated, otherwise any invalid components are
ignored. Unrecognized attributes will be stored in the corresponding attribute pool and returned in Print-
GetAttribute
, but are otherwise ignored.
As part of the validation for a given attribute, the print server may alter other attributes in response to the
change. For example, changing the value of the document-format attribute might cause the value of the xp-
embedded-formats-supported
attribute to change as.
3.1.3
Structured Values
3.2
Server Attributes
The server attribute pool is identified by XPServerAttr and describes the capabilities of the X Print Server.
locale
The value of this attribute is the locale in which the X Print Server is running.
multiple-documents-supported
This attribute indicates whether the server supports jobs containing multiple
documents.
3.3
Printer Attributes
The printer attribute pool is identified by XPPrinterAttr and describes printer capabilities.