Altova StyleVision 2025 Enterprise Edition

There are two types of button: radio buttons and buttons. Radio buttons allow the Authentic View user to enter data into the XML file. Buttons do not allow data-entry in Authentic View, but are useful for triggering events in the HTML output.

 

Radio buttons

Inserting radio buttons in the SPS allows you to give the user a choice among multiple alternatives. Each radio button you insert maps to one XML value. The user selects one radio button. The radio buttons for a node are mutually exclusive; only one may be selected at a time, and the associated XML value is entered as the value of the node. The way to use this feature is to create the node for which the data-entry is required multiple times as a radio button. For each radio button enter (i) some static text to indicate its value to the user, and (ii) an XML value for each radio button. To edit the XML value of a radio button, in the Properties sidebar, select the radio button item, then click the Edit button of the radio button property. This pops up the Edit Radio Button dialog.

 

 


 

Buttons

The button option allows you to insert a button and specify the text on the button. This is useful if you wish to associate scripts with button events in the generated HTML output. Note, however, that a button does not map to any XML value and does not allow data entry in Authentic View. However, the value of the parent node of a button can be selected by the Authentic View user, and the SPS can be designed to modify presentation based on what the Authentic View user selects.

 

Note:You can modify the HTML properties of a radio button or button by selecting it and then modifying its HTML properties in the Properties sidebar.

 

Note:Radio buttons in Text output are displayed as parentheses: () for unselected radio buttons; (o) for selected radio buttons. Buttons generate only the button text in Text output.

 

© 2018-2024 Altova GmbH