Update of /var/cvs/src/org/mmbase/framework
In directory james.mmbase.org:/tmp/cvs-serv9490
Modified Files:
Utils.java
Log Message:
Since a renderer can have an URI, we could also set the system id, which make
for clearer error-reporting in case that is necessary
See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/framework
Index: Utils.java
===================================================================
RCS file: /var/cvs/src/org/mmbase/framework/Utils.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- Utils.java 15 Jan 2009 18:14:49 -0000 1.6
+++ Utils.java 15 Jan 2009 19:28:58 -0000 1.7
@@ -23,7 +23,7 @@
* Static utilitiy methods which are related to (combine functionality of)
other classes in the packages.
*
* @author Michiel Meeuwissen
- * @version $Id: Utils.java,v 1.6 2009/01/15 18:14:49 michiel Exp $
+ * @version $Id: Utils.java,v 1.7 2009/01/15 19:28:58 michiel Exp $
* @since MMBase-1.9
*/
public abstract class Utils {
@@ -49,6 +49,10 @@
log.debug("Parsing " + xml + " of " + renderer + " of " +
renderer.getBlock());
}
InputSource source = new InputSource(new StringReader(xml));
+ java.net.URI uri = renderer.getUri();
+ if (uri != null) {
+ source.setSystemId(uri.toString());
+ }
EntityResolver resolver = new org.mmbase.util.xml.EntityResolver(true,
baseClass);
DocumentBuilder dbuilder =
org.mmbase.util.xml.DocumentReader.getDocumentBuilder(validation, xsd,
null/* default error handler */, resolver);
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs