|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: GOTCHA!
Oren Ben-Kiki wrote:
>
> James Clark <jjc@xxxxxxxxxx> wrote:
> >> Any reason we have <xsl:comment> and not <xsl:cdata>? Any chance we may
> get
> >> <xsl:cdata>?
> >
> >I can't see how it would help you.
> I would write:
>
> <script>//<xsl:cdata>
> for(i = 10; i >= 0; i--) {
> }
> //</xsl:cdata></script>
And get
<script>//<![CDATA[
for(i = 10; i >= 0; i--) {
}
//]]></script>
Seems like a hack to me. It does avoid the problem of -- not being
allowed inside comments, but there's already a hack you can use to avoid
that problem, which is to use a PI:
<script>//<xsl:pi name="xyzzy">
for(i = 10; i >= 0; i--) {
}
//</xsl:pi></script>
None of this is really necessary. For HTML 4.0 you can use result-ns,
and in the future, with Voyager, the whole problem goes away.
James
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








