Comparing version 0.2.1 to 0.2.2
@@ -38,3 +38,3 @@ /** | ||
try { | ||
source = libxmljs.parseXml(source); | ||
source = libxmljs.parseXml(source, { nocdata: true }); | ||
} catch (err) { | ||
@@ -41,0 +41,0 @@ if (callback) return callback(err); |
{ | ||
"name": "libxslt", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "Node.js bindings for libxslt compatible with libxmljs", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -19,3 +19,3 @@ node-libxslt | ||
```js | ||
var lixslt = require('libxslt'); | ||
var libxslt = require('libxslt'); | ||
@@ -46,3 +46,3 @@ libxslt.parse(stylesheetString, function(err, stylesheet){ | ||
var stylesheetObj = libxmljs.parseXml(stylesheetString); | ||
var stylesheetObj = libxmljs.parseXml(stylesheetString, { nocdata: true }); | ||
var stylesheet = libxslt.parse(stylesheetObj); | ||
@@ -203,2 +203,2 @@ | ||
*documented by [jsdoc-to-markdown](https://github.com/75lb/jsdoc-to-markdown)*. | ||
*documented by [jsdoc-to-markdown](https://github.com/75lb/jsdoc-to-markdown)*. |
@@ -67,3 +67,2 @@ var fs = require('fs'); | ||
libxslt.parseFile('./test/resources/cd.xsl', function(err, stylesheet) { | ||
console.log(err); | ||
stylesheet.should.be.type('object'); | ||
@@ -159,2 +158,12 @@ callback(err); | ||
}); | ||
describe('disable-output-escaping attribute', function() { | ||
it('should be interpreted by a stylesheet', function() { | ||
var stylesheetStr = fs.readFileSync('test/resources/disable-output-escaping.xsl', 'utf8'); | ||
var stylesheetEsc = libxslt.parse(stylesheetStr); | ||
var result = stylesheetEsc.apply('<root/>'); | ||
result.should.match(/<foo\/>/); | ||
result.should.match(/<bar\/>/); | ||
}); | ||
}); | ||
}); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
1646636
163
930
202