XSLT to Create JSON from webmethods Document structure

Hi :),

Is there a way to receive a document structure and using XSLT output a JSON