You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Robert Buck <rb...@mathworks.com> on 2002/05/16 22:50:53 UTC

Question about schema typename

Considering a schema whose target namespace is "urn:uniquelyfu", why would 
I get the following results for the top level element:

ElementDecl Info:
   baseName: data
   fullName: data
   elementDeclPoolId: 2
   elementURIId: 6
   Formatted ContentModel:     (fuel,barel,fucmplxel,barcmplxel)
   QNamePrefix:
   QNameLocalPart: data
   QNameRaw: data
TypeName:   fu,C0

In particular, why "C0" after "fu," ? I should think it ought to have been 
something like:

"fu,urn:uniquelyfu"

Any ideas anyone? [This is with Xerces C++ 1.7]

Bob


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


Re: Question about schema typename

Posted by Khaled Noaman <kn...@ca.ibm.com>.
Local complexType/simpleType declarations are anonymous types as they do not have
a name associated with them.
e.g.
<element name="base>
    <complexType>
        <sequence>
            <element name="child" type = "string"/>
        </sequence>
    </complexType>
</element>

Khaled

Robert Buck wrote:

> Okay. I will have to take your word for it.
>
> But no types, as far as I am aware, are anonymous in my schema files. At
> least I think. Perhaps my schema files are not correct; I have found it
> tremendously difficult interpreting what they heck the Schema Specs are
> saying as they are horribly written.
>
> So I guess my question now would be, when are types anonymous? Under what
> circumstances can a type, that is fully qualified with a namespace prefix
> and type (complex or simple) become anonymous?
>
> Bob
>
> >Type names are stored in the form {URI},{typename}. So, C0 , which is a dummy
> >name generated (anonymous types), is the the type name.
> >
> >Khaled
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


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


Re: Question about schema typename

Posted by Robert Buck <rb...@mathworks.com>.
Okay. I will have to take your word for it.

But no types, as far as I am aware, are anonymous in my schema files. At 
least I think. Perhaps my schema files are not correct; I have found it 
tremendously difficult interpreting what they heck the Schema Specs are 
saying as they are horribly written.

So I guess my question now would be, when are types anonymous? Under what 
circumstances can a type, that is fully qualified with a namespace prefix 
and type (complex or simple) become anonymous?

Bob

>Type names are stored in the form {URI},{typename}. So, C0 , which is a dummy
>name generated (anonymous types), is the the type name.
>
>Khaled


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


Re: Question about schema typename

Posted by Khaled Noaman <kn...@ca.ibm.com>.
Type names are stored in the form {URI},{typename}. So, C0 , which is a dummy
name generated (anonymous types), is the the type name.

Khaled

Robert Buck wrote:

> Considering a schema whose target namespace is "urn:uniquelyfu", why would
> I get the following results for the top level element:
>
> ElementDecl Info:
>    baseName: data
>    fullName: data
>    elementDeclPoolId: 2
>    elementURIId: 6
>    Formatted ContentModel:     (fuel,barel,fucmplxel,barcmplxel)
>    QNamePrefix:
>    QNameLocalPart: data
>    QNameRaw: data
> TypeName:   fu,C0
>
> In particular, why "C0" after "fu," ? I should think it ought to have been
> something like:
>
> "fu,urn:uniquelyfu"
>
> Any ideas anyone? [This is with Xerces C++ 1.7]
>
> Bob
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


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