To provide a little more detail, the problem is:
 
1) MXML imposes ADDITIONAL constraints above and beyond what can be expressed in DTD or XSD.
2) MXML is open-ended, and the rules for how new namespaces tie together cannot be expressed in DTD or XSD.
 
For example, lets say we did provide the schema, like we did for 1.x.  Unfortunately, for any non-toy application, you'll be writing new components.  So, lets say you write a new component, and its in the yourcompany.whatever.* namespace.  The base of your component is VBox.  That's nice.  In order to make the XML tools happy, YOU need to write the schema for yourcompany.whatever.*.  You might be able to extend our schema (which if you've ever tried it you'll know what a pain this is)  But anyway, lets say you go and write that schema.  And then you decide to extend HBox instead.  Oops.  Go rewrite that schema. 
 
At some point you say, hey, gosh it would be really nice if I just had a smart tool that could generate that schema for me.  It seems like there should be some way of parsing the tags such that you know what the subset of child tags and attributes will be legal for a given base class, and you could then generate the appropriate schema for that class.
 
But then BING a lightbulb goes off in your head, and you realize that the entire notion of trying to enter code that follows a schema at the same time you're writing the code that will modify the schema is sort of a losing proposition.  It only works if you assume that most of your classes are never going to change, which is silly.
 
Thats when you say, "hey, what I really need is an MXML-aware tool that knows ALL the rules of the language".  And you look around, and hey, look, there's FlexBuilder!
 
-rg
 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smith
Sent: Thursday, June 15, 2006 2:16 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] DTD Schema for Flex 2

That's not true.

- Gordon


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Daniel Tuppeny
Sent: Thursday, June 15, 2006 6:01 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] DTD Schema for Flex 2

I'm confused too.

If it's XML (which I assume it is, because it has xml tags and namespaces!), then why can't they write a DTD? If there's anything in their that wouldn't fit into a DTD, then surely it's not valid XML either?


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Michael Schmalle
Sent: 15 June 2006 12:55
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] DTD Schema for Flex 2

Becasue it's a namespace, that is the point ;-)

It's arbituary and a way to seperate <mx> component names for <my> component names.

It's like finding out majik isn't real huh... :(

HAHAHA

Peace, Mike

On 6/15/06, Tom Chiverton <[EMAIL PROTECTED]> wrote:

On Thursday 15 June 2006 12:13, Gareth Edwards wrote:
> Flex 2.0 isn't compatible with a DTD Schema.

Bwuh !
So why do all the examples assign a namespace / include <xml> tags ?



--
Tom Chiverton

****************************************************

This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.

We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of the Year at the 2005 Growth Company Awards




--
What goes up, does come down.
[Inbound Mail Scanned by MessageLabs]

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to