XSD Schema: Import/Include/Redefine

Import/Include/Redefine

  • Import works only when the two schemas have different Target Namespace attributes.
  • Include is available only when both schemas share the exact same Target Namespace. Also, Include only works when the two schemas do not have any of the same top level element names, attributes, or data types. This is because Include acts essentially like a copy and paste from the original.
  • While Redefine might work as well, it is primarily for situations where an alteration to the source schema elements/attributes is needed.
posted @ 2008-07-06 16:49  upzone  阅读(622)  评论(0编辑  收藏  举报