You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xalan.apache.org by "Kellogg, Phillip A" <ph...@lmco.com> on 2011/02/22 00:39:17 UTC

XercesParserLiaison setExternalSchemaLocation has no net effect

Hello,

I am trying to set an external schema location for xalan/xerces to use so that I can specify a specific path to where my schema is located, a relative path specified in the XML instance is not acceptable.  Looking at the Xalan API, my XalanSourceTreeParserLiaison object should be able to do this via setExternalSchemaLocation().  However, once the schema location makes it to the XercesParserLiaison, the string is never used.  As stated in another thread, dated  Tue, 15 Sep 2009 15:10:44 GMT, there is a function, XercesParserLiaison::ensureDOMParser() that should take care of this.  In a subsequent unreleased version of this class, that function is now called when parseXMLStream() is called.

It appears that Xalan 1.10, the version I am using, was released in 2005.  I don't have the ability to use an unreleased version of Xalan and am wondering if there will be another release of Xalan in the near future?  Or is there some other workaround that I could employ to get this to work.

Thank you,
Phil Kellogg



Re: XercesParserLiaison setExternalSchemaLocation has no net effect

Posted by David Bertoni <db...@apache.org>.
On 2/22/2011 10:33 PM, Phillip Kellogg wrote:
> Dave,
>
> Thanks for your reply.  That doesn't sound good that the project seems to be more or less dead. Out of curiosity, how much time would you expect it take to get xalan back on track?  Is there any sort of metric available as far as how much xalan is used? Does the current svn head for xalan work with the latest xerces? What future do you see for xalan?
Hi Phil,

I would expect it would take a fair amount of time, but more 
importantly, it would require people to step up and become committers. 
That's always been the sticking point, as people have volunteered to 
help, then disappeared. At this point, after 12 years, I don't have the 
time to do the work to resurrect the release process and to update our 
build system.

To answer your specific question:

1. I believe Xalan-C is widely used. I often see in pop up in commercial 
products I use.

2. The head of the repository works with the latest Xerces-C and is even 
backward compatible with Xerces-C 2.8.x. It has numerous bug fixes and 
enhancements.

3. Unless there are people who are willing to step up and contribute, 
Xalan-C will remain a stable XSLT 1.0 processor. I don't think there's 
much of a future for implementing XSLT 2.0.

> Since xalan is built on top of xerces would getting the processes from the xerces project be a good starting point to get xalan back on track?
Much of the Xerces-C infrastructure could be adopted, but it would 
require almost as much work to modify it for Xalan-C as it would to just 
re-write it.

> Never having participated in an open source project I am unfamiliar with how a project works in this environment. With that said I may be interested helping with this project but would like a little better idea on the sort of commitment that would be involved.
People can contribute as much or as little as they want.  Once someone 
has been contributing for a while, they can be nominated for committer 
status, and become an official member of the project. It's also possible 
for people to simply work on discrete pieces, such as updating the 
documentation or updating the build system.

Dave

Re: XercesParserLiaison setExternalSchemaLocation has no net effect

Posted by Phillip Kellogg <ke...@gmail.com>.
Dave,

Thanks for your reply.  That doesn't sound good that the project seems to be more or less dead. Out of curiosity, how much time would you expect it take to get xalan back on track?  Is there any sort of metric available as far as how much xalan is used? Does the current svn head for xalan work with the latest xerces? What future do you see for xalan?

Since xalan is built on top of xerces would getting the processes from the xerces project be a good starting point to get xalan back on track?

Never having participated in an open source project I am unfamiliar with how a project works in this environment. With that said I may be interested helping with this project but would like a little better idea on the sort of commitment that would be involved. 

Again thank you for your help. 
Phil



On Feb 22, 2011, at 1:10 PM, David Bertoni <db...@apache.org> wrote:

> On 2/21/2011 3:39 PM, Kellogg, Phillip A wrote:
>> Hello,
>> 
>> I am trying to set an external schema location for xalan/xerces to use
>> so that I can specify a specific path to where my schema is located, a
>> relative path specified in the XML instance is not acceptable. Looking
>> at the Xalan API, my XalanSourceTreeParserLiaison object should be able
>> to do this via setExternalSchemaLocation(). However, once the schema
>> location makes it to the XercesParserLiaison, the string is never used.
>> As stated in another thread, dated Tue, 15 Sep 2009 15:10:44 GMT, there
>> is a function, XercesParserLiaison::ensureDOMParser() that should take
>> care of this. In a subsequent unreleased version of this class, that
>> function is now called when parseXMLStream() is called.
>> 
>> &nb sp;
>> 
>> It appears that Xalan 1.10, the version I am using, was released in
>> 2005. I don’t have the ability to use an unreleased version of Xalan and
>> am wondering if there will be another release of Xalan in the near
>> future? Or is there some other workaround that I could employ to get
>> this to work.
> I doubt there will ever be another release of Xalan-C. I don't have the time to resurrect the release process, and the people who were familiar with it are long gone.
> 
> If you need that fix, you can either update to the head of the subversion repository, or you can attempt to patch the changes I made to fix the problem. The Jira issue is XALAN-667 and the SVN revision number is 637487.
> 
> Either way, you will end up with an unofficial version of Xalan-C, so it will be much simpler if you just use the head of the repository.
> 
> Dave

Re: XercesParserLiaison setExternalSchemaLocation has no net effect

Posted by David Bertoni <db...@apache.org>.
On 2/21/2011 3:39 PM, Kellogg, Phillip A wrote:
> Hello,
>
> I am trying to set an external schema location for xalan/xerces to use
> so that I can specify a specific path to where my schema is located, a
> relative path specified in the XML instance is not acceptable. Looking
> at the Xalan API, my XalanSourceTreeParserLiaison object should be able
> to do this via setExternalSchemaLocation(). However, once the schema
> location makes it to the XercesParserLiaison, the string is never used.
> As stated in another thread, dated Tue, 15 Sep 2009 15:10:44 GMT, there
> is a function, XercesParserLiaison::ensureDOMParser() that should take
> care of this. In a subsequent unreleased version of this class, that
> function is now called when parseXMLStream() is called.
>
> &nb sp;
>
> It appears that Xalan 1.10, the version I am using, was released in
> 2005. I don’t have the ability to use an unreleased version of Xalan and
> am wondering if there will be another release of Xalan in the near
> future? Or is there some other workaround that I could employ to get
> this to work.
I doubt there will ever be another release of Xalan-C. I don't have the 
time to resurrect the release process, and the people who were familiar 
with it are long gone.

If you need that fix, you can either update to the head of the 
subversion repository, or you can attempt to patch the changes I made to 
fix the problem. The Jira issue is XALAN-667 and the SVN revision number 
is 637487.

Either way, you will end up with an unofficial version of Xalan-C, so it 
will be much simpler if you just use the head of the repository.

Dave