You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by gm...@apache.org on 2004/10/04 03:19:10 UTC

cvs commit: xml-fop/src/java/org/apache/fop/fo FObj.java

gmazza      2004/10/03 18:19:10

  Modified:    src/java/org/apache/fop/fo FObj.java
  Log:
  Switched to SAXParseException for duplicate ID's found in document.
  
  Revision  Changes    Path
  1.76      +4 -2      xml-fop/src/java/org/apache/fop/fo/FObj.java
  
  Index: FObj.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/FObj.java,v
  retrieving revision 1.75
  retrieving revision 1.76
  diff -u -r1.75 -r1.76
  --- FObj.java	6 Sep 2004 18:44:31 -0000	1.75
  +++ FObj.java	4 Oct 2004 01:19:10 -0000	1.76
  @@ -135,7 +135,7 @@
        * This methods checks that the id isn't already used by another
        * fo and sets the id attribute of this object.
        */
  -    private void setupID() {
  +    private void setupID() throws SAXParseException {
           Property prop = this.propertyList.get(PR_ID);
           if (prop != null) {
               String str = prop.getString();
  @@ -145,7 +145,9 @@
                       id = str;
                       idrefs.add(id);
                   } else {
  -                    getLogger().warn("duplicate id:" + str + " ignored");
  +                    throw new SAXParseException("Property id \"" + str + 
  +                        "\" previously used; id values must be unique" +
  +                        " in document.", locator);
                   }
               }
           }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org