다음을 통해 공유


2.2.7.1.3 title Element

The title XML element specifies a string using attributes or nested text, optionally combined with nested parameter elements, that SHOULD be used by the AsyncUI client as the displayable title of a printer event.

If any of the strings specified by attributes or nested text contains position parameter replacement tags, the client MUST replace the parameters with strings that are constructed from the sequence of parameter elements.

 <xs:element name="title">
   <xs:complexType
     mixed="true"
   >
     <xs:sequence>
       <xs:element
         minOccurs="0"
         maxOccurs="unbounded"
         ref="parameter"
        />
     </xs:sequence>
     <xs:attribute name="stringID"
       type="xs:integer"
       use="optional"
      />
     <xs:attribute name="resourceDll"
       type="xs:string"
       use="optional"
      />
   </xs:complexType>
 </xs:element>

Child Elements

Element

Type

Description

parameter

parameter

 See section 2.2.7.1.5.

Attributes

Name

Type

Description

stringID

xs:integer

The value of this optional attribute, if present, is the key of a string resource in the resource file specified by the resourceDll attribute. If the resourceDll attribute is not specified, stringID MUST be used as the key of a string resource in the default resource file.

String resources that are present in the default resource file are specified in section 2.2.6.

resourceDll

xs:string

The value of this optional attribute, if present, is the driver-file name of a resource file on the client system that contains the string resources used in this message.

If no value is specified, a default resource file MUST be used.

If the stringID attribute is not specified, the text content in the title element MUST be present, and it MUST be used by the client as the string to display.

If the stringID attribute is specified, the title element MUST NOT contain nested text, and the client MUST treat the presence of such text as an error.

Nested text MUST NOT follow a parameter element.