    @Test
    void testTransformString()
    {

        String d = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><a b='c'>d</a>";
        String s = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
            + "<xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0'>" +
            "<xsl:output method='xml' omit-xml-declaration='yes'/>"
            + "<xsl:template match='node()'><xsl:copy/></xsl:template></xsl:stylesheet>";
        String result = this.xml.transform(d, s);
        assertEquals("<a/>", result);
    }