Subject: RE: comments
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Thu, 20 Sep 2001 09:38:52 +0100
|
> 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
| Current Thread |
- comments
- Kevin_Gutch - Wed, 19 Sep 2001 18:38:03 -0400 (EDT)
- Michael Kay - Thu, 20 Sep 2001 04:44:54 -0400 (EDT) <=
|
|