Advertisement
FrayxRulez

Untitled

Mar 21st, 2015
382
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.43 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <xsd:schema attributeFormDefault="unqualified" elementFormDefault="qualified"
  3. xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  4.  
  5. <!--Branding enum-->
  6. <xsd:simpleType name="colorToken">
  7. <xsd:restriction base="xsd:token">
  8. <xsd:pattern value="[B][a][s][e]" />
  9. <xsd:pattern value="[H][i][g][h][l][i][g][h][t]" />
  10. <xsd:pattern value="[L][o][w][L][i][g][h][t]" />
  11. <xsd:pattern value="[S][e][c][o][n][d][a][r][y][T][e][x][t]" />
  12. <xsd:pattern value="[H][i][g][h][C][o][n][t][r][a][s][t]" />
  13. <xsd:pattern value="[M][u][t][e][d]" />
  14. <xsd:pattern value="[#][A-Fa-f0-9]{6}" />
  15. </xsd:restriction>
  16. </xsd:simpleType>
  17.  
  18. <xsd:simpleType name="marginToken">
  19. <xsd:restriction base="xsd:token">
  20. <xsd:pattern value="[0-9]*,[0-9]*,[0-9]*,[0-9]*" />
  21. <xsd:pattern value="[0-9]*,[0-9]*" />
  22. <xsd:pattern value="[0-9]*" />
  23. </xsd:restriction>
  24. </xsd:simpleType>
  25.  
  26. <xsd:simpleType name="fontToken">
  27. <xsd:restriction base="xsd:string">
  28. <xsd:enumeration value="Normal" />
  29. <xsd:enumeration value="MediumBold" />
  30. <xsd:enumeration value="Large" />
  31. <xsd:enumeration value="LargeBold" />
  32. <xsd:enumeration value="ExtraLarge" />
  33. </xsd:restriction>
  34. </xsd:simpleType>
  35.  
  36. <xsd:simpleType name="orientationToken">
  37. <xsd:restriction base="xsd:token">
  38. <xsd:enumeration value="Vertical" />
  39. <xsd:enumeration value="Horizontal" />
  40. </xsd:restriction>
  41. </xsd:simpleType>
  42.  
  43. <xsd:simpleType name="barcodeToken">
  44. <xsd:restriction base="xsd:token">
  45. <xsd:enumeration value="Code39" />
  46. <xsd:enumeration value="PDF417" />
  47. </xsd:restriction>
  48. </xsd:simpleType>
  49.  
  50. <xsd:element name="BandLayout">
  51. <xsd:complexType>
  52. <xsd:sequence>
  53. <xsd:element minOccurs="0" maxOccurs="1" ref="Flowlist" />
  54. </xsd:sequence>
  55. <xsd:anyAttribute processContents="skip" />
  56. </xsd:complexType>
  57. </xsd:element>
  58.  
  59. <xsd:element name="Flowlist">
  60. <xsd:complexType>
  61. <xsd:choice minOccurs="0" maxOccurs="unbounded">
  62. <xsd:element ref="Flowlist" />
  63. <xsd:element ref="Textbox" />
  64. <xsd:element ref="Iconbox" />
  65. <xsd:element ref="Barcode" />
  66. </xsd:choice>
  67. <xsd:attribute name="Id" use="required" type="xsd:nonNegativeInteger" />
  68. <xsd:attribute name="Peek" use="optional" type="xsd:nonNegativeInteger" />
  69. <xsd:attribute name="Width" use="required" type="xsd:nonNegativeInteger" />
  70. <xsd:attribute name="Height" use="required" type="xsd:nonNegativeInteger" />
  71. <xsd:attribute name="Margin" use="optional" type="marginToken" />
  72. <xsd:attribute name="Orientation" use="required" type="orientationToken" />
  73. <xsd:attribute name="Background" use="optional" type="colorToken" />
  74. <xsd:anyAttribute processContents="skip" />
  75. </xsd:complexType>
  76. </xsd:element>
  77.  
  78. <xsd:element name="Textbox">
  79. <xsd:complexType>
  80. <xsd:attribute name="Id" use="required" type="xsd:nonNegativeInteger" />
  81. <xsd:attribute name="Width" use="required" type="xsd:nonNegativeInteger" />
  82. <xsd:attribute name="Height" use="required" type="xsd:nonNegativeInteger" />
  83. <xsd:attribute name="Margin" use="optional" type="marginToken" />
  84. <xsd:attribute name="Foreground" use="optional" type="colorToken" />
  85. <xsd:attribute name="FontStyle" use="optional" type="fontToken" />
  86. <xsd:anyAttribute processContents="skip" />
  87. </xsd:complexType>
  88. </xsd:element>
  89.  
  90. <xsd:element name="Iconbox">
  91. <xsd:complexType>
  92. <xsd:attribute name="Id" use="required" type="xsd:nonNegativeInteger" />
  93. <xsd:attribute name="Width" use="required" type="xsd:nonNegativeInteger" />
  94. <xsd:attribute name="Height" use="required" type="xsd:nonNegativeInteger" />
  95. <xsd:attribute name="Margin" use="optional" type="marginToken" />
  96. <xsd:attribute name="Foreground" use="required" type="colorToken" />
  97. <xsd:anyAttribute processContents="skip" />
  98. </xsd:complexType>
  99. </xsd:element>
  100.  
  101. <xsd:element name="Barcode">
  102. <xsd:complexType>
  103. <xsd:attribute name="Id" use="required" type="xsd:nonNegativeInteger" />
  104. <xsd:attribute name="Width" use="required" type="xsd:nonNegativeInteger" />
  105. <xsd:attribute name="Height" use="required" type="xsd:nonNegativeInteger" />
  106. <xsd:attribute name="Margin" use="optional" type="marginToken" />
  107. <xsd:attribute name="Type" use="required" type="barcodeToken" />
  108. <xsd:anyAttribute processContents="skip" />
  109. </xsd:complexType>
  110. </xsd:element>
  111. </xsd:schema>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement