Here is the XML code:
<inputs>
<param name="input_dataset" label="Input dataset (ShoweLab or FBK Format) to split" type="data" format="showelab-dataset,fbk-svm-dataset"/>
<conditional name="format_condition">
<param name="format_options" label="Choose the type of dataset you want to split" type="select">
<option value="fbk">FBK Format</option>
<option value="showelab" selected="True">ShoweLab Format</option>
</param>
<when value="fbk">
<param name="input_fbk_dataset_labels" label="Input dataset labels (FBK Format) to split" type="data" format="fbk-labels"/>
</when>
<when value="showelab" />
</conditional>
<param name="split_perc" label="Percentage of Training Set among complete dataset" type="float" min="0.05" max="0.95" value="0.75"/>
</inputs>
<outputs>
<data format="showelab-dataset" name="trainingDataset" label="Training Dataset extracted from ${
input_dataset.name}">
<filter>format_condition["format_options"] == "showelab"</filter>
</data>
<data format="showelab-dataset" name="validationDataset" label="Validation Dataset extracted from ${
input_dataset.name}">
<filter>format_condition["format_options"] == "showelab"</filter>
</data>
<data format="fbk-svm-dataset" name="trainingDataset" label="Training Dataset extracted from ${
input_dataset.name}">
<filter>format_condition["format_options"] == "fbk"</filter>
</data>
<data format="fbk-labels" name="trainingLabels" label="Training Dataset Labels extracted from ${
input_fbk_dataset_labels.name}">
<filter>format_condition["format_options"] == "fbk"</filter>
</data>
<data format="fbk-svm-dataset" name="validationDataset" label="Validation Dataset extracted from ${
input_dataset.name}">
<filter>format_condition["format_options"] == "fbk"</filter>
</data>
<data format="fbk-labels" name="validationLabels" label="Validation Dataset Labels extracted from ${
input_fbk_dataset_labels.name}">
<filter>format_condition["format_options"] == "fbk"</filter>
</data>
</outputs>