XML Schema question - does "import" import elements?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Vitali Gontsharuk

    #1

    XML Schema question - does "import" import elements?

    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
  • Priscilla Walmsley

    #2
    Re: XML Schema question - does "import&qu ot; import elements?

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

    Comment

    • Vitali Gontsharuk

      #3
      Re: XML Schema question - does "import&qu ot; import elements?

      OK! Thank you!

      Priscilla Walmsley wrote:
      [color=blue]
      >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 ***
      >
      >[/color]

      Comment

      Working...