< param >

The <param> element specifies values that are passed into the <object> or in <subdialog>. When <param> is contained in a <subdialog> element, the values specified are used to initialize <var> declarations in the subdialog that is invoked. The initialization takes precedence over the expr attribute in <var>.

valuetype="data" | "ref"
nameThe name attribute is the name associated with the parameter. This attribute is required.
valueThe value attribute is the string value of the parameter. This attribute is required and either value or expr is required.
exprThe expr attribute is an expression that yields the parameter value. This attribute is required and either value or expr is required.
valuetypeThe valuetype attribute indicates the reference type of the value. This attribute is not used for <subdialog>. This attribute is optional and defaults to data.
* data – the value is actual data.
* ref – the value referenced by a URI.
typeThe type attribute is the media type of the result provided by a URI if the valuetype is ref. This is only relevant for the uses of <param> in the <object> element. This attribute is optional.
<object>, <subdialog>

This represents a document that calls the subdialog:

<?xml version="1.0"?>
<vxml version="2.0" xmlns="http://www.w3.org/2001/vxml">
  <subdialog name="result" src="subdialog.vxml">
   <param name="birthday" expr="'2000-02-10'"/>
   <param name="age" value="100"/>
    <submit next="process.vxml"/>

This represents a document containing the subdialog:

<?xml version="1.0"?>
<?xml version="1.0"?>
<vxml version="2.0" xmlns="http://www.w3.org/2001/vxml">
 <form id="getdriverslicense">
  <var name="birthday"/>
  <var name="age"/>
    Hello, your birthday is <value expr="birthday"/>
    and you are <value expr="age"/> years old.