Re: emitting comments

Subject: Re: emitting comments
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 4 Aug 1999 13:22:35 +0100 (BST)
>  Is this a bug or a feature?

feature.

The first thing that happens to a dsssl script is that it is parsed as
SGML so <!-- ... is a comment. If you want to put the characters <!--
into a string then you can either concatenate two strings, as you did,
or use character entities rather than literal character data, so the
parser sees them as character data rather than markup.

One small advantage of xsl over dsssl is that the corresponding problem
(which still does cause many questions on the xsl list) is simpler to
explain in that case. It is a lot more obvious why the XML syntax of XSL
should be parsed by an XML parser, than why the lisp syntax of DSSSL
should be parsed by an SGML parser (and then again by a lisp parser).

David


 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread