ParameterRef

This topic is not current. For the most current information, see the Print Schema Specification.

A ParameterRef element defines a reference to a ParameterInit element. A ScoredProperty element that contains a ParameterRef element does not have an explicitly-set Value element. Instead, the ScoredProperty element receives its value from the ParameterInit element referenced by a ParameterRef element.

Element Tag

<ParameterRef>

XML Attributes

The following table lists the XML attributes that may be pertain to this element.

XML Attribute Details
name
Holds the name attribute of the ParameterDef element that is referenced within the context of the current document.

For more information, please see XML Attributes section.

Element Information

The following table lists the elements that may be parents of this element, the elements that may be children of this element, and any restrictions on the element itself.

Category Details
Parent elements
ScoredProperty
Child elements
None permitted.
This element
No character data is permitted.
Duplicate child siblings are not permitted.

Configuration Dependencies

ParameterRef elements may not have any configuration dependencies.

Example

The following example illustrates how to use ParameterRef elements to enable users to enter custom media size parameters.

<psf:Option name="psk:CustomMediaSize" constrained="psk:None">
  <psf:ScoredProperty name="psk:MediaSizeWidth">
    <psf:ParameterRef name="psk:PageMediaSizeMediaSizeWidth" />
  </psf:ScoredProperty>
  <psf:ScoredProperty name="psk:MediaSizeHeight">
    <psf:ParameterRef name="psk:PageMediaSizeMediaSizeHeight" />
  </psf:ScoredProperty>
  <psf:Property name="psk:DisplayName">
    <psf:Value xsi:type="xs:string">Fabrikam User Custom</psf:Value>
  </psf:Property>
</psf:Option>

Print Schema Specification