[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: GOTCHA!

Subject: Re: GOTCHA!
From: James Clark <jjc@xxxxxxxxxx>
Date: Thu, 14 Jan 1999 21:30:50 +0700
james clark jjc
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.