ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sakari Maaranen (JIRA)" <>
Subject [jira] Created: (IVY-855) Overuse of XML attributes where subelements would be more appropriate
Date Sat, 05 Jul 2008 10:51:31 GMT
Overuse of XML attributes where subelements would be more appropriate

                 Key: IVY-855
             Project: Ivy
          Issue Type: Bug
          Components: Core
    Affects Versions: 2.0.0-beta-2
            Reporter: Sakari Maaranen
            Priority: Minor

Ivy uses XML attributes all too often. Many information elements, especially potential multiline
text items should be possible to specify as XML elements instead of attributes.

Probably the best examples are various description-items, e.g. module configuration descriptions.
Currently one must specify: {{monospaced}}<conf name="example" description="WENDY" />{{monospaced}}

It would be better to do it like so:
<conf name="example">

At least potentially long data elements like descriptions should be made sub-elements instead
of attributes. Of course both could be allowed like Ant often does.

This should also be promoted as a design principle, and not just an individual bug. Always
supports XML element notation when some information element is potentially long, multiline,
or structural. Both the attribute and the element notation should be supported when an item
can be either small or large (multiple lines / structured).

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message