disable-output-escaping with XSL

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

disable-output-escaping with XSL

mountainbiker
This post was updated on .
So, I have a stylesheet with

    <xsl:text disable-output-escaping="yes">
<![CDATA[<!--this is a test-->]]>
</xsl:text>

The HTML rendered has

    <?javax.xml.transform.enable-output-escaping?><!--this is a test--><?javax.xml.transform.enable-output-escaping?>

I am using

    let $html := transform:transform($xml, $xsl, $params, $attr, $serialization)
    return response:stream($html, $serialization)

My end goal is to do an IE conditional within the HTML

    <![if IE 8]>...<![endif]>


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: disable-output-escaping with XSL

Adam Retter
Can you try it outside eXist and see if it works? If do eXists serialzer may be post processing the xsl result. If so you should set the serialization option in XQuery too or call stream-transform instead

On 13 Jul 2017 11:16 a.m., "mountainbiker" <[hidden email]> wrote:
So, I have a stylesheet with

    <xsl:text disable-output-escaping="yes">

The HTML rendered has

    <?javax.xml.transform.enable-output-escaping?>&lt;!--this is a
test--&gt;<?javax.xml.transform.enable-output-escaping?>

I am using

    let $html := transform:transform($xml, $xsl, $params, $attr,
$serialization)
    return response:stream($html, $serialization)

My end goal is to do an IE conditional within the HTML

    <![if IE 8]>...<![endif]>






--
View this message in context: http://exist.2174344.n4.nabble.com/disable-output-escaping-with-XSL-tp4672397.html
Sent from the exist-open mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Loading...