mrPage element
Defines the HTML generation settings for the page. All formatting should be defined via CSS.
Attributes for mrPage
BannerTemplate
The relative path to the banner template to use when replacing mrData tags that specify a question Banner element.
Use: optional
Valid values: string
ContentType
Inserts a hidden text area containing an XML or JSON representation of the Player XML. The rest of the page is rendered as normal. The text area is called either “PlayerXML” or “PlayerJSON”.
If you want to remove the standard HTML representation of the questions, delete the <mrData/> tag.
Use these features to produce HTML (as normal), HTML + XML or JSON, or only XML or JSON.
If you change the XML or JSON content of the text area so it has response values (the answers), the hidden text area is submitted back to the server.
If you have both HTML and XML/JSON on the page and answer the page as normal by using the HTML, the XML/JSON is sent back to the server together with the normal answers from the HTML. The HTML Player uses take whatever it encounters first:
If it encounters the XML or JSON, it takes that as the answers and ignores the question inputs.
If it encounters any question input first it takes all question inputs and ignores the XML/JSON. Therefore, if you are using the XML/JSON to render the page, you must convert the answers back to XML/JSON. If you are using the normal HTML controls, clear the contents of the hidden text area before submitting to avoid inconsistencies.
Use: optional
Valid values: string, either "XML" or "JSON"
ErrorTemplate
The relative path to the error template to use when replacing mrData tags that specify a question Error element.
Use: optional
Valid values: string
GridTemplate
The relative path to the grid template to use to format loop categorical and loop numeric questions
Use: optional
Valid values: string
IncludeCSSNames
Controls whether CSS class names will be added to the rendered HTML.
Use: optional
Valid values: boolean
IncludeElementIDs
Controls whether IDs will be added for elements in the rendered HTML.
This might need to change to an enum to control where IDs get added.
Use: optional
Valid values: boolean
IncludeGridControlAltLabels
Controls whether alternative text will be added to the rendered HTML for controls within a table. This attribute must be included in the template, and set to True, in order for rendered grid questions to be 508 compliant (and for 508 compliant screen readers to properly read the questions).
Use: optional
Valid values: boolean
IncludeLabelIDs
True inserts aria-labelledby attributes in the output. These attributes are used by screen‑readers: they are added to unlabeled controls such as “other specify” input boxes and radio buttons in grids to indicate their parent controls.
Use: optional
Valid values: boolean
IncludeTableHeadings
Controls whether row/column headings will be added to the rendered HTML for table questions.
Use: optional
Valid values: boolean
LabelXSL
The relative path to the label XSL file to use when creating HTML for the question label element.
Use: optional
Valid values: string
NavBarTemplate
The relative path to the NavBar template to use when replacing mrNavBar tags.
Use: optional
Valid values: string
NavgationXSL
The relative path to the question XSL file to use when creating HTML for the navigation element.
Use: optional
Valid values: string
PageTimeout
mrIWeb will use this attribute value as the timeout value (in seconds) when set.
Use: optional
Valid values: longInteger
QuestionTemplate
The relative path to the question template to use when replacing mrData tags that do not specify a question element.
Use: optional
Valid values: string
QuestionXSL
The relative path to the question XSL file to use when creating HTML for the question element.
Use: optional
Valid values: string
UseNameAsElementID
Controls Whether the ID and name should be the same.
Use: optional
Valid values: boolean
UseTablesLayout
Uses the table layout for single row and column categorical lists.
Use: optional
Valid values: boolean
XML representation
<xs:element name="mrPage">
<xs:attribute name="IncludeCSSNames" type="xs:boolean" use="optional" default="true"/>
<xs:attribute name="IncludeElementIDs" type="xs:boolean" use="optional" default="false"/>
<xs:attribute name="IncludeGridControlAltLabels" type="xs:boolean" use="optional" default="false"/>
<xs:attribute name="IncludeTableHeadings" type="xs:boolean" use="optional" default="false"/>
<xs:attribute name="QuestionTemplate" type="xs:string" use="optional"/>
<xs:attribute name="NavBarTemplate" type="xs:string" use="optional"/>
<xs:attribute name="ErrorTemplate" type="xs:string" use="optional"/>
<xs:attribute name="BannerTemplate" type="xs:string" use="optional"/>
<xs:attribute name="GridTemplate" type="xs:string" use="optional"/>
<xs:attribute name="LabelXSL" type="xs:string" use="optional"/>
<xs:attribute name="QuestionXSL" type="xs:string" use="optional"/>
<xs:attribute name="NavgationXSL" type="xs:string" use="optional"/>
<xs:attribute name="PageTimeout" type="xs:longInteger" use="optional"/>
<xs:attribute name="UseTablesLayout" type="xs:boolean" use="optional"/>
<xs:attribute name="UseNameAsElementID" type="xs:boolean" use="optional"/>
<xs:attribute name="ContentType" type="xs:string" use="optional"/>
</xs:element>
See also