About EasyMorph Tutorials & Examples Web-help

XSLT Transformation "Conformance Level" Errors

Hello,

I have an XSLT file that tests successfully in some other tools, but when I run it through the EasyMorph XSLT transformation, I receive the following error:

"Error: Token StartElement in state EndRootElement would result in an invalid XML document. Make sure that the ConformanceLevel setting is set to ConformanceLevel.Fragment or ConformanceLevel.Auto if you want to write an XML fragment.
Source: action “XSLT transformation” in , table “Table 1"”

Does this indicate an issue with the XSLT template, or since it test successfully elsewhere, is there something about EasyMorph’s XSLT support that is incompatible/that I’m missing?

Edit: Attached an example XML with dummy data, and the XSLT. Transformation is successfull when throwing both into https://www.freeformatter.com/xsl-transformer.html, but I get the above error using EasyMorph.

TextXML.txt (10.9 KB)
XLSTfile.txt (24.1 KB)

This will probably require adding a new setting to the action because currently fragments are not enabled.

I’ll keep you posted.

1 Like

This setting will be available in version 4.1 to be released in a few days.

To learn more about EasyMorph visit easymorph.com.