I find it strange that:

> 2. Second that imports third,
> 3. Third that imports second.

To me, this appears to be a cyclic dependency and therefore a problem with
the schema design.

Or am I just totally missing the point ;-)


-----Original Message-----
From: Gareth Reakes [mailto:[EMAIL PROTECTED]
Sent: 26 August 2005 09:44
To: [email protected]
Subject: Re: XML Schema advanced question


Hey,

     I am heading out to yet another meeting. I will take a look at
the code and confirm (or not) what I said and think of a workaround
for over the weekend.


Gareth


On 26 Aug 2005, at 8:30, Milan Tomic wrote:

> Gareth,
>
> Is there a workaround? :(
>
> Thank you,
> Milan
>
>
>
>> -----Original Message-----
>> From: Gareth Reakes [mailto:[EMAIL PROTECTED]
>> Sent: Thursday, August 25, 2005 10:37 AM
>> To: [email protected]
>> Subject: Re: XML Schema advanced question
>>
>>
>> Hey,
>>
>>     I have not got time this morning to confirm this, but
>> my suspicion is
>> that there is no namespace to key off to find the appropriate grammar
>> and therefore none is found. Anyone else done this before?
>>
>>
>> Gareth
>>
>>
>> Milan Tomic wrote:
>>
>>> Hi Gareth,
>>>
>>> No, it doesn't have. I could post schemas if that would help.
>>>
>>> Kind regards,
>>> Milan
>>>
>>>
>>>
>>>
>>>> -----Original Message-----
>>>> From: Gareth Reakes [mailto:[EMAIL PROTECTED]
>>>> Sent: Thursday, August 25, 2005 10:30 AM
>>>> To: [email protected]
>>>> Subject: Re: XML Schema advanced question
>>>>
>>>>
>>>> Hi,
>>>>
>>>>
>>>>     To confirm, your first schema has no target namespace?
>>>>
>>>>
>>>> (Sorry if this appears as a duplicate)
>>>>
>>>> Gareth
>>>>
>>>> Milan Tomic wrote:
>>>>
>>>>
>>>>>
>>>>> Have anyone noticed my post? :>
>>>>>
>>>>>
>>>>>
>>>>>    -----Original Message-----
>>>>>    *From:* Milan Tomic [mailto:[EMAIL PROTECTED]
>>>>>    *Sent:* Wednesday, August 24, 2005 10:10 AM
>>>>>    *To:* [email protected]
>>>>>    *Subject:* XML Schema advanced question
>>>>>
>>>>>    Hi,
>>>>>
>>>>>    I have three schemas:
>>>>>
>>>>>    1. First that imports second,
>>>>>    2. Second that imports third,
>>>>>    3. Third that imports second.
>>>>>
>>>>>    Schemas were imported in this way:
>>>>>
>>>>>    <xs:import namespace="someURL"
>>>>>    schemaLocation="http://www.someURL.com/MySchema.xsd"/>
>>>>>
>>>>>    I'm loading first schema from my resources (VC6 compiler) into
>>>>>    Xerces 2.5 parser in this way:
>>>>>
>>>>>    XercesDOMParser * parser = new XercesDOMParser;
>>>>>    parser->setDoNamespaces(true);
>>>>>    parser->setCreateEntityReferenceNodes(true);
>>>>>    MemBufInputSource * is = new MemBufInputSource(schema,
>>>>>
>>>>
>>>> schemaLen,
>>>>
>>>>
>>>>>    "MySchema");
>>>>>    parser->loadGrammar(*is, Grammar::SchemaGrammarType, true);
>>>>>    parser->setDoSchema(true);
>>>>>    parser->setValidationSchemaFullChecking(true);
>>>>>    parser->setValidationScheme(XercesDOMParser::Val_Always);
>>>>>    parser->useCachedGrammarInParse(true);
>>>>>    parser->parse("C:\\My.xml");
>>>>>
>>>>>    The problem is that I allways got an error saying that
>>>>>
>>>>
>>>> none element
>>>>
>>>>
>>>>>    (root element, root element's attributes...) in my XML file was
>>>>>    defined. :(
>>>>>
>>>>>    If I use
>>>>>
>>>>
>>>> setExternalNoNamespaceSchemaLocation("C:\\MySchema.xsd")
>>>>
>>>>
>>>>>    instead of loadGrammar() it works fine (doesn't report any
>>>>> errors).
>>>>>
>>>>>    What should I do?
>>>>>
>>>>>
>>>>
>>>> --
>>>> Gareth Reakes, Managing Director           Embrace Mobile
>>>> +44-1865-811197              http://www.embracemobile.com
>>>>
>>>> ------------------------------------------------------------
>>>>
>> ---------
>>
>>>> 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]
>>>
>>>
>>>
>>
>> --
>> Gareth Reakes, Managing Director           Embrace Mobile
>> +44-1865-811197              http://www.embracemobile.com
>>
>> ---------------------------------------------------------------------
>> 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]
>
>
>

--
Gareth Reakes, Managing Director               Embrace Mobile
+44-1865-811197                  http://www.embracemobile.com



---------------------------------------------------------------------
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]

Reply via email to