[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Valid reference to external namespace?

  • 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?

what is a valid reference

Hello,

 

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…

 

Thanks!

Joel Ezell

Avaya Inc.

 

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

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

  xmlns:xsd="http://www.w3.org/2001/XMLSchema"

  xmlns:csta="http://www.ecma.ch/standards/ecma-323/csta/ed2"

  elementFormDefault="qualified" attributeFormDefault="qualified">

 

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

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

 

  <!-- RegisterDevice -->

  <xsd:element name="RegisterDevice">

    <xsd:complexType>

      <xsd:sequence>

        <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"/>

      </xsd:sequence>

    </xsd:complexType>

  </xsd:element>

 


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.