// Java
import java.io.*;
-
+import java.util.*;
/**
* Primary class that drives overall FOP process.
addElementMapping("org.apache.fop.extensions.ExtensionElementMapping");
addPropertyList ("org.apache.fop.extensions.ExtensionPropertyListMapping");
+
+ // add mappings from user configuration
+ Hashtable mappings = Configuration.getHashtableValue("mappings");
+ if (mappings != null) {
+ String prop = (String) mappings.get("property");
+ String ele = (String) mappings.get("element");
+ try {
+ addElementMapping(ele);
+ addPropertyList(prop);
+ } catch (IllegalArgumentException e) {
+ }
+ }
}
/**