morten 01/10/08 00:39:47
Modified: java/src/org/apache/xalan/xsltc/trax
TransformerFactoryImpl.java
Log:
The TransformerFactory.setAttribute() method now throws an exception whenever
it receives a value for an attribute it does not recognise.
PR: bugzilla 3859
Obtained from: n/a
Submitted by: [EMAIL PROTECTED]
Reviewed by: [EMAIL PROTECTED]
Revision Changes Path
1.20 +4 -1
xml-xalan/java/src/org/apache/xalan/xsltc/trax/TransformerFactoryImpl.java
Index: TransformerFactoryImpl.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/trax/TransformerFactoryImpl.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- TransformerFactoryImpl.java 2001/10/02 11:16:52 1.19
+++ TransformerFactoryImpl.java 2001/10/08 07:39:47 1.20
@@ -1,5 +1,5 @@
/*
- * @(#)$Id: TransformerFactoryImpl.java,v 1.19 2001/10/02 11:16:52 morten
Exp $
+ * @(#)$Id: TransformerFactoryImpl.java,v 1.20 2001/10/08 07:39:47 morten
Exp $
*
* The Apache Software License, Version 1.1
*
@@ -124,6 +124,8 @@
"Cannot access file or URL ";
private static final String COMPILE_ERR =
"Could not compile stylesheet";
+ private static final String INVALID_ATTRIBUTE =
+ "TransformerFactory does not recognise attribute: ";
// This Hashtable is used to store parameters for locating
// <?xml-stylesheet ...?> processing instructions in XML documents.
@@ -206,6 +208,7 @@
// for translets that cannot be given a name from their system-id.
if ((name.equals("translet-name")) && (value instanceof String))
_defaultTransletName = (String)value;
+ throw new IllegalArgumentException(INVALID_ATTRIBUTE+name);
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]