No, this isn't possible with libxslt. But libxslt will always output double quotes as "
inside attributes:
<div data-plugin-options="{"opt1":"foo", "opt2": "baz\'s bar"}"></div>
Accessing the contents of the attribute from JavaScript should yield the correct JSON string.