[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Re: Un-cdata-section-elements


Subject: Re: [xsl] Re: Un-cdata-section-elements
From: "Alexander Johannesen" <alexander.johannesen@xxxxxxxxx>
Date: Wed, 22 Mar 2006 10:15:19 +1100

On 3/22/06, yguaba@xxxxxxxxxxxx <yguaba@xxxxxxxxxxxx> wrote:
> I'm not sure I understand your problem.

I need ;

<script type="javascript">
 // <![CDATA[          <----------- It's this first '//' what I'm after
 javascript here ...
 // ]]>
</script>

> If this is the case, there's nothing to be escaped: you just take the
> contents of the CDATA section and output it as plain text between two
> SCRIPT tags.

No, that's not good enough; the output I want to be valid XHTML 1.0
Strict, and as such it needs to live in a CDATA section, but
best-practice also wants single-line comments to preced the CDATA
element, as demonstrated above.


Alex
--
"Ultimately, all things are known because you want to believe you know."
                                                         - Frank Herbert
__ http://shelter.nu/ __________________________________________________


Current Thread
Keywords