|
Subject: Re: GOTCHA! From: James Clark <jjc@xxxxxxxxxx> Date: Thu, 14 Jan 1999 21:30:50 +0700 |
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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: GOTCHA!, Oren Ben-Kiki | Thread | Re: GOTCHA!, Oren Ben-Kiki |
| Re: Existing XSL processors, Guy_Murphy | Date | Re: Existing XSL processors, Joel Rosi-Schwartz |
| Month |