This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: comments
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] comments
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Thu, 20 Sep 2001 09:38:52 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> I want to insert XSL:Elements inside XSL:Comments. I am
> getting an error
> when trying to do this.
> Not sure why this isn't acceptable.
XML comments can include angle brackets as ordinary characters. You can use
them for things that look like markup, e.g.
<!-- <br/> -->
but they aren't really markup, because you can also write
<!--<<<<>>>> <br was here/> <<<<>>>>-->
which clearly wouldn't parse as an "element within a comment".
So if you want to generate anagle brackets inside a comment, you need to
generate them as ordinary charaters, not as serialized element nodes.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list