You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Benson Cheng <Be...@viacore.net> on 2002/12/05 19:27:16 UTC

EntityResolver question

I am switching Xerces from 1.4.4 to 2.2.1 and running to a EntityResolver problem.  In my schema contains the following line

<xsd:include schemaLocation="common/common.xsd"/>

in xerces 1.4.4, when the resolveEntity() get called, the parameter systemId pass in as "common/common.xsd", its a relative path so I can insert a parent path base on a configurable value.  But in 2.2.1 version, it pass in as "file:///D:/work/test/common/common.xsd" value, d:/work/test is the current directory.  Is there way to make the 2.2.1 pass the value as is?  or do I have to change the schemaLocation attribute in all my schemas?

thanks,
Benson.



---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org


Re: EntityResolver question

Posted by Andy Clark <an...@apache.org>.
Another solution, albeit less portable, is to use the
Xerces XNI entity resolver interface. It is similar to
the SAX entity resolver but gives you more information,
including the expanded and unexpanded form of the URI.

-- 
Andy Clark * andyc@apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org