Sunday, May 10, 2009

b. Finden Sie 2 Dokumente auf dem HPI-Webserver, die zwar well-formed aber nicht valid XML sind. Geben Sie wiederum ein Fragment des Dokuments an sowie das validity constraint, welches von diesem Dokument verletzt wird.

Die XML Spezifikation zufolge: "An XML document is valid if it has an associated document type declaration and if the document complies with the constraints expressed in it."

1. http://kolleg.hpi.uni-potsdam.de/index.php?id=3927

2. http://kolleg.hpi.uni-potsdam.de/index.php?id=3723

Line 73, Column 104: ID "js-menu2" already defined
…:160px;VISIBILITY:hidden;"><div id="js-menu2"><

Line 72, Column 103: ID "js-menu2" first defined here

Die beide Dokumente sind zwar well-formed aber nicht valid, die Validity constraint: ID ist verlezt: "A name must not appear more than once in an XML document as a value of this type; i.e., ID values must uniquely identify the elements which bear them."

No comments:

Post a Comment