String attributes get lost when using sparse instances

From BioWeka

Contents

Circumstances

  • Using XslXmlLoader on command line.
  • The stylesheet outputs sparsed instances.
  • The instances have one or more string attributes.

Symptoms

  • The values of the string attributes of the first instance get lost.

Causes

Solutions

  • Edit the XML file and add a dummy instance as the first instance.