You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by dIon <di...@apache.org> on 2002/11/18 12:31:10 UTC

[jelly] [jsl] Howto output xml tags gracefully.

I've got the following:

<script type="text/javascript"><![CDATA[
   if (document.layers) {
     document.writeln("
       <link rel='stylesheet' type='text/css'
             href='${relativePath}/style/ns4_only.css' media='screen' />
       <link rel='stylesheet' type='text/css'
             href='${relativePath}/style/maven_ns4_only.css' 
media='screen'/>
                     ");
   }
]]></script>

In a script and the <link comes out as:

document.writeln(" &lt;link rel='stylesheet'

as you can see the &lt; is escaped.

How can I stop this?
--
dIon


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>