Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-ua-dev] Intro content schema

Hi Curtis,
thanks for clarifying the role of the IntroContent.exsd file: I wasn't aware of that.

I have a few questions, though:
- why can't the PDE schema editor generate valid xml schemas?
- why does the documentation (Plug-in Development Environment Guide > Tools > New File Creation Wizards > Extension Point Schema) say "An extension point schema is a valid XML schema as defined by the W3C specification..." even though it's inaccurate for the ones created by the PDE schema editor? - how are Eclipse intro content files authored? are they authored by developers or by non-developers?

Thank you for fixing most of the problems listed in the 2) section of my previous mail. Note that version 1.39 still doesn't allow text nodes inside a <text> or <title> element.
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.ui.intro/schema/IntroContent.exsd?rev=1.39&content-type=text/vnd.viewcvs-markup
The new <group> definition says that a <group> must contain at least one child element. 'page-links', 'action-links', 'extra-group1', 'content-header', 'top-left', 'top-right', 'content-divider', 'bottom-left' and 'bottom-right' <group> elements in org.eclipse.ui.intro.universal/introContent.xml don't.

I found additional problems in the schema (or in the xml files?):
the <group> element in org.eclipse.platform/intro/whatsnewEx3.xml uses a "filter" attribute. This attribute is not defined in the schema. a <group> element in org.eclipse.platform/intro/whatsnewEx2.xml uses "expanded" and "expandable" attributes. These attributes are not defined in the schema.


I also looked at the cheatsheets schemas found in the org.eclipse.ui.cheatsheets plugin and I found some problems:

1) contentFile.xsd
- the 'ActionKind' type is not defined in the schema.
- as this file doesn't look like it was generated the PDE schema editor, would it be possible to change all occurences of <xsd:extension base="string"/> by <xsd:extension base="xsd:string"/>? - according to the schema, the <description> element can only contain text nodes. Yet, <description> elements in org.eclipse.pde/cheatsheets/rcpapp/rcpapp-create.xml also contain any number of <br> and <b> elements.
- the <b> and <br> elements mentioned above are not defined in the schema.
- according to the schema, an <item> element can not contain one (or more) <subitem> element if it contains a <description> element. <item> elements in org.eclipse.pde/cheatsheets/rcpapp/rcpapp-create.xml contain a <description> element and <subitem> elements. - according to the schema, the "when" attribute of the <command> element is required. <command> elements in org.eclipse.pde/cheatsheets/rcpapp/rcpapp-create.xml don't have a "when" attribute. - according to the schema, the "kind" attribute of the <subitem> element is required. <subitem> elements in org.eclipse.pde/cheatsheets/rcpapp/rcpapp-create.xml don't have a "kind" attribute.

2) compositeContentFile.exsd
- according the schema, an <intro> element can not be the first child of a <taskGroup> element the <taskGroup> element in org.eclipse.pde/cheatsheets/rcpapp-composite.xml has an <intro> element as a first child.
- according to the schema, the <intro> element can only contain text nodes.
the 1st <intro> element in org.eclipse.pde/cheatsheets/rcpapp-composite.xml also contain a few <br> elements.
- the <br> element mentioned above is not defined in the schema.
- according to the schema, an <onCompletion> element must precede any <param> element.
it's not the case in org.eclipse.pde/cheatsheets/rcpapp-composite.xml
- according to the schema, a <taskGroup> element can only contain one <task> element. the <taskGroup> element in org.eclipse.pde/cheatsheets/rcpapp-composite.xml contain multiple <task> elements.

Regards,
Pierre




Back to the top