Commit Graph
62 Commits
Author SHA1 Message Date
mrglavas 2c61e0d811 When processing META-INF/services SchemaFactoryFinder was calling
loadFromProperty() which reads a META-INF/services file as if it were a
properties file. In SchemaFactory [1] for the META-INF/services file it
says to look at the "JAR file specification for file format and parsing
rules". Looking at the JAR file specification [2] it says: "The file
should contain a newline-separated list of unique concrete provider-class
names".

We should now be reading the META-INF/services files as specified
in the JAR file specification.

[1] http://java.sun.com/j2se/1.5.0/docs/api/javax/xml/validation/SchemaFactory.html#newInstance(java.lang.String)
[2] http://java.sun.com/j2se/1.5.0/docs/guide/jar/jar.html#Provider%20Configuration%20File


git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226247 13f79535-47bb-0310-9956-ffa450edef68
2005-06-20 22:05:52 +00:00
mrglavas eca25067ad Removing unused nested classes.
git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226240 13f79535-47bb-0310-9956-ffa450edef68
2005-06-17 19:52:47 +00:00
mrglavas 01c6c51764 Merge in a fix from the tck-jaxp-1_2_0 branch:
Under some JDK's (notably both Sun and IBM 1.4.0), getClassLoader(), when invoked
on the JAXP or SAX classes, it returns null.  This means that
the fallback mechanism in these APIs may not work correctly:  in
particular, when an attempt to invoke an unknown Parser/XMLReader
implementation is made in SAX, a NullPointerException rather than the correct
ClassNotFoundException results.  This patch fixes this problem,
by using Class.forName() in the event that the bootstrap
classloader is not returned in this particular situation.


git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226239 13f79535-47bb-0310-9956-ffa450edef68
2005-06-17 19:50:14 +00:00
mrglavas ea4dcf269c Merge in a fix from the tck-jaxp-1_2_0 branch:
The reader used to read the service provider is never
closed if an IOException is thrown while reading from
it. Adding a finally block so that the reader will
always be closed.


git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226238 13f79535-47bb-0310-9956-ffa450edef68
2005-06-17 19:32:50 +00:00
mrglavas 729661318d Merge in Performance Fix from the tck-jaxp-1_2_0 branch:
When reading the service provider name from a jar
a BufferedReader is used to read the first line from the
file. BufferedReader's default buffer size is 8K chars. Since
we're only reading one line (the name of a class) this is pretty
excessive. Reducing this size significantly to 80 chars.


git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226237 13f79535-47bb-0310-9956-ffa450edef68
2005-06-17 19:26:53 +00:00
mrglavas a11ee29779 Javadoc fixes. End tags for <code> were missing. This caused the Javadoc for the methods
following the missing end tag to be formatted entirely in the "code" format. Fixed a few
instances where *s were inadverently included in the Javadoc text that should not have
been.


git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226236 13f79535-47bb-0310-9956-ffa450edef68
2005-06-17 03:10:33 +00:00
mrglavas 6b0f74afed Suppress varargs call warning emitted from Java 5.0 compiler.
git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226235 13f79535-47bb-0310-9956-ffa450edef68
2005-06-15 00:51:32 +00:00
mkwan cdcdeab0ae Fix a bug in the XPathException(Throwable) constructor.
Pass the message from the cause Throwable to the super constructor,
so that the getMessage() method on this XPathException would
return the message of the cause.


git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226234 13f79535-47bb-0310-9956-ffa450edef68
2005-06-14 19:19:27 +00:00
mkwan e58a70e3ee Fix compile time dependency on File.toURI() which is new to JDK 1.4.
Use reflection instead of a direct method call.


git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226233 13f79535-47bb-0310-9956-ffa450edef68
2005-06-14 19:17:19 +00:00
mkwan 081cad56b4 Change the default service provider back to org.apache.xalan.processor.TransformerFactoryImpl,
which was the default before the JAXP 1.3 integration.


git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226232 13f79535-47bb-0310-9956-ffa450edef68
2005-06-14 19:15:12 +00:00
mkwan 57c5a282f3 Migrate a bug fix for printStackTrace which was done before the JAXP 1.3 integration
back to the head.


git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226231 13f79535-47bb-0310-9956-ffa450edef68
2005-06-14 19:13:40 +00:00
mrglavas c3fa88a3b2 No functional changes. Updating DOM Level 2 errata:
http://www.w3.org/2002/10/DOM-Level-2-Traversal-Range-java-binding-20021016.zip
http://www.w3.org/2002/10/DOM-Level-2-Views-java-binding-20021016.zip
http://www.w3.org/2002/10/DOM-Level-2-Events-java-binding-20021016.zip
http://www.w3.org/2002/10/DOM-Level-2-Style-java-binding-20021016.zip


git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226230 13f79535-47bb-0310-9956-ffa450edef68
2005-06-10 15:52:57 +00:00
mcnamara cf533ed88b Add DOM L3 XPath APIs (from http://www.w3.org/TR/2004/NOTE-DOM-Level-3-XPath-20040226).
This allows us to consolidate the DOM packages in xml-apis.jar and remove them from xalan.jar.


git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226229 13f79535-47bb-0310-9956-ffa450edef68
2005-06-09 21:00:22 +00:00
mrglavas de9abff1b4 Fixing a potential memory leak. The reader used to read
the service provider is never closed if an IOException is
thrown while reading from it.  Adding a finally block so
that the reader will always be closed.


git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226227 13f79535-47bb-0310-9956-ffa450edef68
2005-06-05 01:59:03 +00:00
mrglavas ad5eac5eb9 Adding a fallback DOMImplementationSource: the DOMXSImplemenationSourceImpl class from Xerces.
git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226226 13f79535-47bb-0310-9956-ffa450edef68
2005-06-04 04:23:42 +00:00
mrglavas 8dcb34f116 Minor performance improvements:
Improving the performance of toString() by caching the result.

Improving the performance of equals() by first checking if the QName is the
same object and then by checking whether the local names are equal before
looking at the namespace URI. Since it's more likely that the namespaces
will be equal, we can return false faster when the local names are different.


git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226225 13f79535-47bb-0310-9956-ffa450edef68
2005-06-04 04:12:57 +00:00
mrglavas 378334a0a8 Make default schema factory the one that exists in Xerces CVS.
git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226224 13f79535-47bb-0310-9956-ffa450edef68
2005-06-04 03:50:04 +00:00
mrglavas 9a2f84485a Changed product name and version information so that they will be specified by
build.xml, rather than being hard-coded here. Merging these changes in from
the tck-jaxp-1_2_0 branch.


git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226223 13f79535-47bb-0310-9956-ffa450edef68
2005-06-04 03:45:36 +00:00
mrglavas 520b220df3 Upgrade to Apache Software License Version 2.0
git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226222 13f79535-47bb-0310-9956-ffa450edef68
2005-06-04 03:43:59 +00:00
mrglavas cfe461eefb Javadoc fix. Tag @version cannot be used in method documentation.
git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226221 13f79535-47bb-0310-9956-ffa450edef68
2005-06-04 03:36:56 +00:00
mrglavas d77f57d180 Applying a Javadoc fix which was overwritten by the previous commit. See version 1.5.
git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226220 13f79535-47bb-0310-9956-ffa450edef68
2005-06-04 03:33:57 +00:00
mrglavas bd55e8fa25 Source for META-INF/MANIFEST.MF should pick up implementation version and
vendor and Java version and vendor from values specified in build.xml, rather
than hard-coding. Merging these changes in from the tck-jaxp-1_2_0 branch.


git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226218 13f79535-47bb-0310-9956-ffa450edef68
2005-06-04 03:17:16 +00:00
mrglavas dc53decaec Javadoc fix for QName(String,String,String). End tags for code were missing.
<code>QName<code> --> <code>QName</code>

This caused the Javadoc for the methods following this constructor to be
formatted entirely in the "code" format.


git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226212 13f79535-47bb-0310-9956-ffa450edef68
2005-06-03 21:58:15 +00:00
mrglavas ad5a8c30af Fixing indentation.
git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226210 13f79535-47bb-0310-9956-ffa450edef68
2005-06-03 18:54:52 +00:00
mrglavas 73c3555309 Fixing a compile and runtime dependency on JDK 1.4.
Prior to JDK 1.4 the exception chaining mechanism didn't
exist. If we're on JDK 1.4 we'll now call Throwable.initCause
by reflection, otherwise we just keep a local copy of the
chained exception. Added a readObject method so
that instances of this class can be serialized/deserialized
between JDK 1.4+ and JDK 1.3 (and below).


git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226209 13f79535-47bb-0310-9956-ffa450edef68
2005-06-03 18:51:21 +00:00
mrglavas 043065bc76 Fixing Bugzilla #34913:
http://issues.apache.org/bugzilla/show_bug.cgi?id=34913

Usage of the File to URI conversion code only existed on the tck-jaxp-1_2_0 branch.
Merging these fixes into the main branch. For some reason the diffs are showing
the entire file changed however the changes are local to the methods which convert
File objects into URIs.


git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226208 13f79535-47bb-0310-9956-ffa450edef68
2005-06-03 18:28:57 +00:00
mrglavas 743421a9fe Integrating File to URI conversion code into the main branch.
git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226207 13f79535-47bb-0310-9956-ffa450edef68
2005-06-03 15:21:14 +00:00
neeraj e238b84fd0 Upgrading to JAXP 1.3 APIs.
git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226188 13f79535-47bb-0310-9956-ffa450edef68
2005-04-11 07:49:39 +00:00
neeraj f672902d3f Upgrading to JAXP 1.3 APIs.
git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226187 13f79535-47bb-0310-9956-ffa450edef68
2005-04-11 07:02:02 +00:00
neeraj ec634acf94 upgrading to JAXP 1.3 APIS.
git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226186 13f79535-47bb-0310-9956-ffa450edef68
2005-04-08 11:30:41 +00:00
neeraj 6b504e7786 Upgrading to JAXP 1.3 APIs.
git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226184 13f79535-47bb-0310-9956-ffa450edef68
2005-04-08 10:53:24 +00:00
neeraj 5b838d686f Upgrading to JAXP 1.3 APIs.
git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226183 13f79535-47bb-0310-9956-ffa450edef68
2005-04-08 10:39:14 +00:00
crossley 72e36cded9 Fixed some javadoc errors.
PR: 16914
Submitted by: Tilman Giese tilman.giese<AT>gmx.de


git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226099 13f79535-47bb-0310-9956-ffa450edef68
2003-09-06 01:00:14 +00:00
crossley ac8379247a Keep 'cvs update' happy.
git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226091 13f79535-47bb-0310-9956-ffa450edef68
2003-09-05 00:34:07 +00:00
jkesselm 8c274f41e3 HTMLBlockquoteElement was present in the
published DOM Level 1 spec, but was subsequently
*DROPPED*. There's an erratum covering this:

Section 2.5.5 Interface HTMLBlockquoteElement
    This interface is an error and must be ignored.
    The Interface HTMLQuoteElement is used for both
    the Q and BLOCKQUOTE elements.

This interface is being removed from xml-commons
to comply with that erratum.


git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226039 13f79535-47bb-0310-9956-ffa450edef68
2003-01-13 22:12:32 +00:00
curcuru 34ece59e71 Cleanup imports Submitted by: vladimir@bossicard.com PR: 15647
git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226036 13f79535-47bb-0310-9956-ffa450edef68
2003-01-11 01:39:09 +00:00
curcuru a29c15bee1 Cleanup imports Submitted by: vladimir@bossicard.com PR: 15647
git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226034 13f79535-47bb-0310-9956-ffa450edef68
2003-01-11 00:54:46 +00:00
neilg 6ef6cd1d5f revert mistaken commit to HEAD. This should restore HEAD to its correct state, leaving only the new tck-jaxp-1_2_0 branch with "unofficial" APIs
git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226024 13f79535-47bb-0310-9956-ffa450edef68
2002-12-12 16:52:03 +00:00
neilg c9ce59d37b Changes needed to permit the xml-apis.jar generated
from this branch to pass the JAXP 1.2 TCK.  I've attempted to keep
these as limited as possible, in a few cases simply
modifying the original commons source directly rather than simply
importing Xerces code.  However, for many changes--such as that
involving correct handling of security-critical operations
like property checking--I've simply imported the relevant Xerces code.

I have always indicated in the comments at the top of substituted
files that they are substitutions (except in the case of the JAXP code
in which virtually all files were touched); where I've modified commons
code directly, I've placed comments immediately above
the modifications.


git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226021 13f79535-47bb-0310-9956-ffa450edef68
2002-12-12 16:26:53 +00:00
jkesselm 8c459bfa25 Still trying to get the Javadoc synched up. No functional changes.
DOM HTML Level 1 Second Edition, extracted from
http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/java-binding.zip


git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@225970 13f79535-47bb-0310-9956-ffa450edef68
2002-05-10 20:33:38 +00:00
jkesselm 3ad12ecf26 Still trying to get the Javadoc synched up. No functional changes.
DOM Level 2 Errata:
http://www.w3.org/2001/06/DOM-Level-2-Core-java-binding-20010621.zip
http://www.w3.org/2001/06/DOM-Level-2-Traversal-Range-java-binding-20010621.zip
http://www.w3.org/2001/06/DOM-Level-2-Views-java-binding-20010621.zip
http://www.w3.org/2001/06/DOM-Level-2-Events-java-binding-20010621.zip
http://www.w3.org/2001/06/DOM-Level-2-Style-java-binding-20010621.zip

DOM HTML Level 1 Second Edition, extracted from
http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/java-binding.zip


git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@225969 13f79535-47bb-0310-9956-ffa450edef68
2002-05-10 20:32:51 +00:00
jkesselm 4ff561bf31 HTML DOM files do _not_ belong in the DOM's home directory, but in the html subdirectory.
(Probably an editing goof on my part. grrr.)


git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@225968 13f79535-47bb-0310-9956-ffa450edef68
2002-05-10 20:10:03 +00:00
dims 909f6f7cc9 Upgrading to sax 2.0.1 (sax2r2) from http://sourceforge.net/projects/sax/ as per Edwin Goei.
git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@225961 13f79535-47bb-0310-9956-ffa450edef68
2002-02-27 16:04:55 +00:00
dleslie 32b041f81d Bugzilla 2230. Added clarification that newInstance, newTransformer(),
and newTemplates() can in fact return null if an ErrorHandler is registered
with the factory and what would otherwise be an Exception occurs.


git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@225949 13f79535-47bb-0310-9956-ffa450edef68
2002-01-22 20:45:17 +00:00
dleslie 3c06546315 Bugzilla 5304 -- corrected error in VERSION: xml 4.0 to html 4.0.
git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@225948 13f79535-47bb-0310-9956-ffa450edef68
2002-01-22 18:45:09 +00:00
jkesselm 1d6cda7c46 Updating the W3C DOM documentation.
1) Added HTML Level 1. Xerces apparently wants this,
and there's certainly no reason not to have it in xml-commons.

2) Fixed the generated @param comments. The DOM WG's stylesheet
for producing Javadoc from their abstract XML markup had a glitch,
and did not reliably produce a space between the parameter name
and its description. I've submitted that as an erratum, to make sure
they fix it. Meanwhile, I've gone through and fixed them all manually.
(Not everything could be fixed by simply replacing "The" with " The";
some descriptions start with other words.)

I'm an ex-member of the DOM WG, and still on the IG, so feel free to
blame me for the fact that this wasn't caught before the DOM shipped
... and for making the change. The fact that these files are no
longer byte-for-byte identical with those supplied by the W3C will
annoy some folks, but I think it's fairly safe to assume that the DOM WG
will accept the erratum.

And we definitely want to fix it here rather than having each Apache
project patch their own copy.


git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@225942 13f79535-47bb-0310-9956-ffa450edef68
2002-01-04 20:20:52 +00:00
curcuru 7d9faa78ca Manifest file for xml-apis.jar of external sources
git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@225936 13f79535-47bb-0310-9956-ffa450edef68
2001-11-28 19:38:44 +00:00
curcuru 22df5934f2 Implement simplistic Version.getVersion for the external portion of xml-commons
git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@225935 13f79535-47bb-0310-9956-ffa450edef68
2001-11-28 19:37:44 +00:00
edwingo a2a37eb4cf Applied MS VJ++ workaround for jkesselm
git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@225930 13f79535-47bb-0310-9956-ffa450edef68
2001-10-26 00:23:47 +00:00
edwingo 41208535c4 Clean up debug code
git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@225929 13f79535-47bb-0310-9956-ffa450edef68
2001-10-24 01:12:42 +00:00