You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xml.apache.org by Davanum Srinivas <di...@yahoo.com> on 2001/05/22 12:56:41 UTC
[xml-commons][VOTE] META-INF/services
Ed,
Question #1: Should we populate META-INF/services with defaults? (my vote +1)
Question #2: Should the parser defaults point to Xerces (my vote +1) or Crimson (my vote +0)?
Question #3: The TRaX should default to Xalan (my vote +1).
Question #4: We need to add try/catch for SecurityException around
System.getProperty("org.xml.sax.parser")? (my vote +1)
Question #5: Should we add code to pick up "org.xml.sax.parser" default from META-INF/services (to
be consistent across the board?) right now the code just looks at System.getProperty. (my vote +1)
Thanks,
dims
=====
Davanum Srinivas, JNI-FAQ Manager
http://www.jGuru.com/faq/JNI
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
---------------------------------------------------------------------
In case of troubles, e-mail: webmaster@xml.apache.org
To unsubscribe, e-mail: general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org
Re: [xml-commons][VOTE] META-INF/services
Posted by Edwin Goei <ed...@sun.com>.
Davanum Srinivas wrote:
>
> Ed,
>
> Question #1: Should we populate META-INF/services with defaults? (my vote +1)
If you're referring to the JAXP 1.1 pluggable implementation scheme,
then I would say yes.
>
> Question #2: Should the parser defaults point to Xerces (my vote +1) or Crimson (my vote +0)?
If you're referring to JAXP 1.1 services, then we don't in theory need
to choose which parser is the default. The xerces.jar file can point to
the xerces implementation and the crimson.jar file can point to the
crimson implementation. I posted a presentation on JAXP 1.1 for
ApacheCon 2001 at http://xml.apache.org/~edwingo which tries to explain
this.
>
> Question #3: The TRaX should default to Xalan (my vote +1).
Same answer as #2.
> Question #4: We need to add try/catch for SecurityException around
> System.getProperty("org.xml.sax.parser")? (my vote +1)
Where is this code you are referring to? Is it in the org.xml.sax
package?
> Question #5: Should we add code to pick up "org.xml.sax.parser" default from META-INF/services (to
> be consistent across the board?) right now the code just looks at System.getProperty. (my vote +1)
My initial opinion would be no, but I'm not sure about it. JAXP 1.1
does not specify any services that begin with "org.xml.sax".
-Edwin
---------------------------------------------------------------------
In case of troubles, e-mail: webmaster@xml.apache.org
To unsubscribe, e-mail: general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org
Re: [xml-commons][VOTE] META-INF/services
Posted by Martin Stricker <sh...@gmx.de>.
Davanum Srinivas schrieb:
> Question #4: We need to add try/catch for SecurityException around
> System.getProperty("org.xml.sax.parser")? (my vote +1)
+1
The others I don't know/care about.
Best regards,
Martin Stricker
--
Homepage http://www.martin-stricker.de/
Webmaster-Forum http://www.masterportal24.com/cgi-bin/YaBB.cgi
Mitglied im Science Fiction Club Deutschland e. V. http://www.sfcdev.de/
Registered Linux user #210635 http://counter.li.org/
---------------------------------------------------------------------
In case of troubles, e-mail: webmaster@xml.apache.org
To unsubscribe, e-mail: general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org
Re: [xml-commons][VOTE] META-INF/services
Posted by cm...@yahoo.com.
On Tue, 22 May 2001, Davanum Srinivas wrote:
> Ed,
>
> Question #1: Should we populate META-INF/services with defaults? (my vote +1)
Big -1 - that would prevent any other parser/trax from beeing used!
The order is: system settings ( in java.home/lib/jaxp.properties ), guess
by finding the META-INF/services in classpath ( plug-and-play ), default.
If you have the meta-inf/services set in jaxp.jar, then no other parser
will be detected.
And it's wrong - the services "announce" that a jar file is providing an
implementation for some API - jaxp.jar doesn't implement any. Xerces is
supposed to have a services/javax.xml.prsers...., xalan for transform.
If we happen to not include them in xerces/xalan - it'll still work.
> Question #2: Should the parser defaults point to Xerces (my vote +1) or Crimson (my vote +0)?
I'm ok with xerces, as long as we don't include META-INF/services. You
just put whatever parser you want in the classpath, and it'll be used.
> Question #4: We need to add try/catch for SecurityException around
> System.getProperty("org.xml.sax.parser")? (my vote +1)
+1
> Question #5: Should we add code to pick up "org.xml.sax.parser" default from META-INF/services (to
> be consistent across the board?) right now the code just looks at System.getProperty. (my vote +1)
+1
That should be done in org.xml.sax - but I'm not sure we can/should modify
the original APIs.
If you think it's ok to do so - it would be just great !
Costin
---------------------------------------------------------------------
In case of troubles, e-mail: webmaster@xml.apache.org
To unsubscribe, e-mail: general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org