BUG-5917: validate TransformerFactory 12/39312/5
authorIgor Foltin <ifoltin@cisco.com>
Tue, 24 May 2016 11:51:22 +0000 (13:51 +0200)
committerRobert Varga <nite@hq.sk>
Tue, 24 May 2016 21:22:07 +0000 (21:22 +0000)
commitdd5487e20c8a9b2191516b230ccd4e16896652dd
tree5c0d4df8b0cfe2af4160cc06f431f115e3fabdbf
parentcd635a24ec5c99e2722afd4673329d7d8cc94656
BUG-5917: validate TransformerFactory

Karaf-3.0.6 ships with Xalan as the default javax.xml.transform implementation.
Unfortunately it does not support StAXResult as the target of transformation,
rendering the writer useless.

Add a fallback to JVM-internal implementation if we detect that the default
factory cannot support StAXResult

Change-Id: I7151b0df8068c85ca53a85edd4894ac1ba70eece
Signed-off-by: Robert Varga <rovarga@cisco.com>
Signed-off-by: Igor Foltin <ifoltin@cisco.com>
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/codec/xml/XMLStreamNormalizedNodeStreamWriter.java