80 Commits

Author SHA1 Message Date
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
mcnamara
65ed556c33 Updates from SAX 2.0.2 (sax2r3) being applied to the head branch.
git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226228 13f79535-47bb-0310-9956-ffa450edef68
2005-06-09 20:49:47 +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
87899134c1 Merging in naming conventions from the tck-jaxp-1_2_0 branch and a few other minor changes.
git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226219 13f79535-47bb-0310-9956-ffa450edef68
2005-06-04 03:20:07 +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
daf0071761 Merging in bin.distro target from the tck-jaxp-1_2_0 branch.
git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226217 13f79535-47bb-0310-9956-ffa450edef68
2005-06-04 02:43:39 +00:00
mrglavas
99f4b82a7a Upgrade to Apache Software License Version 2.0
git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226216 13f79535-47bb-0310-9956-ffa450edef68
2005-06-04 02:41:29 +00:00
mrglavas
f228b9bb7b Upgrade W3C license to the December 31, 2002 version.
git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226215 13f79535-47bb-0310-9956-ffa450edef68
2005-06-03 22:49:13 +00:00
mrglavas
dd41b5975d Merging in the KEYS, LICENSE and NOTICE files from the tck-jaxp-1_2_0 branch.
git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226214 13f79535-47bb-0310-9956-ffa450edef68
2005-06-03 22:27:52 +00:00
mrglavas
3d4a664fa1 Applying the Apache 2.0 license.
git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226213 13f79535-47bb-0310-9956-ffa450edef68
2005-06-03 22:04:32 +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
86e0999b73 Update to javadoc target. Build docs for every class under
javax.xml.* not just the parsers and transform packages.


git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226211 13f79535-47bb-0310-9956-ffa450edef68
2005-06-03 21:55:20 +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
9a42e8fb94 Upgrading to JAXP 1.3 APIs.
git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226185 13f79535-47bb-0310-9956-ffa450edef68
2005-04-08 11:05:08 +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
zongaro
14009b9b2c Propagated build.sh and build.bat scripts from tck-jaxp-1_2_0 branch.
git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226066 13f79535-47bb-0310-9956-ffa450edef68
2003-06-08 14:48:30 +00:00
neilg
1cdfd4dfde Since Xerces now needs a zipped version of the API source, because CVS seems to corrupt .tar.gz files on some platforms, porting code to build such a file to the main branch. This way, it will not get lost when the trunk is forked in the future.
git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@226052 13f79535-47bb-0310-9956-ffa450edef68
2003-02-12 20:20:22 +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