Altova StyleVision 2023 Basic Edition

Conditional Processing in Tables

Home Prev Top Next

Conditional processing can be set on individual columns and rows of static and dynamic tables, as well as on column and row headers, to display or hide the column, row, or header depending on the truth of the condition. If the condition evaluates to true, the column, row, or header is displayed. Otherwise it is not.

 

Adding and editing conditional processing

To add conditional processing to a column, row, or header, right click the respective design component and select Edit Conditional Processing. (In the screenshot below, the column-header design-component at top left is shown highlighted in blue; the second-column design-component is shown outlined in blue; the only row component is below the column-header design-component.)

 

TableConditionsCol

 

Clicking the Edit Conditional Processing command pops up the Edit XPath Expression dialog, in which you enter the XPath expression of the condition. Here are some ways in which conditional processing could be used.

 

On a column, row, or table, enter the XPath expression false()to hide the column, true() to display it.

A column is output only if the sum of all the values in that column exceeds a certain integer value.

A column or row is output only if no cell in that column or row, respectively, is empty.

A column or row is output only if a certain cell-value exists in that column or row, respectively.

 

To edit an already created condition, right click the respective design component and select Edit Conditional Processing. In the Edit XPath Expression dialog that pops up, edit the XPath expression that tests the truth of the condition.

 

Removing conditional processing

To remove the conditional processing of a column, row, or header, right click the respective design component and select Clear Conditional Processing.

 

© 2017-2023 Altova GmbH