0

have some HTML with attribute value contains { , } and : needed to be generated using XSL

 <?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="html"/>
    <xsl:template match="/"><ul>
                <li data-jstree="{ 'icon' : 'fa fa-briefcase icon-state-success ' }"/></ul></xsl:template>
</xsl:stylesheet>

The above give an error :The stylesheet does not contain a document element. The stylesheet may be empty, or it may not be a well-formed XML document.

Jacky
  • 11
  • 5

0 Answers0