home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / WindowsServerTrial / server.iso / sources / install.wim / 2 / Windows / System32 / mscms.dll / 100 / 1 next >
Extensible Markup Language  |  2008-01-19  |  14KB  |  374 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xs:schema 
  3.     xmlns:cdm="http://schemas.microsoft.com/windows/2005/02/color/ColorDeviceModel"
  4.     xmlns:wcs="http://schemas.microsoft.com/windows/2005/02/color/WcsCommonProfileTypes"
  5.     targetNamespace="http://schemas.microsoft.com/windows/2005/02/color/ColorDeviceModel"
  6.     xmlns:xs="http://www.w3.org/2001/XMLSchema"
  7.     elementFormDefault="qualified"
  8.     attributeFormDefault="unqualified"
  9.     blockDefault="#all"
  10.     version="1.0">
  11.  
  12.     <xs:annotation>
  13.         <xs:documentation>
  14.             Color Device Model profile schema.
  15.             Copyright (c) Microsoft Corporation. All rights reserved.
  16.         </xs:documentation>
  17.     </xs:annotation>
  18.  
  19.     <xs:import namespace="http://schemas.microsoft.com/windows/2005/02/color/WcsCommonProfileTypes" />
  20.  
  21.     <xs:complexType name="RGBType">
  22.         <xs:attribute name="R" type="xs:float" use="required"/>
  23.         <xs:attribute name="G" type="xs:float" use="required"/>
  24.         <xs:attribute name="B" type="xs:float" use="required"/>
  25.     </xs:complexType>
  26.  
  27.     <xs:complexType name="NonNegativeRGBType">
  28.         <xs:attribute name="R" type="wcs:NonNegativeFloatType" use="required"/>
  29.         <xs:attribute name="G" type="wcs:NonNegativeFloatType" use="required"/>
  30.         <xs:attribute name="B" type="wcs:NonNegativeFloatType" use="required"/>
  31.     </xs:complexType>
  32.  
  33.     <xs:complexType name="NonNegativeCMYKType">
  34.         <xs:attribute name="C" type="wcs:NonNegativeFloatType" use="required"/>
  35.         <xs:attribute name="M" type="wcs:NonNegativeFloatType" use="required"/>
  36.         <xs:attribute name="Y" type="wcs:NonNegativeFloatType" use="required"/>
  37.         <xs:attribute name="K" type="wcs:NonNegativeFloatType" use="required"/>
  38.     </xs:complexType>
  39.     
  40.     <xs:complexType name="NonNegativeRGBSampleType">
  41.         <xs:sequence>
  42.             <xs:element name="RGB" type="cdm:NonNegativeRGBType"/>
  43.             <xs:element name="CIEXYZ" type="wcs:NonNegativeCIEXYZType"/>
  44.         </xs:sequence>
  45.         <xs:attribute name="Tag" type="xs:string" use="optional"/>
  46.     </xs:complexType>
  47.     
  48.     <xs:complexType name="NonNegativeCMYKSampleType">
  49.         <xs:sequence>
  50.             <xs:element name="CMYK" type="cdm:NonNegativeCMYKType"/>
  51.             <xs:element name="CIEXYZ" type="wcs:NonNegativeCIEXYZType"/>
  52.         </xs:sequence>
  53.         <xs:attribute name="Tag" type="xs:string" use="optional"/>
  54.     </xs:complexType>
  55.     
  56.     <xs:group name="RGBPrimariesGroup">
  57.         <xs:sequence>
  58.             <xs:element name="WhitePrimary" type="wcs:NonNegativeCIEXYZType"/>
  59.             <xs:element name="RedPrimary" type="wcs:NonNegativeCIEXYZType"/>
  60.             <xs:element name="GreenPrimary" type="wcs:NonNegativeCIEXYZType"/>
  61.             <xs:element name="BluePrimary" type="wcs:NonNegativeCIEXYZType"/>
  62.             <xs:element name="BlackPrimary" type="wcs:NonNegativeCIEXYZType"/>
  63.         </xs:sequence>
  64.     </xs:group> 
  65.     
  66.     <xs:complexType name="MeasurementConditionsType">
  67.         <xs:annotation>
  68.             <xs:documentation>
  69.             Optional measurement conditions. 
  70.             We only support CIEXYZ for measurement color space in this version. 
  71.             If the white point value from the measurement conditions is not available, 
  72.             the default processing will use
  73.                 - "D50" for printer and scanners
  74.                 - "D65" for camera and displays.                    
  75.             </xs:documentation>
  76.         </xs:annotation>
  77.         <xs:sequence>
  78.             <xs:element name="ColorSpace" minOccurs="0">
  79.                 <xs:simpleType>
  80.                     <xs:restriction base="xs:string">
  81.                         <xs:enumeration value="CIEXYZ"/>
  82.                     </xs:restriction>
  83.                 </xs:simpleType>    
  84.             </xs:element>
  85.             <xs:choice minOccurs="0">
  86.                 <xs:element name="WhitePoint" type="wcs:NonNegativeCIEXYZType"/>
  87.                 <xs:element name="WhitePointName">
  88.                     <xs:simpleType>
  89.                         <xs:restriction base="xs:string">
  90.                             <xs:enumeration value="D50"/>
  91.                             <xs:enumeration value="D65"/>
  92.                             <xs:enumeration value="A"/>
  93.                             <xs:enumeration value="F2"/>
  94.                         </xs:restriction>
  95.                     </xs:simpleType>
  96.                 </xs:element>
  97.             </xs:choice>
  98.             <xs:element name="Geometry" minOccurs="0">
  99.                 <xs:simpleType>
  100.                     <xs:restriction base="xs:string">
  101.                         <xs:enumeration value="0/45"/>
  102.                         <xs:enumeration value="0/diffuse"/>
  103.                         <xs:enumeration value="diffuse/0"/>
  104.                         <xs:enumeration value="direct"/>
  105.                     </xs:restriction>
  106.                 </xs:simpleType>   
  107.             </xs:element>
  108.             <xs:element name="ApertureSize" type="xs:int" minOccurs="0"/>
  109.         </xs:sequence>
  110.     </xs:complexType>
  111.     
  112.     <xs:complexType name="DisplayMeasurementType">
  113.         <xs:sequence>
  114.             <xs:group ref="cdm:RGBPrimariesGroup"/>
  115.             <xs:element name="GrayRamp">
  116.                 <xs:complexType>
  117.                     <xs:sequence>
  118.                         <xs:element name="Sample" type="cdm:NonNegativeRGBSampleType" maxOccurs="4096"/> 
  119.                     </xs:sequence>
  120.                 </xs:complexType>
  121.             </xs:element>
  122.             <xs:element name="RedRamp">
  123.                 <xs:complexType>
  124.                     <xs:sequence>
  125.                         <xs:element name="Sample" type="cdm:NonNegativeRGBSampleType" maxOccurs="4096"/> 
  126.                     </xs:sequence>
  127.                 </xs:complexType>
  128.             </xs:element>
  129.             <xs:element name="GreenRamp">
  130.                 <xs:complexType>
  131.                     <xs:sequence>
  132.                         <xs:element name="Sample" type="cdm:NonNegativeRGBSampleType" maxOccurs="4096"/> 
  133.                     </xs:sequence>
  134.                 </xs:complexType>
  135.             </xs:element>
  136.             <xs:element name="BlueRamp">
  137.                 <xs:complexType>
  138.                     <xs:sequence>
  139.                         <xs:element name="Sample" type="cdm:NonNegativeRGBSampleType" maxOccurs="4096"/> 
  140.                     </xs:sequence>
  141.                 </xs:complexType>
  142.             </xs:element>
  143.         </xs:sequence>
  144.         <xs:attribute name="TimeStamp" type="xs:dateTime"/>
  145.     </xs:complexType>
  146.  
  147.     <xs:complexType name="RGBProjectorMeasurementType">
  148.         <xs:sequence>
  149.             <xs:group ref="cdm:RGBPrimariesGroup"/>
  150.             <xs:element name="ColorSamples">
  151.                 <xs:complexType>
  152.                     <xs:sequence>
  153.                         <xs:element name="Sample" type="cdm:NonNegativeRGBSampleType" maxOccurs="unbounded"/> 
  154.                     </xs:sequence>
  155.                 </xs:complexType>
  156.             </xs:element>
  157.         </xs:sequence>
  158.         <xs:attribute name="TimeStamp" type="xs:dateTime"/>
  159.     </xs:complexType>
  160.  
  161.     <xs:simpleType name="OneBasedIndex">
  162.         <xs:restriction base="xs:int">
  163.             <xs:minInclusive value="1"/>
  164.         </xs:restriction>
  165.     </xs:simpleType>
  166.         
  167.     <xs:complexType name="RGBCaptureMeasurementType">
  168.         <xs:sequence>
  169.             <xs:element name="PrimaryIndex">
  170.                 <xs:complexType>
  171.                     <xs:all>
  172.                         <xs:element name="White" type="cdm:OneBasedIndex"/>
  173.                         <xs:element name="Black" type="cdm:OneBasedIndex" minOccurs="0"/>
  174.                         <xs:element name="Red" type="cdm:OneBasedIndex" minOccurs="0"/>
  175.                         <xs:element name="Green" type="cdm:OneBasedIndex" minOccurs="0"/>
  176.                         <xs:element name="Blue" type="cdm:OneBasedIndex" minOccurs="0"/>
  177.                         <xs:element name="Cyan" type="cdm:OneBasedIndex" minOccurs="0"/>
  178.                         <xs:element name="Magenta" type="cdm:OneBasedIndex" minOccurs="0"/>
  179.                         <xs:element name="Yellow" type="cdm:OneBasedIndex" minOccurs="0"/>
  180.                     </xs:all>
  181.                 </xs:complexType>
  182.             </xs:element>
  183.             <xs:element name="NeutralIndices">
  184.                 <xs:simpleType>
  185.                     <xs:list itemType="cdm:OneBasedIndex"/>
  186.                 </xs:simpleType>
  187.             </xs:element>
  188.             <xs:element name="ColorSamples">
  189.                 <xs:complexType>
  190.                     <xs:sequence>
  191.                         <xs:element name="Sample" type="cdm:NonNegativeRGBSampleType" maxOccurs="unbounded"/> 
  192.                     </xs:sequence>
  193.                 </xs:complexType>
  194.             </xs:element>
  195.         </xs:sequence>
  196.         <xs:attribute name="TimeStamp" type="xs:dateTime"/>
  197.     </xs:complexType>
  198.  
  199.     <xs:complexType name="RGBPrinterMeasurementType">
  200.         <xs:sequence>
  201.             <xs:element name="ColorCube">
  202.                 <xs:complexType>
  203.                     <xs:sequence>
  204.                         <xs:element name="Sample" type="cdm:NonNegativeRGBSampleType" maxOccurs="unbounded"/> 
  205.                     </xs:sequence>
  206.                 </xs:complexType>
  207.             </xs:element>           
  208.         </xs:sequence>
  209.         <xs:attribute name="TimeStamp" type="xs:dateTime"/>
  210.     </xs:complexType>
  211.     
  212.     <xs:complexType name="CMYKPrinterMeasurementType">
  213.         <xs:sequence>
  214.             <xs:element name="ColorCube">
  215.                 <xs:complexType>
  216.                     <xs:sequence>
  217.                         <xs:element name="Sample" type="cdm:NonNegativeCMYKSampleType" maxOccurs="unbounded"/> 
  218.                     </xs:sequence>
  219.                 </xs:complexType>
  220.             </xs:element>           
  221.         </xs:sequence>
  222.         <xs:attribute name="TimeStamp" type="xs:dateTime"/>
  223.     </xs:complexType>
  224.  
  225.     <xs:complexType name="GammaType">
  226.         <xs:attribute name="value" type="wcs:NonNegativeFloatType" use="required"/>
  227.     </xs:complexType>
  228.     
  229.     <xs:complexType name="GammaOffsetGainType">
  230.         <xs:attribute name="Gamma" type="wcs:NonNegativeFloatType" use="required"/>
  231.         <xs:attribute name="Offset" type="wcs:NonNegativeFloatType" use="required"/>
  232.         <xs:attribute name="Gain" type="wcs:NonNegativeFloatType" use="required"/>
  233.     </xs:complexType>
  234.  
  235.     <xs:complexType name="GammaOffsetGainLinearGainType">
  236.         <xs:attribute name="Gamma" type="wcs:NonNegativeFloatType" use="required"/>
  237.         <xs:attribute name="Offset" type="wcs:NonNegativeFloatType" use="required"/>
  238.         <xs:attribute name="Gain" type="wcs:NonNegativeFloatType" use="required"/>
  239.         <xs:attribute name="LinearGain" type="wcs:NonNegativeFloatType" use="required"/>
  240.         <xs:attribute name="TransitionPoint" type="wcs:NonNegativeFloatType" use="required"/>
  241.     </xs:complexType>
  242.     
  243.     <xs:simpleType name="FloatList">
  244.         <xs:list itemType="xs:float"/>
  245.     </xs:simpleType>
  246.  
  247.     <xs:complexType name="OneDimensionLutType">
  248.         <xs:sequence>
  249.             <xs:element name="Input" type="cdm:FloatList"/>
  250.             <xs:element name="Output" type="cdm:FloatList"/>
  251.         </xs:sequence>
  252.     </xs:complexType>
  253.  
  254.     <xs:complexType name="HDRToneResponseCurvesType">
  255.         <xs:sequence>
  256.             <xs:element name="RedTRC" type="cdm:OneDimensionLutType"/>
  257.             <xs:element name="GreenTRC" type="cdm:OneDimensionLutType"/>
  258.             <xs:element name="BlueTRC" type="cdm:OneDimensionLutType"/>
  259.         </xs:sequence>
  260.         <xs:attribute name="TRCLength" use="required">
  261.             <xs:simpleType>
  262.                 <xs:restriction base="xs:int">
  263.                     <xs:minInclusive value="0" />
  264.                 </xs:restriction>
  265.             </xs:simpleType>
  266.         </xs:attribute>
  267.     </xs:complexType>
  268.     
  269.     <xs:complexType name="GamutBoundarySamplesType">
  270.         <xs:sequence>
  271.             <xs:element name="RGB" type="cdm:RGBType" maxOccurs="unbounded"/>
  272.         </xs:sequence>
  273.     </xs:complexType>
  274.     
  275.     <xs:complexType name="RGBVirtualMeasurementType">
  276.         <xs:sequence>
  277.             <xs:element name="MaxColorantUsed" type="xs:float"/>
  278.             <xs:element name="MinColorantUsed" type="xs:float"/>
  279.             <xs:group ref="cdm:RGBPrimariesGroup"/>
  280.             <xs:choice>
  281.                 <xs:element name="Gamma" type="cdm:GammaType"/>
  282.                 <xs:element name="GammaOffsetGain" type="cdm:GammaOffsetGainType"/>
  283.                 <xs:element name="GammaOffsetGainLinearGain" type="cdm:GammaOffsetGainLinearGainType"/>
  284.                 <xs:element name="HDRToneResponseCurves" type="cdm:HDRToneResponseCurvesType"/>
  285.             </xs:choice>
  286.             <xs:element name="GamutBoundarySamples" type="cdm:GamutBoundarySamplesType" minOccurs="0"/>
  287.         </xs:sequence>
  288.         <xs:attribute name="TimeStamp" type="xs:dateTime"/>
  289.     </xs:complexType>
  290.     
  291.     <xs:element name="ColorDeviceModel">
  292.         <xs:complexType>
  293.             <xs:sequence>
  294.                 <xs:element name="ProfileName" type="wcs:MultiLocalizedTextType"/>
  295.                 <xs:element name="Description" type="wcs:MultiLocalizedTextType" minOccurs="0"/>
  296.                 <xs:element name="Author" type="wcs:MultiLocalizedTextType" minOccurs="0"/>
  297.                 <xs:element name="MeasurementConditions" type="cdm:MeasurementConditionsType" minOccurs="0"/>
  298.                 <xs:element name="SelfLuminous" type="xs:boolean" />
  299.                 <xs:element name="MaxColorant" type="xs:float"/>
  300.                 <xs:element name="MinColorant" type="xs:float"/>
  301.                 <xs:choice>
  302.                     <xs:element name="CRTDevice">
  303.                         <xs:complexType>
  304.                             <xs:sequence>
  305.                                 <xs:element name="MeasurementData" type="cdm:DisplayMeasurementType"/>
  306.                             </xs:sequence>
  307.                         </xs:complexType>
  308.                     </xs:element>
  309.                     <xs:element name="LCDDevice">
  310.                         <xs:complexType>
  311.                             <xs:sequence>
  312.                                 <xs:element name="MeasurementData" type="cdm:DisplayMeasurementType"/>
  313.                             </xs:sequence>
  314.                         </xs:complexType>
  315.                     </xs:element>
  316.                     <xs:element name="RGBProjectorDevice">
  317.                         <xs:complexType>
  318.                             <xs:sequence>
  319.                                 <xs:element name="MeasurementData" type="cdm:RGBProjectorMeasurementType"/>
  320.                             </xs:sequence>
  321.                         </xs:complexType>
  322.                     </xs:element>
  323.                     <xs:element name="ScannerDevice">
  324.                         <xs:complexType>
  325.                             <xs:sequence>
  326.                                 <xs:element name="MeasurementData" type="cdm:RGBCaptureMeasurementType"/>
  327.                             </xs:sequence>
  328.                         </xs:complexType>
  329.                     </xs:element>
  330.                     <xs:element name="CameraDevice">
  331.                         <xs:complexType>
  332.                             <xs:sequence>
  333.                                 <xs:element name="MeasurementData" type="cdm:RGBCaptureMeasurementType"/>
  334.                             </xs:sequence>
  335.                         </xs:complexType>
  336.                     </xs:element>
  337.                     <xs:element name="RGBPrinterDevice">
  338.                         <xs:complexType>
  339.                             <xs:sequence>
  340.                                 <xs:element name="MeasurementData" type="cdm:RGBPrinterMeasurementType"/>
  341.                             </xs:sequence>
  342.                         </xs:complexType>
  343.                     </xs:element>
  344.                     <xs:element name="CMYKPrinterDevice">
  345.                         <xs:complexType>
  346.                             <xs:sequence>
  347.                                 <xs:element name="MeasurementData" type="cdm:CMYKPrinterMeasurementType"/>
  348.                             </xs:sequence>
  349.                         </xs:complexType>
  350.                     </xs:element>
  351.                     <xs:element name="RGBVirtualDevice">
  352.                         <xs:complexType>
  353.                             <xs:sequence>
  354.                                 <xs:element name="MeasurementData" type="cdm:RGBVirtualMeasurementType"/>
  355.                             </xs:sequence>
  356.                         </xs:complexType>
  357.                     </xs:element>
  358.                 </xs:choice>
  359.                 <xs:element name="PlugInDevice" minOccurs="0">
  360.                     <xs:complexType>
  361.                         <xs:sequence>
  362.                             <xs:any namespace="##other" processContents="skip"
  363.                                 minOccurs="0" maxOccurs="unbounded" />
  364.                         </xs:sequence>
  365.                         <xs:attribute name="GUID" type="wcs:GUIDType" use="required"/>
  366.                     </xs:complexType>
  367.                 </xs:element>
  368.             </xs:sequence>
  369.             <xs:attribute name="ID" type="xs:string" use="optional" />
  370.         </xs:complexType>
  371.     </xs:element>
  372. </xs:schema>
  373.  
  374.