github.com/matislovas/ratago@v0.0.0-20240408115641-cc0857415a7a/xslt/testdata/general/bug-140.xsl (about) 1 <?xml version="1.0" encoding="iso-8859-1" standalone="no"?> 2 3 <!DOCTYPE xsl:stylesheet [ 4 5 <!ENTITY bar "bar"> 6 7 <!ENTITY foo "var foo = &bar;"> 8 9 <!-- namespace for SVG --> 10 <!ENTITY svgns "http://www.w3.org/2000/svg"> 11 <!-- namespace for XSLT --> 12 <!ENTITY xsltns "http://www.w3.org/1999/XSL/Transform"> 13 14 ]> 15 16 <xsl:stylesheet version="1.0" 17 xmlns="&svgns;" 18 xmlns:xsl="&xsltns;" 19 exclude-result-prefixes="xsl"> 20 21 <xsl:output method="xml" indent="yes" encoding="iso-8859-1" 22 standalone="yes" cdata-section-elements="script"/> 23 24 <xsl:variable name="foo" select="'bar'"/> 25 26 <xsl:template match="/"> 27 <script type="text/ecmascript"> 28 var foo2 = text; 29 </script> 30 </xsl:template> 31 32 </xsl:stylesheet>