Message Oracle LPX-00320 - No more attributes can be added to a non empty element

ERRORNo more attributes can be added to a non empty element
CAUSEThe element to which an attribute was being added is non empty and hence can not add anymore attributes to it.
ACTIONModify the XSLT stylesheet so that all the attributes are added to an element before anything else is added to it. If you absolutely can not do that then select your output method to be DOM based rather then a stream or SAX based output which you are using presently.