[Idrs-commit] CVS: Idrs/dev/src/net/sourceforge/idrs/core/report IDRSCompiler.java,1.8,1.9 TagLine.j
Brought to you by:
bigman921
|
From: Marc B. <big...@us...> - 2004-08-30 03:00:05
|
Update of /cvsroot/idrs/Idrs/dev/src/net/sourceforge/idrs/core/report In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29424/src/net/sourceforge/idrs/core/report Modified Files: IDRSCompiler.java TagLine.java Log Message: * Added getXMLObjects to idrsshell * Added an "ns" attribute to the "tag" tag so a namespace can be specified Index: IDRSCompiler.java =================================================================== RCS file: /cvsroot/idrs/Idrs/dev/src/net/sourceforge/idrs/core/report/IDRSCompiler.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** IDRSCompiler.java 29 Aug 2004 05:01:39 -0000 1.8 --- IDRSCompiler.java 30 Aug 2004 02:59:54 -0000 1.9 *************** *** 1147,1151 **** } ! tagLine = new TagLine(tagName,trim); currentLine = tagLine; Vector lines = new Vector(); --- 1147,1151 ---- } ! tagLine = new TagLine(tagName,trim,null); currentLine = tagLine; Vector lines = new Vector(); Index: TagLine.java =================================================================== RCS file: /cvsroot/idrs/Idrs/dev/src/net/sourceforge/idrs/core/report/TagLine.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** TagLine.java 30 Aug 2004 00:56:08 -0000 1.4 --- TagLine.java 30 Aug 2004 02:59:54 -0000 1.5 *************** *** 33,41 **** private AttributeLine[] attribs; boolean trim; ! public TagLine(String name,boolean trim) { this.tagName = name; vlines = new Vector(); this.trim = trim; } --- 33,43 ---- private AttributeLine[] attribs; boolean trim; + String xmlns; ! public TagLine(String name,boolean trim,String xmlns) { this.tagName = name; vlines = new Vector(); this.trim = trim; + this.xmlns = xmlns; } *************** *** 129,132 **** --- 131,138 ---- } + if (this.xmlns != null) { + buffer.append(" xmlns=\"").append(this.xmlns).append("\" "); + } + buffer.append(">\n"); i = 0; *************** *** 180,183 **** --- 186,194 ---- Element element = doc.createElement(tagName); + + if (this.xmlns != null) { + element.setAttribute("xmlns",this.xmlns); + } + if (root == null) { doc.appendChild(element); |