out.print("<dependency "); String org = _organisation; if (attributes.getValue("org") != null) { org = attributes.getValue("org"); out.print("org=\""+org+"\" "); }
out.print("<dependency"); String org = attributes.getValue("org"); org = org == null ? _organisation : org;
                public void startElement(String uri, String localName,                        String qName, Attributes attributes)                        throws SAXException {                    if (_justOpen != null) {                        out.print(">");                    }                    if ("info".equals(qName)) {                        _organisation = attributes.getValue("organisation");                        out.print("<info organisation=\""+_organisation                                				+"\" module=\""+attributes.getValue("module")+"\"");                        if (revision != null) {                            out.print(" revision=\""+revision+"\"");                        } else if (attributes.getValue("revision") != null) {                            out.print(" revision=\""+attributes.getValue("revision")+"\"");                        }                        if (status != null) {                            out.print(" status=\""+status+"\"");                        } else {                            out.print(" status=\""+attributes.getValue("status")+"\"");                        }                        if (pubdate != null) {                            out.print(" publication=\""+Ivy.DATE_FORMAT.format(pubdate)+"\"");                        } else if (attributes.getValue("publication") != null) {                            out.print(" publication=\""+attributes.getValue("publication")+"\"");                        }                        if (resolverName != null) {                            out.print(" resolver=\""+resolverName+"\"");                        } else if (attributes.getValue("resolver") != null) {                            out.print(" resolver=\""+attributes.getValue("resolver")+"\"");                        }                    } else if ("dependency".equals(qName)) {                        out.print("<dependency ");                        String org = _organisation;                        if (attributes.getValue("org") != null) {                            org = attributes.getValue("org");                            out.print("org=\""+org+"\" ");                        }                        ModuleId mid = new ModuleId(org, attributes.getValue("name"));                        out.print("name=\""+mid.getName()+"\" ");                        String rev = (String)resolvedRevisions.get(mid);                        if (rev != null) {                            out.print("rev=\""+rev+"\"");                        } else {                            out.print("rev=\""+attributes.getValue("rev")+"\"");                        }                        if (attributes.getValue("conf") != null) {                            out.print(" conf=\""+attributes.getValue("conf")+"\"");                        }                    } else {                        // copy                        out.print("<"+qName);                        for (int i=0; i<attributes.getLength(); i++) {                            out.print(" "+attributes.getQName(i)+"=\""+attributes.getValue(i)+"\"");                        }                    }                    _justOpen = qName;//                    indent.append("\t");                }