diff --git a/tests/xslt/choose.test.tsx b/tests/xslt/choose.test.tsx index c8567e1..579e8d9 100644 --- a/tests/xslt/choose.test.tsx +++ b/tests/xslt/choose.test.tsx @@ -44,4 +44,90 @@ describe('xsl:choose', () => { const html = await xsltClass.xsltProcess(xml, xslt); assert.equal(html, 'NoYes'); }); + + it('https://github.com/DesignLiquido/xslt-processor/issues/92', async () => { + const xmlSource = ` + + + + + + + + + + + + `; + + const xsltSource = ` + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + `; + + const xsltClass = new Xslt(); + const xmlParser = new XmlParser(); + const xml = xmlParser.xmlParse(xmlSource); + const xslt = xmlParser.xmlParse(xsltSource); + const html = await xsltClass.xsltProcess(xml, xslt); + assert.equal(html, ''); + }); });