Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Cheat sheet XML validation(Validation of cheat sheets using XML schema)
Cheat sheet XML validation [message #1792908] Wed, 25 July 2018 15:20 Go to next message
Andrew Johnson is currently offline Andrew JohnsonFriend
Messages: 141
Registered: July 2009
Senior Member
Unfortunately Platform - User Assistance (UA) seems moribund so I'll ask here.

Cheat sheets could have a full XML schema for validation:
193205: [Cheatsheet][Builders][Simple] Define a builder to validate underlying XML file well-formedness
193208: [Cheatsheet][Builders][Comp] Define a builder to validate underlying XML file well-formedness

Is this worthwhile?
Re: Cheat sheet XML validation [message #1792915 is a reply to message #1792908] Wed, 25 July 2018 16:12 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 29545
Registered: July 2009
Senior Member
I'm not sure they'll see your question here either. I'd suggest asking on the pde-dev mailing list https://accounts.eclipse.org/mailing-list/pde-dev if you considering to contribute toward addressing these bugs and you're wanting to ask if such a contribution would have a good chance to be reviewed and accepted.
Re: Cheat sheet XML validation [message #1792923 is a reply to message #1792915] Thu, 26 July 2018 00:05 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 3252
Registered: July 2009
Senior Member

We have XML tools in the Web Tools Platform project, so is this just a matter of referring to the schema in a location it's retrievable (or
contributing it via extension point to our XML Catalog), and having the WTP Validation Builder installed on the project around the cheat
sheet file?


Nitin Dahyabhai
Eclipse Web Tools Platform

[Updated on: Thu, 26 July 2018 00:08]

Report message to a moderator

Re: Cheat sheet XML validation [message #1792937 is a reply to message #1792923] Thu, 26 July 2018 07:40 Go to previous message
Andrew Johnson is currently offline Andrew JohnsonFriend
Messages: 141
Registered: July 2009
Senior Member
In general, yes, it is simply a matter of the cheat sheet referring to an accessible schema. The XML editor then immediately indicates any errors in the source XML of the cheat sheet.

The schema detects problems such as missing elements, wrong elements, missing or wrong attributes, and checks the format of some attributes.

There are a few minor problems - for example when using the cheat sheet the org.eclipse.ui.cheatsheets plugin gives warnings:
Unknown attribute 'xmlns' specified for element 'cheatsheet'.

Also, currently the schema doesn't allow the open / close form of the action and command elements.
<command ...></command>
versus this form which the editor generates:
<command ... />
That would be easy to change if required.

Previous Topic:[Eclipse Forms] Incorrect size computation with ColumnLayout in ScrolledForm
Next Topic:Start Team Synchronize at startup
Goto Forum:
  


Current Time: Fri Sep 21 22:10:44 GMT 2018

Powered by FUDForum. Page generated in 0.01659 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top