An attribute that is based on a data structure becomes either an XML element entity (DTDs only) or XML attribute entity (DTDs only), dependent on the value of the XMLStructAsAttributeEntity setting in the sa2001.ini file. The referenced data, whether data element or data structure, is transformed as described above and then attached as a child of the XML element entity or XML attribute entity.