Re: Bug in XMLSpy?




Gus Gassmann <Horand.Gassmann@xxxxxx> wrote in
<0bc43061-0166-4e66-a988-f45b4029cb32@xxxxxxxxxxxxxxxxxxxxxxxxxxx>:
Just put the following comment into a file (w3.xml schema)

<!--
---------------------------------------------------------------------------
-->

I was even careful enough to put spaces after the "<!--"
and "-->", but the parser in XMLSpy complains that the
third "-" after the first gap is "grammatically
unexpected".

And Altova is absolutely right this time. Both XML 1.0 4E
and XML 1.1 2E define comments as:

'<!--' ((Char - '-') | ('-' (Char - '-')))* '-->'

See 2.5. This restriction is even spelled out in prose.

--
....also, I submit that we all must honourably commit seppuku
right now rather than serve the Dark Side by producing the
HTML 5 spec.
.



Relevant Pages

  • ANNOUNCE: Version 2007 of Altova XML software available
    ... Altova is pleased to announce the availability of Version 2007 of its ... XML product line. ...
    (microsoft.public.sqlserver.xml)
  • Re: Who supports Schema validation of unique
    ... XML is case-sensitive. ... where P. Lepin found the error was supplied by ... I downloaded an evaluation version of Altova XMLSpy, ... has to pay money for a properly functioning XML validation tool. ...
    (comp.text.xml)
  • Re: Textarea handling in php ?
    ... The spec is where the rules are. ... In particular chapter 20 states that SGML SHORTTAG support is enabled for ... and the BR element is defined to be empty, ... you may be wondering why things are different in XML. ...
    (comp.lang.php)
  • Re: xml syntax
    ... These days you need to not only read and understand the XML ... spec, ... The extensions are themselves pretty well standardized at this point, and most BNF-driven parser generators actually accept an EBNF ...
    (comp.text.xml)
  • Re: Attribute value and blank entity
    ... For an explanation of what that rule means, from one of the folks who defined it, see Tim Bray's _Annotated_XML_Specification_. ... The Annotated XML Spec, by the way, is an absolutely invaluable resource if you're trying to figure out what the spec really means, or why it is as it is, or if you just want to better understand the philosophy behind the original design of XML. ... By the way, when reading W3C specs, don't forget to check the errata documents too. ...
    (comp.text.xml)

Loading