OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Valid reference to external namespace?

[ Lists Home | Date Index | Thread Index ]
  • To: <xml-dev@lists.xml.org>
  • Subject: Valid reference to external namespace?
  • From: "Ezell, Joel M \(Joel\)" <joele@avaya.com>
  • Date: Wed, 15 Dec 2004 14:16:16 -0700
  • Thread-index: AcTi60//gkQdqwu7Q7qsVNgJP7Slag==
  • Thread-topic: Valid reference to external namespace?



Below, I have an example of an XSD file that is referencing a type defined in another schema, but I’m not positive that it’s doing it correctly.  Note that the CSTA namespace is defined as “csta”, and in the RegisterDevice type, I reference a type from that namespace: type=”csta:DeviceID”.  There is no explicit “include” statement.  Is this a legitimate way to reference that type?  Castor seems to think so, but I wanted to verify it anyway…



Joel Ezell

Avaya Inc.


<?xml version="1.0" encoding="UTF-8"?>

<xsd:schema targetNamespace="http://www.avaya.com/csta"



  elementFormDefault="qualified" attributeFormDefault="qualified">


  <xsd:include schemaLocation="ip-address.xsd"/>

  <xsd:include schemaLocation="login-info.xsd"/>


  <!-- RegisterDevice -->

  <xsd:element name="RegisterDevice">



        <xsd:element name="device"      type="csta:DeviceID"/>

        <xsd:element name="loginInfo"   type="acx:LoginInfo" minOccurs="0"/>

        <xsd:element name="localMediaInfo"   type="acx:MediaInfo" minOccurs="0"/>

        <xsd:element ref="csta:extensions" minOccurs="0"/>






News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS