ファイル idrop-schema.xml は、3ds Max などの i-drop 対応アプリケーションにドロップできるハイレベルなオブジェクトを記述するものです。
idrop-schema.xml ファイルの最新バージョンは次の場所でダウンロードできます。
http://www.autodesk.com/developidrop
「Samples」へのリンクをたどり、i-drop スキーマのリンクをクリックしてください。
または、下のソース コードをテキスト ファイルにコピーし、idrop-schema.xml という名前を付ける方法もあります。
XML コード:
|
<?xml version="1.0"?>
<!-- ********************************************************************** -->
<!-- i-drop package schema -->
<!-- -->
<!-- The i-drop package is a description of a high-level "object" that can -->
<!-- be dropped into an i-drop aware application. The package lists native -->
<!-- file formats and web page proxy representations. -->
<!-- ********************************************************************** -->
<Schema name="idrop-13mar2000"
xmlns="urn:schemas-microsoft-com:xml-data"
xmlns:dt="urn:schemas-microsoft-com:datatypes">
<!-- ********************************************************************** -->
<!-- Attributes -->
<AttributeType name="src" dt:type="uri" required="no">
<description>URL of a source file</description>
</AttributeType>
<AttributeType name="defaultsrc" dt:type="uri" required="no">
<description>URL of a default source file</description>
</AttributeType>
<AttributeType name="clipformat" dt:type="string" required="no">
<description>Custom defined clipboard format</description>
</AttributeType>
<AttributeType name="clsid" dt:type="uuid" required="no">
<description>Class ID of an ActiveX control</description>
</AttributeType>
<AttributeType name="codebase" dt:type="uri" required="no">
<description>URL to an ActiveX control distribution (ala object tag in HTML)</description>
</AttributeType>
<AttributeType name="name" dt:type="string" required="no">
<description>Name of a parameter (ala object tag in HTML)</description>
</AttributeType>
<AttributeType name="value" dt:type="string" required="no">
<description>Value of a parameter (ala object tag in HTML)</description>
</AttributeType>
<!-- ********************************************************************** -->
<!-- Elements -->
<ElementType name="package">
<description>i-Drop XML package file</description>
<element type="proxy" minOccurs="1" maxOccurs="1"/>
<element type="dataset" minOccurs="1" maxOccurs="1"/>
</ElementType>
<ElementType name="proxy">
<description>Stand-in for the dataset</description>
<attribute type="defaultsrc" required="yes"/>
<element type="caption" minOccurs="0" maxOccurs="1"/>
<element type="img" minOccurs="0" maxOccurs="*"/>
<element type="activex" minOccurs="0" maxOccurs="*"/>
</ElementType>
<ElementType name="caption">
<description>Caption to display with the proxy</description>
</ElementType>
<ElementType name="img">
<description>Bitmap image file</description>
<attribute type="src" required="yes"/>
</ElementType>
<ElementType name="activex">
<description>HTML-like definition of an ActiveX control</description>
<attribute type="clsid" required="yes"/>
<attribute type="codebase" required="no"/>
<element type="param" minOccurs="0" maxOccurs="*"/>
</ElementType>
<ElementType name="param">
<description>Parameter to an ActiveX control</description>
<attribute type="name" required="yes"/>
<attribute type="value" required="yes"/>
</ElementType>
<ElementType name="dataset">
<description>Collection of data files to choose from</description>
<attribute type="defaultsrc" required="yes"/>
<element type="datasrc" minOccurs="0" maxOccurs="*"/>
</ElementType>
<ElementType name="datasrc">
<description>Collection of data files to treat as one</description>
<attribute type="clipformat" required="no"/>
<element type="datafile" minOccurs="1" maxOccurs="1"/>
<element type="xreffile" minOccurs="0" maxOccurs="*"/>
</ElementType>
<ElementType name="datafile">
<description>Single data file (may have dependencies)</description>
<attribute type="src" required="yes"/>
</ElementType>
<ElementType name="xreffile">
<description>Externally referenced file</description>
<attribute type="src" required="yes"/>
</ElementType>
</Schema>
|