Re: CIL Schema
Martin Klang <[email protected]> Wed, 22 Dec 2004 00:57:14 +0000
| Newsgroups | gmane.text.xml.o-xml |
|---|---|
| Message-ID | <[email protected]> |
On 21 Dec 2004, at 13:11, Alexander Genaud wrote:
> Does that mean that you have an XSL/T of MLML on
> your desktop. Could I/we have a peek at it?
okay, ready?
follow the links from here ->
http://www.o-xml.org/projects/mlml/cli.html
The stylesheet in the download generates MLML from the CLI type
definitions, not to be confused with CIL (Common Instruction Language).
Hope that is what you expected.
I've also updated the MLML reference page with links to the (updated)
schema, and some generated schema documentation.
I had to change the type reference method to use 'ref' attributes for
references, and 'name' attributes for type definitions only. Makes much
more sense that way.
The CLI example illustrates parameterised types, even though CLI in
itself doesn't support or provide them. References, arrays and pointers
are represented in MLML as parameterised types, possibly with more than
one level.
For example: A reference to an array of System.Object would be
'System.Object[]&' in C# notation.
In MLML it is represented as:
<type ref="reference">
<type ref="array">
<type ref="System.Object"/>
</type>
</type>
Whether that should actually be 'mlml:reference' and 'mlml:array', or
maybe 'csharp:reference' and 'csharp:array', is something I'm not too
sure about yet!
regards,
/m