You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@santuario.apache.org by Dinesh Sundaram <ds...@tibco.com> on 2003/04/15 00:16:42 UTC

Resolver for namespaces

Hi,
I am trying to figure out how to resolve namespace reference
to the core XML D-SIG xsd, from an offline location (like a 
file)

Does this have to be done as an EntityResolver to the underlying
parser or can this be done by a custom resource resolver?

Thanks in advance,

dinesh


Re: Resolver for namespaces

Posted by Nandkumar Kesavan <na...@sun.com>.
Hi Dinesh,

If you are attempting to validate against a schema and this refers to 
the D-Sig definition offline,  you could set up an Entity Resolver to 
validate against a local cache of the schema.  The VerifySignature 
example in the bundle does something similar (under 
src_samples/org/apache/xml/security/samples/signature ). I also realized 
there is another option of using a Catalog Resolver (See the developer 
connection article by Norman Walsh on "XML Entity and URI Resolvers" at 
http://wwws.sun.com/software/xml/developers/index.html )

However, as Christian points out, this is separate from the Resource 
Resolver which is used to resolve URIs in the Reference elements.

HTH,
nandu
Christian Geuer-Pollmann wrote:

> --On Montag, 14. April 2003 15:16 -0700 Dinesh Sundaram 
> <ds...@tibco.com> wrote:
>
>> I am trying to figure out how to resolve namespace reference
>> to the core XML D-SIG xsd, from an offline location (like a
>> file)
>>
>> Does this have to be done as an EntityResolver to the underlying
>> parser or can this be done by a custom resource resolver?
>
>
> I'm not sure what you mean by resolving? Could you explain the problem 
> in more detail? What does namespace resolving mean? The 
> ResourceResolvers are able to get the octets (or node set) from a 
> <Reference URI="someURI">. But what does this have to do with the 
> xmldsig XSD?
>
> Christian



Re: Resolver for namespaces

Posted by Christian Geuer-Pollmann <ge...@nue.et-inf.uni-siegen.de>.
--On Montag, 14. April 2003 15:16 -0700 Dinesh Sundaram 
<ds...@tibco.com> wrote:

> I am trying to figure out how to resolve namespace reference
> to the core XML D-SIG xsd, from an offline location (like a
> file)
>
> Does this have to be done as an EntityResolver to the underlying
> parser or can this be done by a custom resource resolver?

I'm not sure what you mean by resolving? Could you explain the problem in 
more detail? What does namespace resolving mean? The ResourceResolvers are 
able to get the octets (or node set) from a <Reference URI="someURI">. But 
what does this have to do with the xmldsig XSD?

Christian