ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* xml comments
@ 2001-11-26 14:20 Patrick Gundlach
  2001-11-26 15:03 ` Hans Hagen
  2001-11-26 15:07 ` Hans Hagen
  0 siblings, 2 replies; 6+ messages in thread
From: Patrick Gundlach @ 2001-11-26 14:20 UTC (permalink / raw)


Hi,

xml comments have a bug (!?): spaces are critical at the 
beginning of a comment.

\starttext
\startbuffer
<!-- ignored comment -->
<one>one</one>
<!--not ignored -->
<two>two</two>
\stopbuffer
\processXMLbuffer
\stoptext

this should (as far as I understand the spec right) only output 
one two and not the second comment (<!--not ignored -->)

it seems that the missing space between the -- and the n is 
causing this effect. 

Thats what the xml rec says:
[15]   
Comment
  ::=   
 '<!--' ((Char - '-') | ('-' (Char - '-')))* '-->'

But probably Taco knows for sure if there is another spec which 
states otherwise ;-)

I hope you don't understand me wrong: with all my bug reports 
I don't want to complain  
about context, which is in my eyes a great piece of software. 

Viele Grüße,

  Patrick Gundlach

- I TeX, therefore I am -


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-11-27 13:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-26 14:20 xml comments Patrick Gundlach
2001-11-26 15:03 ` Hans Hagen
2001-11-26 15:07 ` Hans Hagen
2001-11-27  8:37   ` Taco Hoekwater
2001-11-27  9:43     ` Hans Hagen
2001-11-27 13:21       ` Taco Hoekwater

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).