Re: [xsl] "--" question

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

>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
> combination together within a comment and have the parsing processor
> that combo.  I recognize this is not standard for xslt, and I'm curious
> the reasoning is for it.  Placing a significant number of
> within xslt diminishes the understanding and reading capability of the
> original XSLT file.  This is especially true when trying to translate
> 'comment' text into usable scripting for the output generated.

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

The XSLT recommendation requires that processors ensure this does not

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.


 XSL-List info and archive:

Current Thread