morten 01/10/31 05:09:56
Modified: java/src/org/apache/xalan/xsltc/dom DTDMonitor.java
Log:
Fix for generating IDs for implied attributes.
PR: n/a
Obtained from: n/a
Submitted by: [EMAIL PROTECTED]
Reviewed by: [EMAIL PROTECTED]
Revision Changes Path
1.6 +3 -2
xml-xalan/java/src/org/apache/xalan/xsltc/dom/DTDMonitor.java
Index: DTDMonitor.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/dom/DTDMonitor.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- DTDMonitor.java 2001/08/21 09:01:19 1.5
+++ DTDMonitor.java 2001/10/31 13:09:56 1.6
@@ -1,5 +1,5 @@
/*
- * @(#)$Id: DTDMonitor.java,v 1.5 2001/08/21 09:01:19 morten Exp $
+ * @(#)$Id: DTDMonitor.java,v 1.6 2001/10/31 13:09:56 morten Exp $
*
* The Apache Software License, Version 1.1
*
@@ -164,7 +164,8 @@
// represented in a DTD as in:
// <!ATTLIST Person SSN ID #REQUIRED>
// where 'Person' would be elemtName and 'SSN' would be the ID attribute
- _idAttributes.put(element, "@"+attribute);
+ if (type.equals("ID") || (type.equals("IDREF")))
+ _idAttributes.put(element, "@"+attribute);
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]