XML Attributes
This topic is not current. For the most current information, see the Print Schema Specification.
There are a number of XML attributes that appear in several element types defined in the Print Schema Framework. XML attributes with the same name generally have the same meaning and obey the same rules regardless of the element type they reside in. Therefore, the XML attributes are listed here by name and not by their host element type. Privately-defined XML attributes are not permitted. Only the XML attributes defined here may be used in a PrintCapabilities document or a PrintTicket, and then only in the defined context.
Although private parties are not permitted to introduce new definitions into another party's namespace, they are permitted utilize existing names from another private namespace as long as its use is consistent with the usage established by the other party. Thus an Option may contain ScoredProperty elements defined by several different parties, each residing in different namespaces.
Attribute Name | Data Types and Values | Purpose | Notes |
---|---|---|---|
name |
XML QName |
This XML attribute identifies the element instance. It distinguishes one element from another of the same element type. This XML attribute is so widely used it is referred to as the name attribute. |
The following restrictions pertain to the name attribute.
|
propagate |
Enumeration No values are currently defined. |
The propagate attribute is not used in the initial version of the Print Schema Framework. It is documented here so that PrintCapabilities or PrintTicket validation code implemented for the initial version of the Print Schema Framework can process any subsequent schema versions without error. |
|
constrained |
Enumeration Allowed values:
|
Indicates whether the Option is available for selection or for use. |
The allowed values of the constrained attribute have the following meanings. Note that these values are listed in order, from least restrictive (None) to most restrictive (DeviceSettings). None
|
xmlns |
URI |
This XML attribute establishes a link between a namespace uniform resource identifier (URI) and the namespace prefix that appears in the XML QName. You must establish such a link to the namespace URI defined for the Print Schema Framework before you can use any of the Framework-defined element tags, Attributes, name attributes, and so on. You may declare this namespace to be the default to avoid actually qualifying the element tags with a namespace prefix, although all other QNames must be explicitly qualified. The standard namespace must be defined in the appropriate root element. Observe all XML rules and conventions regarding use of the xmlns attribute. The URI for the Print Schema Framework is http://schemas.microsoft.com/windows/2003/08/printing/printschemaframework. The URI for the Print Schema Keywords is `https://schemas.microsoft.com/windows/2003/08/printing/printschemakeywords`. |