<param>

Specifies an input parameter for the <subdialog> element.

Attributes

This section describes the attributes you can set for this element.

Name

Data type

Default

expr

CDATA

optional

name

NMTOKEN

optional

type

CDATA

optional

value

CDATA

optional

valuetype

(data | ref)

data

expr

The expr attribute specifies a value assigned to a property.

name

The name attribute specifies the name of a property.

type

The type attribute specifies either the MIME type or the fully qualified class name of the object created by the <param> element.

value

The value attribute associates a literal string value to the name attribute.

valuetype

The valuetype attribute specifies if the value associated with the name attribute is of type data (default) or ref (URI). Note that this attribute is not used in subdialogs.

Children

Parents

Sample code

<subdialog name="quiz" src="#Quiz">
    <!--This parameter specifies the minimum correct percentage
    for the test to be a success.-->
    <param name="min_pass_ratio" expr=".9"/>
    <!-- This parameter specifies the quantity of test 
    questions. -->
    <param name="iterations" expr="2"/>
    <!--The called dialog will throw a 'fail' event if the user
    did not pass. Note the use of the _message shadow which was
    populated for this event in the called dialog.-->
    <catch event="fail">
        <prompt> Your final score of <value expr="_message *
            100"/> percent was not sufficient to be certified as a
            military radio operator. Please practice more, and try again.
        </prompt>
        <exit/>
    </catch>
    <!-- If no event was thrown, the user passed. -->
    <filled>
        <prompt>Congratulations, you passed</prompt>
        <submit next="user_passed.jsp" namelist="ssn"/>
    </filled>
</subdialog>