Hello,

  Marc Clifton reports in the MyXaml weblog that
MyXaml Lint is now live.

  Marc writes:

  Remember the old “Lint” program for validating C
program syntax?  Well, I've just created the first cut
of a MyXaml Lint utility.

  This utility inspects your MyXaml markup for a
variety of problems:

    * assembly not found
    * bad root tag
    * bad xml
    * can't convert a complex property to the
destination property type
    * can't resolve a complex property
    * can't resolve a reference
    * duplicate definition
    * event wireup problems (inline and code-behind
only)
    * implicit property-class
    * inline code error
    * missing “def:” namespace
    * class not found in namespace
    * property not found in class
    * property not a collection
    * child property not a sub-class
    * type converter error
    * unresolved reference

  These problems are all demonstrated with sample
markup error files included in the download.

  As you will note from the above screenshot, an XML
editor is provided so you can fix the problem and
re-check the markup right away.

  This is a first cut at this concept, so a few things
are missing, most notably the ability to specify types
in external assemblies that should be added to the
parser's reference and event target lists.  Also not
supported is:

    * the {instance.method} event wire-up syntax
    * the MxStyle property
    * the SubForm property
    * “xxxCustomProperty“ providers
    * comprehensive MyXamlAutoInitialize attribute
testing
    * multiple def:Code and def:CodeBehind blocks

 If you're wondering why these things aren't supported
when they are part of MyXaml, it's because the Lint
parser is a completely separate entity from the MyXaml
parser.  Rather than instantiating classes and
assigning values to properties, the MyXaml Lint parser
only inspects types--no instantiation takes place
(except for testing event delegates, but I hopefully
will be able to avoid that instantiation also).

 You can download MyXamlLint here and discuss it on
the forum here.

   Source:
http://myxaml.com/marcclifton/archive/2004/08/22/442.aspx

    - Gerald

-------------------
Gerald Bauer

XUL Alliance  | http://xulalliance.org
United XAML   | http://unitedxaml.org
XUL News Wire | http://xulnews.com

Interested in hiring Gerald Bauer? Yes, I'm available.

If you know of an opportunity in Toronto or Vancouver,
please contact me today.


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
xul-announce mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xul-announce

Reply via email to