In order to correct an error, all we have to do is to rewrite the trigger and the XLS_FO. The following are the alternatives depending on the XML structure:
<?if:element_name and element_name="?>
As the first case is the suitable match in this example, the XSL-FO code will be as follows:
According to your data, many other more or less complicated situations can be encountered. ...