On Fri, 2020-06-12 at 03:46 +0200, Giuseppe G. A. Celano wrote:
> Hi,
> 
> I would like to print a comment containing only a dash (i.e., <!-----
> >) , but this is not allowed.

This is not permitted in XML; it's a syntax error. A - in a comment
must be followed by a character that is not a hyphen. You can do,
<!--- -->
or
<!-- - -->
but not
<!----->

There are no tricks or workarounds, it's illegal.

Liam

https://www.w3.org/TR/REC-xml/#sec-comments

-- 
Liam Quin, https://www.delightfulcomputing.com/
Available for XML/Document/Information Architecture/XSLT/
XSL/XQuery/Web/Text Processing/A11Y training, work & consulting.
Barefoot Web-slave, antique illustrations:  http://www.fromoldbooks.org

Reply via email to