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

Re: "--" question

Subject: Re: "--" question
From: david_n_bertoni@xxxxxxxxxx
Date: Mon, 7 Apr 2003 11:53:43 -0700
Re:  "--" question



>From: David Carlisle <davidc@xxxxxxxxx>
> > I'm not quite sure what to suggest you should do about it, though!
>
>Surely the best solution is not to put the javascript into a comment
>
> Maybe I'm missing the idea here, but from the viewpoint that this is a
> comment, I feel that I ought to have the leeway to put nearly any
character
> combination together within a comment and have the parsing processor
ignore
> that combo.  I recognize this is not standard for xslt, and I'm curious
what
> the reasoning is for it.  Placing a significant number of
&#decimalOrName;
> within xslt diminishes the understanding and reading capability of the
> original XSLT file.  This is especially true when trying to translate
some
> 'comment' text into usable scripting for the output generated.

The string '--' cannot appear in a comment.  Otherwise, the document will
not be well-formed:

   http://www.w3.org/TR/REC-xml#sec-comments

The XSLT recommendation requires that processors ensure this does not
happen:

   http://www.w3.org/TR/xslt#section-Creating-Comments

If the XML recommendations codified whatever people "feel" is correct,
we'ed be in a sorry state.  You may not agree with how things work, but the
behavior you're seeing is correct.

Dave


 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.