Ticket #1136 (new defect)

Opened 2 years ago

Last modified 15 months ago

plugin XML nameless help cannot validate

Reported by: mikelietz Owned by:
Priority: minor Milestone: 0.8
Component: Documentation Version: SVN
Keywords: xml, pluggable, plugin Cc:

Description

When running a pluggable XML <help> that does not have a name is invalid per the schema.

DOMDocument::schemaValidateSource() [function.DOMDocument-schemaValidateSource]: Element 'help': The attribute 'name' is required but missing.

Try it yourself:  Try to validate this core plugin XML in the  Pluggable validator.

Change History

comment:1 Changed 2 years ago by ringmaster

Is this a bug?

comment:2 Changed 2 years ago by ddebernardy

see also #1134

comment:3 Changed 2 years ago by rickc

The relevant section of the schema is:

<xs:element name="help">

<xs:complexType>

<xs:sequence>

<xs:element maxOccurs="unbounded" ref="value"/>

</xs:sequence>
<xs:attribute name="name" use="required" type="xs:NCName"/>

</xs:complexType>

</xs:element>

which appears to be saying the name attribute is required. Our documentation says it isn't, nor have we used it in any of the core plugins. If we don't want to require it the schema should be changed.

comment:4 Changed 16 months ago by anon

  • Component changed from Habari Core Software to Documentation

comment:5 Changed 15 months ago by anon

  • Milestone changed from Undetermined to 0.8
Note: See TracTickets for help on using tickets.