code: public StreamSource getTransformerStream()
      {
          Reader reader = new StringReader(XSL_CONVERT);
          StreamSource stylesource = new StreamSource(reader);
          return stylesource;
      }
docs: GetTransformerStream Method.