Digital Me

Random contributions to digital noise
I just published the first version of the XML Schema for the Install.rdf file (Mozilla Add on Install Manifest file) on Codeplex. More information on the file is here: Install.rdf on Mozilla Developer Center. The schemes are published under MPL 1.1 license.
Add on Manager enabled XUL applications (Firefox, Mozilla, Songbird, Flock, ...) are using install.rdf file to get description of the add on being installed. With this schemas you can get better support in your favourite IDE. Here are some screenshots from my Visual Studio:
You can see more screenshots on the project's wiki.
Most of the elements have regex validation, and wherever I could I added some enumeration support as seen on the picture above. However there might be errors so if you find any please report them on project's issue tracking.
All suggestions are welcome. I added discussion thread just for that purpose. If you know how to setup your favourite IDE to use this files add them there and I will update wiki accordingly. I have already added instructions for Visual Studio.
In future I plan to add more features - wizards, possibly some kind of management tools, etc. However this is in probably distant future since I don't have much time. What you could expect in the near future is XUL schema under MPL license. I'm half way there so I hope I'll publish it in next couple of weeks.

Comments

"What you could expect in the near future is XUL schema under MPL license. I'm half way there so I hope I'll publish it in next couple of weeks."

didn't hear anything new about that. are there still any plans for a xul schema? would be awesome in VS and other editors
Gravatar icon
Monday March 30, 2009 @ 05:16 AM (PDT)
heh, funny thing about that, I didn't finish it. Or better said, I did but I screwed it up. Unfortunately I can't give you a definitive answer, but now that at least someone is interested maybe I'll speed it up.
Gravatar icon
Monday March 30, 2009 @ 02:04 PM (PDT)
yeah. sounds awesome. it would be so useful.
anyway. i already found a schema from codech at

http://www.koders.com/xml/fid9B47A6856396703E0E3401055CA31AFB2B436721.aspx

maybe it helps you to fix your problems or you can just work together with them.

i just did not get it to work. VS always gives me the following warning at the "window"-tag:

"The schemas property will be ignored because your document does not declare any matching target namespaces."

maybe you have more luck with that one. i don't even understand what that means, as i don't have that much experience with xml-schemas.

Cheers!
André
Gravatar icon
Sunday April 05, 2009 @ 03:08 AM (PDT)
Hi Andre,
Thanks for the pointers. I actually messed up with not realizing early enough how bad XML schema is for anything but simple scenarios.
I cleaned it up a bit and now it is online:
http://xulschema.codeplex.com/

You have to get the files from the Source Code tab, and follow instructions from the Home page.

I'll write a blog post soon and will give more details, if you have any questions please start a discussion on codeplex and I'll follow up.

Cheers,
Mihailo
Gravatar icon
Monday April 06, 2009 @ 04:18 PM (PDT)
Hey Mihailo.

Works like a charm! Really awesome.

By the way, you can add the following to the instructions: If you are using the XML-editor, you can also add schemas via the menu: XML > Schemas ... > Add
I think you can also add a schema via the properties window.

Thanks a lot! That was really fast :)

See ya,
André
Gravatar icon
Tuesday April 07, 2009 @ 01:04 AM (PDT)
Actually, André thank you.
If you did not raise this issue who knows when I would have put my mind to it.
Gravatar icon
Tuesday April 07, 2009 @ 01:09 AM (PDT)
No prob. :)

by the way. I found the first bug. see the discussion I opened up at codeplex:

http://xulschema.codeplex.com/Thread/View.aspx?ThreadId=52524

cheers.
André
Gravatar icon
Tuesday April 07, 2009 @ 02:12 AM (PDT)
New comment

required, won't be displayed

optional

Don't type anything here unless you're an evil robot:


And especially don't type anything here:

Basic XHTML (including links) is allowed, just don't try anything fishy. Your comment will be auto-formatted unless you use your own <p> tags for formatting. You're also welcome to use Textile.

Copyright © 2012 Mihailo Lalevic. All rights reserved.
Powered by Thoth.