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
__._,_.___ -- 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
YAHOO! GROUPS LINKS
|
- RE: [flexcoders] DTD Schema for Flex 2 Gordon Smith
- Re: [flexcoders] DTD Schema for Flex 2 Tom Chiverton
- Re: [flexcoders] DTD Schema for Flex 2 Tom Chiverton
- Re: [flexcoders] DTD Schema for Flex 2 Tom Chiverton
- [flexcoders] Re: DTD Schema for Flex 2 Jason
- Re: [flexcoders] Re: DTD Schema for Flex 2 Tom Chiverton
- RE: [flexcoders] Re: DTD Schema for Flex 2 Gordon Smith
- RE: [flexcoders] DTD Schema for Flex 2 Gordon Smith
- RE: [flexcoders] DTD Schema for Flex 2 Gordon Smith
- RE: [flexcoders] DTD Schema for Flex 2 Gordon Smith
- RE: [flexcoders] DTD Schema for Flex 2 Roger Gonzalez
- Re: [flexcoders] DTD Schema for Flex 2 Tom Chiverton