{"action":"created","issue":{"url":"https://api.github.com/repos/albanm/node-libxslt/issues/12","labels_url":"https://api.github.com/repos/albanm/node-libxslt/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/albanm/node-libxslt/issues/12/comments","events_url":"https://api.github.com/repos/albanm/node-libxslt/issues/12/events","html_url":"https://github.com/albanm/node-libxslt/issues/12","id":84011755,"number":12,"title":"Result always outputs xml declaration","user":{"login":"pft","id":134100,"avatar_url":"https://avatars.githubusercontent.com/u/134100?v=3","gravatar_id":"","url":"https://api.github.com/users/pft","html_url":"https://github.com/pft","followers_url":"https://api.github.com/users/pft/followers","following_url":"https://api.github.com/users/pft/following{/other_user}","gists_url":"https://api.github.com/users/pft/gists{/gist_id}","starred_url":"https://api.github.com/users/pft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pft/subscriptions","organizations_url":"https://api.github.com/users/pft/orgs","repos_url":"https://api.github.com/users/pft/repos","events_url":"https://api.github.com/users/pft/events{/privacy}","received_events_url":"https://api.github.com/users/pft/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-06-02T12:59:22Z","updated_at":"2015-11-11T12:56:50Z","closed_at":null,"body":"Regardless whether you have\r\n```xml\r\n  <xsl:output method=\"text\" />\r\n```\r\nand/or \r\n```xml\r\n  <xsl:output omit-xml-declaration=\"yes\" />\r\n```\r\nthere is always an xml declarion in the result string, which is not desired in those cases."},"comment":{"url":"https://api.github.com/repos/albanm/node-libxslt/issues/comments/155776575","html_url":"https://github.com/albanm/node-libxslt/issues/12#issuecomment-155776575","issue_url":"https://api.github.com/repos/albanm/node-libxslt/issues/12","id":155776575,"user":{"login":"neu-rah","id":4712642,"avatar_url":"https://avatars.githubusercontent.com/u/4712642?v=3","gravatar_id":"","url":"https://api.github.com/users/neu-rah","html_url":"https://github.com/neu-rah","followers_url":"https://api.github.com/users/neu-rah/followers","following_url":"https://api.github.com/users/neu-rah/following{/other_user}","gists_url":"https://api.github.com/users/neu-rah/gists{/gist_id}","starred_url":"https://api.github.com/users/neu-rah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neu-rah/subscriptions","organizations_url":"https://api.github.com/users/neu-rah/orgs","repos_url":"https://api.github.com/users/neu-rah/repos","events_url":"https://api.github.com/users/neu-rah/events{/privacy}","received_events_url":"https://api.github.com/users/neu-rah/received_events","type":"User","site_admin":false},"created_at":"2015-11-11T12:56:50Z","updated_at":"2015-11-11T12:56:50Z","body":"i've tryed that user think also, the output is profiling information and profiling is done when a FILE* is not NULL\r\n\r\nhowever xsltSaveResultToString seem to do the trick http://xmlsoft.org/XSLT/html/libxslt-xsltutils.html#xsltSaveResultToString\r\n\r\nabout apply http://xmlsoft.org/XSLT/html/libxslt-transform.html#xsltApplyStylesheet\r\n\r\n> Apply the stylesheet to the document NOTE: This may lead to a non-wellformed output XML wise !\r\n\r\nthis seems to return an umparsed document (it can any format)... the libxslt is misleading here by using a document as return value\r\n\r\nthey should primarily return a string (as main method), we should gain performance when just outputting the result and flexibility as its not required to be xml derivate (I hope)"}}