You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Maarten Coene (JIRA)" <ji...@apache.org> on 2010/08/09 23:51:15 UTC

[jira] Resolved: (IVY-1214) Handle attributes in description subelements

     [ https://issues.apache.org/jira/browse/IVY-1214?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maarten Coene resolved IVY-1214.
--------------------------------

    Resolution: Fixed

Applied your patch in SVN trunk and 2.2.x branch.
Thanks for the contribution!

> Handle attributes in description subelements
> --------------------------------------------
>
>                 Key: IVY-1214
>                 URL: https://issues.apache.org/jira/browse/IVY-1214
>             Project: Ivy
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 2.2.0-RC1
>            Reporter: Jean-Louis Boudart
>            Assignee: Maarten Coene
>            Priority: Trivial
>             Fix For: 2.2.0
>
>         Attachments: ivy-1214.patch
>
>
> Description element in a ivy file is the only part that doesn't contains strong xsd validations.  In other words we are able to put any sub elements.
> Let's consider a simple use case where we want to have a short description containing a href link.
> {code:xml}
> <description>
>  This module is designed for .... and based on <a href="http://mysite/">an opensource library</a>
> </description>
> {code} 
> Unfortunately, current code base of XmlModuleDescriptorParser silently ignores attributes in description subelements.
> {code:java}
>         public void startElement(String uri, String localName, String qName, Attributes attributes)
>                 throws SAXException {
>             try {
>                 if (state == State.DESCRIPTION) {
>                     // make sure we don't interpret any tag while in description tag
>                     buffer.append("<" + qName + ">");
>                     return;
>                }
>             ...
>        }
> {code} 

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