This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: comments


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]