Ruleset Modeling Language - Discussions
September 06, 2010, 11:38:26 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: The new website and forum are up.  Beware that they are still teething however.
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Style Sheet..  (Read 334 times)
nardneran
Have Posted
*
Offline Offline

Posts: 2


View Profile
« on: November 23, 2008, 12:40:31 AM »

I'm a new member and totally new to this RML. So, do forgive me for my novice doubts.

First, I was trying to create a small meme in RML.

For that, I read through the RMLIntroduction.pdf and basically I'm a C++ programmer so it took some time for me to get acquainted with XML.
So, now laterally I'm trying to familiarize myself with XML. Then, I just tried to create a meme.

But, I had so many questions.

1) XML requires a stylesheet, so what should we do it in here

2) And what is the editor generally used by others so that I can also use the same

3) Is there any other specific softwares that I need to install to get it running 

4) And finally, can I have an example program to refer with, if any
Logged
Cayle
Not Normal
Administrator
Hero Member
*****
Offline Offline

Posts: 2042



View Profile WWW
« Reply #1 on: November 23, 2008, 01:15:58 AM »

I'm a new member and totally new to this RML. So, do forgive me for my novice doubts.

Hi nardneran!  I've got to run and take the kids swimming, so I'll give the super short answer first.  This evening or tomorrow morning I can answer in more detail; especially as D_Order needs this information to continue as well.

First, I was trying to create a small meme in RML.

For that, I read through the RMLIntroduction.pdf and basically I'm a C++ programmer so it took some time for me to get acquainted with XML.
So, now laterally I'm trying to familiarize myself with XML. Then, I just tried to create a meme.

But, I had so many questions.

1) XML requires a stylesheet, so what should we do it in here

Not a stylesheet; but a schema instead.  You can find that here:

http://rulesetmodeling.svn.sourceforge.net/viewvc/rulesetmodeling/Schemas/RMLDocument.xsd?view=markup&pathrev=105

2) And what is the editor generally used by others so that I can also use the same
For the XML documents, any text editor works.  I use a commercial plugin for Eclipse called XML buddy because it has some nice editing features; such as realtime validation against the schema; but any text editor can work. 

3) Is there any other specific softwares that I need to install to get it running 

That will have to wait a few days.  Angela went through a big code change and the current head revision in SVN does not run.  Then I can walk you through getting angela up and loading metamemes and memes.


4) And finally, can I have an example program to refer with, if any
I'm working on converting an obsolete example to use memes.  I had promised it to D_Order for Friday, but it is still not done.  Tomorrow.  I do have a highly abstract set of examples for the test framework.  In addition to the attached diagram in that post, it links to the XML version of the examples in SVN.
Logged

The Ruleset Modeling Language - A project for making it easier to design virtual worlds.
Edward
Project Angela Team
Sr. Member
***
Offline Offline

Posts: 443


View Profile
« Reply #2 on: November 23, 2008, 01:34:25 AM »

2) And what is the editor generally used by others so that I can also use the same

I've used GEdit a good bit.  I've also used XML Copy Editor.

http://xml-copy-editor.sourceforge.net

It has a nice interface, can validate an XML document against a Schema, and can validate a W3C Schema.  However, I don't think it can generate an XML document from a Schema or a Schema from an XML document.

I haven't tried XPontus, but it looks interesting.

http://xpontus.sourceforge.net

I think it can generate a Schema from an XML document; I don't know if it can generate an XML document from a Schema.
Logged
Cayle
Not Normal
Administrator
Hero Member
*****
Offline Offline

Posts: 2042



View Profile WWW
« Reply #3 on: November 24, 2008, 03:58:26 AM »

Finally, I've got proper examples to work with.  The attached files contain the following:
  • A PDF with a diagram of the current "Memotica" package.  This is the base set of metamemes that any interpreter would be expected to react to.
  • A PDF with a diagram of the current "MemoticaDescriptors" package.  This is essentially a metameme for plain text and our old InternationalizedDescriptors re-rendered in metameme form. 
  • A PDF with a diagram of the package created during the intermediate text example on the wiki.  The metameme version supersedes all of the XML written in gray blocks there. 


If you look at the third PDF, it looks nasty at first sight.  Just resolving  "That will be [number] [pluralityCurrency]" accounting for three different currency types and differing grammar between singular and plural fills an A0 poster sheet and requires 50 memes!  It makes the old version of the tutorial templates - which I ranted about long ago - look straightforward in comparison.  I have two things to say about this:
  • I broke everything down for extreme modularity and re-usability.  E.g. the currency type argument and the condition that differentiates between one and not one could potentially find wide re-use in a world or even between worlds. 
  • Part of making the grammar of memes and metamemes generic and flexible is a price paid in verbosity.  There are several memes in that diagram whose sole purpose is to act as a wrapper for exactly one member.  This is the price we pay for generalized abstraction.  We get flexibility in return.  I do think we should revisit the question of perhaps having specialized editors for the various standard meme types.  We could start by re-contacting that author of Flamewind.

Logged

The Ruleset Modeling Language - A project for making it easier to design virtual worlds.
Edward
Project Angela Team
Sr. Member
***
Offline Offline

Posts: 443


View Profile
« Reply #4 on: November 24, 2008, 04:27:59 PM »

Part of making the grammar of memes and metamemes generic and flexible is a price paid in verbosity.  There are several memes in that diagram whose sole purpose is to act as a wrapper for exactly one member.  This is the price we pay for generalized abstraction.  We get flexibility in return. 

Yes, the same thing is true in writing documentation (or anything else):  You have to choose between clarity and brevity.  I think it's the right choice.  Clarity and flexibility are more important here than brevity.

Quote
I do think we should revisit the question of perhaps having specialized editors for the various standard meme types.  We could start by re-contacting that author of Flamewind.

How many editors would we have?
Logged
Cayle
Not Normal
Administrator
Hero Member
*****
Offline Offline

Posts: 2042



View Profile WWW
« Reply #5 on: November 24, 2008, 10:03:06 PM »

How many editors would we have?

For heavy duty metameme and meme design, we'd need a dia plugin or vast improvements to what I've got for visio.

A condition editor.  Fairly simple needs as conditions are not terribly complex.

A conversation editor - either a modified Flamewind, or something similar.

An action Editor - Again actions are simple.

An agent editor - this one might be tricky as it should ideally also access all of the enhancements simultaniously; perhaps via filter levels.  E.g. someone using the Epoch physics package (which I plan to release as an example), which enhances agent extensively, should be able to access both the raw agent as well as the enhancements while editing.  In fact, for the average user the enhancements should be streamlined.

All of the above need to be able to access the RML Repository and probably need to bring up the core angela engine in the background in order to access the template repository.

Edit:
Quote from: D_order
0.1 will be blood sweat and text editors.
« Last Edit: November 24, 2008, 10:05:45 PM by Cayle » Logged

The Ruleset Modeling Language - A project for making it easier to design virtual worlds.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!