sverre.medalen at broadpark.no wrote:
> Finally I've managed to identify which elements to include in the template.
> I selected the ones defined as mandatory, and by including them in the
> sequence described by the DTD, I no longer get the "The sequence of child
> elements is incorrect" message.

Fine.

> I've got one more challenge. Some of the elements have attributes that
> require to be filled in for the document to be successfully validated by
> the parser. The parser displays the message 'attribute "type" has invalid
> value "": syntax error in NMTOKEN value "" [cvc-datatype-valid.1.2.1]
> [cvc-attribute.3]'. As a result, the validity indicator at the lower left
> corner of the XMLmind window is orange with a "x" in its centre.
> It seems that these attribute values needs to be collected from the user
> and included in the document instance of the template before it is parsed
> and displayed. Is there a way to achieve this?

No, but this situation is completely acceptable.

In most case, you simply cannot prefill attribute values with sensible
values (if you can do that for some of them, then do it).

I would even suggest to specify "???" for required attribute values
(instead of ""). This will simply suggest to the user that "???" needs
to be replaced by an actual value.

Note that with an orange or yellow icon, XXE works at its best (this is
*not* the case with the red icon).

Reply via email to