You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@forrest.apache.org by Terrence Brannon <me...@gmail.com> on 2006/06/29 02:38:07 UTC

error msg should be logically inverted?

On line 185 of my xml document I have this:


<img width="88" height="31" border="0" src="btn88-bm.gif" alt="Tune In
Bluemars."/>

But the error message says this:

/C:/Documents%20and%20Settings/Administrator/My%20Documents/domains/org/livingcosmos/dev/src/documentation/content/xdocs/music.xml:185:86:
Attribute "border" must be declared for element type "img".

The bolding of the word "must" is by me. I'm thinking it should say must not
because removing it allows the line to parse successfully.

Re: error msg should be logically inverted?

Posted by Brian M Dube <br...@gmail.com>.
Terrence Brannon wrote:
> On line 185 of my xml document I have this:
> 
> 
> <img width="88" height="31" border="0" src="btn88-bm.gif" alt="Tune In 
> Bluemars."/>
> 
> But the error message says this:
> 
> /C:/Documents%20and%20Settings/Administrator/My%20Documents/domains/org/livingcosmos/dev/src/documentation/content/xdocs/music.xml:185:86: 
> Attribute "border" must be declared for element type "img".
> 
> The bolding of the word "must" is by me. I'm thinking it should say must 
> not because removing it allows the line to parse successfully.

The error message means the attribute must be declared by the document's 
  schema. XDoc declares no such attribute for this element; it is 
therefore unknown to the parser. The wording of the error message comes 
from the parser and is not Forrest specific.

CSS is a good choice for presentational details such as borders. The 
XDoc DTD is available [1] for reference.

Brian

[1] http://forrest.apache.org/dtdx/document-v13.dtdx.html