xsl-list
[Top] [All Lists]

Re: [xsl] Content of Script element getting wrapped by CDATA

2008-10-22 18:19:29


but why all the complication over hiding the CDATA section, why not just
not have it. If you are outputting as html the CDATA section is clearly
in error: you can't have CDATA sections in script (which is a CDATA
element so <! doesn't start a marked section in that context)
If you are outputting xhtml and sending to an xhtml system the
CDATA section isn't needed, but if  it is there it will be resolved by
the xml parser and not seen by the javascript engine.

If the system is adding CDATA in html mode automatically then that would
be a bug.


David

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--