João Abecasis wrote:
David Abrahams wrote:

João Abecasis <[EMAIL PROTECTED]> writes:

Looking at w3.org for the XML specifications (both 1.0 and 1.1, QuickBook outputs 1.0), it seems that using "</>" as an end tag is, indeed, NOT valid XML. You cannot skip the name in the end tag. So the workaround really is the correct fix in this case.


Really!  Someone told me that you could, and I thought to myself,
"that's the one redeeming feature in the XML syntax."  :(


In a way, the syntax for end tags is redundant and we could do away with them in well-formed documents. However, this redudancy also affords us better error detection and recovery. Imagine an XML document using only '</>' end tags. If one of those is missing or misplaced how would one go about deciding which one it was?

There's no way.

Anyway, I don't want you or anyone to take my word for it, so I'm posting the relevant sections of the specs with references, which I skipped in my previous post.

[...]

IIRC, SGML allows "</>".

Cheers,
--
Joel de Guzman
http://www.boost-consulting.com
http://spirit.sf.net



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Boost-docs mailing list
[email protected]
Unsubscribe and other administrative requests: 
https://lists.sourceforge.net/lists/listinfo/boost-docs

Reply via email to