My file base.css contains:
ol > li { color: red; }
I try to read it and render it into my HTML output using XSLT 2.0 unparsed-text (Saxon 9.1.0.2J) like this :
<style>
<xsl:sequence select="unparsed-text(fn:iri-to-uri($CSS-BASE-FILE))"/>
</style>
However, the unparsed-text() function is converting the '>' to '>' in the HTML, like this:
<style>
ol > li { color: red; }
</style>
...Which doesn't behave as "ol > li" does.
How can I use XSLT to render the '>' character into my element? I've tried using replace(..., '>', '>'), but that still renders '>' into the HTML.
Alternatively, is there another way I can specify the CSS child selector without having to embed a literal '>' character into my HTML?
xsl:sequence. Why do you want to render the value of the unparsed text as a sequence instead of a literal string?xxl:valueyields the same result. Ah, but your comment leads me to the doorstep ofdisable-output-escaping, documented at saxonica.com.<xsl:value-of select="unparsed-text(fn:iri-to-uri($CSS-BASE-FILE))" disable-output-escaping="yes"/>.