Hi Agrawal,

You are using the xsi:noNamespaceSchemaLocation, my next question then did you implement
your EntityResolver? I think you also need to register the handler right? I don't remember if
you also needed to turn validation.


So if yo did all this and it works for the DTD case then it would seem like this is a bug, since I
have in the pass relied on the EntityResolver in the case of Schemas. Most likely is some setting
of your parser which is not turn on.


Cheers,

                    Jeffrey Rodriguez
                    Silicon Valley



From: "Agrawal, Vikas (ELS)" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Subject: RE: how to use external schema?
Date: Fri, 5 Sep 2003 17:00:05 +0100

Hi,
I did not associate schema with the instance document manually. I am
expecting parser to read the xml document and get the schema file name from
there and pass it to the EntityResolver to resolve it but it is not
happening.
Anyway you can see how I have defined schema in xml file below.
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="photos.xsl"?>
<images xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:noNamespaceSchemaLocation="photos.xsd">

Thanks & Regards
Vikas


-----Original Message----- From: Jeffrey Rodriguez [mailto:[EMAIL PROTECTED] Sent: 05 September 2003 16:51 To: [EMAIL PROTECTED] Subject: Re: how to use external schema?


Hi Agrawal,


How did you associate your Schema with the instance document. Did you use a
xsi:noNamesSpaceLocation or xsi:schemaLocation?

If you did so I would have expected the parser ( indeed it used to do tha
before....) to
call the entity resolver.

Furthermore, I would expect that setting also the setExternalSchemaLocation

instead of
the xsi instructions to also call the entityResolver.

Otherwise I think that this is an inconsistency.

So first let us know an answer to my first question.

Regards,

                    Jeffrey Rodriguez
                    Silicon Valley



>From: "Agrawal, Vikas (ELS)" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>Subject: how to use external schema?
>Date: Fri, 5 Sep 2003 10:26:52 +0100
>
>Hi All,
>
>I am trying to parse my file against a schema. Before I was parsing it
>against a external DTD and it was working fine going through my entity
>resolver. As soon as I try to use schema it stops going into entity
>resolver.
>I know I can set the schema location into the parser using
>setExternalSchemaLocation() function but to do that I will have to extract
>this info from xml file manually. I do not want to do that. I want
>something
>like entity resolver for schema.
>Thanks & Regards
>Vikas
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>


_________________________________________________________________
Send and receive larger attachments with Hotmail Extra Storage.
http://join.msn.com/?PAGE=features/es


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_________________________________________________________________
Use custom emotions -- try MSN Messenger 6.0! http://www.msnmessenger-download.com/tracking/reach_emoticon



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to