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 rasco rasco <oc...@yahoo.it> on 2001/03/09 12:56:37 UTC

simple (i hope) validation question

hi,
my problem has to do with list and simple type:
...
<element name="categoryref">
    <simpleType>
         <list itemType="IDREF"/>
    </simpleType>
</element>

<element name="bookmark">
    <complexType>
        <sequence>
        ...
           <element ref="b:categoryref"
minOccurs="0"/>
        ...
         </sequence>
    ...
     </complexType>
</element>
....

When i try to validate it using xerces-1_2_3 it 
responds:

[Error] myfile.xml:5:102: Unknown base type  for type
.
[Error] myfile.xml:5:102: Schema error: traverse
simpleType error in
element 'categoryref'.
[Error] myfile.xml:5:102: Schema error: untyped
element : categoryref.
what's the problem: syntax or somthing else?

thanks  in advance
luca

______________________________________________________________________
Do You Yahoo!?
Il tuo indirizzo gratis e per sempre @yahoo.it su http://mail.yahoo.it

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


Re: simple (i hope) validation question

Posted by Elena Litani <hl...@jtcsv.com>.
Hi Luca, 

> What's Schema CR and WD syntax? 
Sorry, I should have explained. CR - Schema W3C Candidate Recommendation
(24 October 2000). 

WD - is Working Draft of schema (Apr 7th, 2000)

> are using CR syntax not supported by Xerces 1.2.3? 
Xerces 1.2.3 supported WD only.
See Xerces documentation: http://xml.apache.org/xerces-j/schema.html

Elena

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


Re: simple (i hope) validation question

Posted by rasco rasco <oc...@yahoo.it>.
--- rasco rasco <oc...@yahoo.it> ha scritto: > >---
Elena Litani <hl...@jtcsv.com> ha scritto: >
> You >are using the Schema CR syntax, however Xerces
> > 1.2.3 was supporting Schema WD syntax.
> 
> What's Schema CR and WD syntax? So what I wrote
> below
> are using CR syntax not supported by Xerces 1.2.3?
> And
> if I used version 1.3.0 it's ok?
No, it's the same thing

> > Move to Xerces 1.3.0 :)
> I think so.
Just do it :) 

> luca 



______________________________________________________________________
Do You Yahoo!?
Il tuo indirizzo gratis e per sempre @yahoo.it su http://mail.yahoo.it

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


Re: simple (i hope) validation question

Posted by rasco rasco <oc...@yahoo.it>.
>--- Elena Litani <hl...@jtcsv.com> ha scritto: >
You >are using the Schema CR syntax, however Xerces
> 1.2.3 was supporting Schema WD syntax.

What's Schema CR and WD syntax? So what I wrote below
are using CR syntax not supported by Xerces 1.2.3? And
if I used version 1.3.0 it's ok?
 
> Move to Xerces 1.3.0 :)
I think so.

Thank you a lot.
luca 

> rasco rasco wrote:
> > ...
> > <element name="categoryref">
> >     <simpleType>
> >          <list itemType="IDREF"/>
> >     </simpleType>
> > </element>
> > 
> > <element name="bookmark">
> >     <complexType>
> >         <sequence>
> >         ...
> >            <element ref="b:categoryref"
> > minOccurs="0"/>
> >         ...
> >          </sequence>
> >     ...
> >      </complexType>
> > </element>
> > ....
> > 



______________________________________________________________________
Do You Yahoo!?
Il tuo indirizzo gratis e per sempre @yahoo.it su http://mail.yahoo.it

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


Re: simple (i hope) validation question

Posted by Elena Litani <hl...@jtcsv.com>.
You are using the Schema CR syntax, however Xerces 1.2.3 was supporting
Schema WD syntax.

Move to Xerces 1.3.0 :)

Elena

rasco rasco wrote:
> 
> hi,
> my problem has to do with list and simple type:
> ...
> <element name="categoryref">
>     <simpleType>
>          <list itemType="IDREF"/>
>     </simpleType>
> </element>
> 
> <element name="bookmark">
>     <complexType>
>         <sequence>
>         ...
>            <element ref="b:categoryref"
> minOccurs="0"/>
>         ...
>          </sequence>
>     ...
>      </complexType>
> </element>
> ....
> 
> When i try to validate it using xerces-1_2_3 it
> responds:
> 
> [Error] myfile.xml:5:102: Unknown base type  for type

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