XML Schema question - does "import" import elements?

Discussion in 'XML' started by Vitali Gontsharuk, Aug 25, 2005.

  1. Hi!

    I can't find an answer to the following question: does the "import"
    command in XML Schema import also element declarations? Or only type
    definitions? As far as I understood, the first takes place... The spec says:
    "In our example, we imported one simple type from one external
    namespace, and used it for declaring attributes. XML Schema in fact
    permits multiple schema components to be imported, from multiple
    namespaces, and they can be referred to in both definitions and
    declarations."
    What do they mean by "multiple schema components", are element and
    attribute declarations amongst them? Or does it just allow to use import
    as a mechanism to import type libraries?

    Thanks,
    Vitali
    Vitali Gontsharuk, Aug 25, 2005
    #1
    1. Advertising

  2. Hi,

    You can import any kind of top-level schema component. This does
    include global element and attribute declarations. It also means named
    complex and simple types, and named model groups and attribute groups.

    Hope that helps,
    Priscilla

    ----------------------------------
    Priscilla Walmsley
    Author, Definitive XML Schema
    http://www.datypic.com
    ----------------------------------

    *** Sent via Developersdex http://www.developersdex.com ***
    Priscilla Walmsley, Aug 25, 2005
    #2
    1. Advertising

  3. OK! Thank you!

    Priscilla Walmsley wrote:

    >Hi,
    >
    >You can import any kind of top-level schema component. This does
    >include global element and attribute declarations. It also means named
    >complex and simple types, and named model groups and attribute groups.
    >
    >Hope that helps,
    >Priscilla
    >
    >----------------------------------
    >Priscilla Walmsley
    >Author, Definitive XML Schema
    >http://www.datypic.com
    >----------------------------------
    >
    >*** Sent via Developersdex http://www.developersdex.com ***
    >
    >
    Vitali Gontsharuk, Aug 25, 2005
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.

Share This Page