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
            Priority: Trivial
             Fix For: 2.2.0


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.

Reply via email to