WBMM> Printer MIB into XSD sample

WBMM> Printer MIB into XSD sample

WBMM> Printer MIB into XSD sample

McDonald, Ira imcdonald at sharplabs.com
Wed Apr 16 12:02:18 EDT 2003


Hi folks,                                      Wednesday (16 April 2003)

Here's a sample translation of part of the Printer MIB (done by hand)
into PWG-style XML.

Cheers,
- Ira McDonald
  High North Inc

--------------------

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="http://www.pwg.org/schemas/sm/0.93/"
xmlns="http://www.pwg.org/schemas/sm/0.93/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" version="0.93">
  <xsd:annotation>
    <xsd:documentation xml:lang="en">PWG Prt Object schema
    Copyright 2002, IEEE Industry Standards and Technology
    Organization/Printer Working Group.
    All rights reserved
    </xsd:documentation>
  </xsd:annotation>
  <xsd:annotation>
    <xsd:documentation>NOTE: To use this schema you MUST include
    PrtGeneral.xsd, PrtCover.xsd, PrtLocalization.xsd,
    PrtStorageRef.xsd, PrtDeviceRef.xsd, PrtInput.xsd, PrtOutput.xsd,
    PrtMarker.xsd, PrtMarkerSupplies.xsd, PrtMarkerColorant.xsd,
    PrtMediaPath.xsd, PrtChannel.xsd, PrtInterpreter.xsd,
    PrtConsoleDisplayBuffer.xsd, PrtConsoleLight.xsd, and PrtAlert.xsd
    </xsd:documentation>
  </xsd:annotation>
  <xsd:annotation>
    <xsd:documentation>Prt Element definition
    </xsd:documentation>
  </xsd:annotation>
  <xsd:complexType name="Prt">
    <xsd:sequence>
      <xsd:element ref="PrtGeneral" minOccurs="1"/>
      <xsd:element ref="PrtCover" minOccurs="0"/>
      <xsd:element ref="PrtLocalization" minOccurs="0"/>
      <xsd:element ref="PrtStorageRef" minOccurs="0"/>
      <xsd:element ref="PrtDeviceRef" minOccurs="0"/>
      <xsd:element ref="PrtInput" minOccurs="0"/>
      <xsd:element ref="PrtOutput" minOccurs="0"/>
      <xsd:element ref="PrtMarker" minOccurs="0"/>
      <xsd:element ref="PrtMarkerSupplies" minOccurs="0"/>
      <xsd:element ref="PrtMarkerColorant" minOccurs="0"/>
      <xsd:element ref="PrtMediaPath" minOccurs="0"/>
      <xsd:element ref="PrtChannel" minOccurs="0"/>
      <xsd:element ref="PrtInterpreter" minOccurs="0"/>
      <xsd:element ref="PrtConsoleDisplayBuffer" minOccurs="0"/>
      <xsd:element ref="PrtConsoleLight" minOccurs="0"/>
      <xsd:element ref="PrtAlert" minOccurs="0"/>
    </xsd:sequence>
  </xsd:complexType>
  <xsd:element name="Prt" type="Prt"/>
</xsd:schema>



<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="http://www.pwg.org/schemas/sm/0.93/"
xmlns="http://www.pwg.org/schemas/sm/0.93/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" version="0.93">
  <xsd:annotation>
    <xsd:documentation xml:lang="en">PWG Job State Element schema
Copyright 2002, IEEE Industry Standards and Technology
Organization/Printer Working Group.
All rights reserved</xsd:documentation>
  </xsd:annotation>
  <xsd:annotation>
    <xsd:documentation>NOTE: To use this schema you MUST include
    PwgPrtCommon.xsd
    </xsd:documentation>
  </xsd:annotation>
  <xsd:annotation>
    <xsd:documentation>PrtGeneral Element definition
    </xsd:documentation>
  </xsd:annotation>
  <xsd:complexType name="PrtGeneral">
    <xsd:sequence>
      <xsd:element ref="PrtGeneralConfigChanges" minOccurs="1"/>
      <xsd:element ref="PrtGeneralCurrentLocalization" minOccurs="1"/>
      <xsd:element ref="PrtGeneralReset" minOccurs="1"/>
      <xsd:element ref="PrtGeneralCurrentOperator" minOccurs="1"/>
      <xsd:element ref="PrtGeneralServicePerson" minOccurs="1"/>
      <xsd:element ref="PrtInputDefaultIndex" minOccurs="1"/>
      <xsd:element ref="PrtOutputDefaultIndex" minOccurs="1"/>
      <xsd:element ref="PrtMarkerDefaultIndex" minOccurs="1"/>
      <xsd:element ref="PrtMediaPathDefaultIndex" minOccurs="1"/>
      <xsd:element ref="PrtConsoleLocalization" minOccurs="1"/>
      <xsd:element ref="PrtConsoleNumberOfDisplayLines" minOccurs="1"/>
      <xsd:element ref="PrtConsoleNumberOfDisplayChars" minOccurs="1"/>
      <xsd:element ref="PrtConsoleDisable" minOccurs="1"/>
      <xsd:element ref="PrtAuxiliarySheetStartupPage" minOccurs="1"/>
      <xsd:element ref="PrtAuxiliarySheetBannerPage" minOccurs="1"/>
      <xsd:element ref="PrtGeneralPrinterName" minOccurs="1"/>
      <xsd:element ref="PrtGeneralSerialNumber" minOccurs="1"/>
      <xsd:element ref="PrtAlertCriticalEvents" minOccurs="1"/>
      <xsd:element ref="PrtAlertAllEvents" minOccurs="1"/>
    </xsd:sequence>
  </xsd:complexType>
  <xsd:element name="PrtGeneral" type="PrtGeneral"/>
</xsd:schema>



More information about the Wims mailing list