User: ara_e_w
Date: 02/03/07 11:57:10
Modified: core/src/xdoclet XmlSubTask.java
Log:
- much better id management and generation for xml elements, XDtId:prefixedId
introduced
- a useIds parameter is introduced for XmlSubTask so all xml subtasks have the
ability to enable/disable id="IDPrefix_i" (by default off, enable it for websphere)
Revision Changes Path
1.9 +17 -1 xdoclet/core/src/xdoclet/XmlSubTask.java
Index: XmlSubTask.java
===================================================================
RCS file: /cvsroot/xdoclet/xdoclet/core/src/xdoclet/XmlSubTask.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -w -r1.8 -r1.9
--- XmlSubTask.java 21 Jan 2002 21:12:16 -0000 1.8
+++ XmlSubTask.java 7 Mar 2002 19:57:10 -0000 1.9
@@ -2,16 +2,19 @@
import xdoclet.util.XmlValidator;
import xdoclet.util.Log;
+import xdoclet.tags.IdTagsHandler;
import org.apache.log4j.Category;
/**
* @author Ara Abrahamian ([EMAIL PROTECTED])
* @created Oct 13, 2001
- * @version $Revision: 1.8 $
+ * @version $Revision: 1.9 $
*/
public class XmlSubTask extends TemplateSubTask
{
private final static XmlValidator xmlValidator = new XmlValidator();
+
+ protected boolean useIds = false;
private String xmlEncoding = "UTF-8";
/**
@@ -23,6 +26,11 @@
private String dtdFileName = null;
private String schema = null;
+ public boolean getUseIds()
+ {
+ return useIds;
+ }
+
public String getXmlencoding()
{
return xmlEncoding;
@@ -53,6 +61,11 @@
return validateXML;
}
+ public void setUseIds( boolean useIds )
+ {
+ this.useIds = useIds;
+ }
+
public void setXmlencoding( String xmlEncoding )
{
this.xmlEncoding = xmlEncoding;
@@ -117,6 +130,9 @@
if( shouldValidate() )
xmlValidator.registerDTD( getPublicId(), getDtdFileName() );
+
+ //reset ids counter
+ IdTagsHandler.reset();
super.startProcess();
}
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel