Default stylesheet in MCRLayoutTransformerFactory should only be used when output method is 'xml'

Description

Stylesheets with output method 'text' or 'html' can not be parsed as XML for the next layout step using the default stylesheet. Xalan does not throw any exception so we need to take care that text is directly forwarded to the output pipe.

Environment

None

Assignee

Thomas Scheffler

Reporter

Thomas Scheffler

Labels

None

URL

None

External issue ID

None

Components

Fix versions

Priority

Medium
Configure