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. Advertisements

  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. Advertisements

  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. Advertisements

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.
Similar Threads
  1. Markus
    Replies:
    1
    Views:
    1,924
    Markus
    Nov 23, 2005
  2. Fred Smith
    Replies:
    1
    Views:
    1,196
    Martin Honnen
    Feb 5, 2004
  3. Hari Om
    Replies:
    1
    Views:
    588
    Martin SChukrazy
    Mar 2, 2004
  4. Andy
    Replies:
    0
    Views:
    708
  5. Stanimir Stamenkov
    Replies:
    3
    Views:
    1,566
    Stanimir Stamenkov
    Apr 25, 2005
  6. Replies:
    3
    Views:
    4,558
  7. pramodr
    Replies:
    3
    Views:
    1,076
    Peter Flynn
    Apr 5, 2009
  8. Replies:
    5
    Views:
    1,680
    Brian McCauley
    Nov 29, 2006
Loading...