klish.xsd 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://clish.sourceforge.net/XMLSchema" targetNamespace="http://clish.sourceforge.net/XMLSchema">
  3. <xs:annotation>
  4. <xs:appinfo>XML schema for klish configuration files</xs:appinfo>
  5. <xs:documentation xml:lang="en">
  6. The klish utility uses XML files for configuration. This schema
  7. allows to validate klish XML files. To check XML files use the
  8. following command:
  9. 'xmllint --schema /path/to/klish.xsd --noout *.xml'
  10. </xs:documentation>
  11. <xs:documentation xml:lang="ru">
  12. Утилита klish использует формат XML для своих конфигурационных
  13. файлов. Схема позволяет проверить эти конфигурационные XML файлы
  14. на правильность. Следующая команда выполнит проверку:
  15. 'xmllint --schema /path/to/klish.xsd --noout *.xml'
  16. </xs:documentation>
  17. </xs:annotation>
  18. <xs:element name="KLISH" type="klish_t"/>
  19. <xs:element name="VIEW" type="view_t"/>
  20. <xs:element name="COMMAND" type="command_t"/>
  21. <xs:element name="FILTER" type="command_t"/>
  22. <xs:element name="STARTUP" type="startup_t"/>
  23. <xs:element name="ACTION" type="action_t"/>
  24. <xs:element name="OVERVIEW" type="overview_t"/>
  25. <xs:element name="DETAIL" type="detail_t"/>
  26. <xs:element name="PTYPE" type="ptype_t"/>
  27. <xs:element name="PARAM" type="param_t"/>
  28. <xs:element name="NAMESPACE" type="namespace_t"/>
  29. <xs:element name="VAR" type="var_t"/>
  30. <xs:element name="WATCHDOG" type="wdog_t"/>
  31. <xs:element name="HOTKEY" type="hotkey_t"/>
  32. <xs:element name="PLUGIN" type="plugin_t"/>
  33. <xs:element name="HOOK" type="hook_t"/>
  34. <xs:complexType name="klish_t">
  35. <xs:annotation>
  36. <xs:documentation xml:lang="en">
  37. 'KLISH' is the top level container. Any object (command,
  38. type, var) which are defined within this tag are global
  39. in scope i.e. it is visible from all 'VIEW's.
  40. </xs:documentation>
  41. <xs:documentation xml:lang="ru">
  42. Тег 'KLISH' - контейнер верхнего уровня. Все остальные
  43. теги должны быть вложенными. Любой объект (команда,
  44. тип, переменная т.д.), заданный внутри этого тега,
  45. считается глобальным, т.е. видимым их любых 'VIEW".
  46. </xs:documentation>
  47. </xs:annotation>
  48. <xs:sequence>
  49. <xs:element ref="OVERVIEW" minOccurs="0"/>
  50. <xs:element ref="STARTUP" minOccurs="0"/>
  51. <xs:element ref="PTYPE" minOccurs="0" maxOccurs="unbounded"/>
  52. <xs:element ref="COMMAND" minOccurs="0" maxOccurs="unbounded"/>
  53. <xs:element ref="VIEW" minOccurs="0" maxOccurs="unbounded"/>
  54. <xs:element ref="NAMESPACE" minOccurs="0" maxOccurs="unbounded"/>
  55. <xs:element ref="VAR" minOccurs="0" maxOccurs="unbounded"/>
  56. <xs:element ref="WATCHDOG" minOccurs="0" maxOccurs="1"/>
  57. <xs:element ref="HOTKEY" minOccurs="0" maxOccurs="unbounded"/>
  58. <xs:element ref="PLUGIN" minOccurs="0" maxOccurs="unbounded"/>
  59. <xs:element ref="HOOK" minOccurs="0" maxOccurs="unbounded"/>
  60. </xs:sequence>
  61. </xs:complexType>
  62. <!--
  63. ***********************************************************
  64. * Identify some attribute groups
  65. ***********************************************************
  66. -->
  67. <xs:attributeGroup name="menu_item_g">
  68. <xs:attribute name="name" type="xs:string" use="required"/>
  69. <xs:attribute name="help" type="xs:string" use="required"/>
  70. </xs:attributeGroup>
  71. <!--
  72. *******************************************************
  73. * <PTYPE> is used to define the syntax for a parameter type.
  74. *
  75. * name - a textual name for this type. This name can be used to
  76. * reference this type within a <PARAM? ptype attribute.
  77. *
  78. * help - a textual string which describes the syntax of this type.
  79. * When a parameter is filled out incorrectly on the CLI, this
  80. * text will be used to prompt the user to fill out the value
  81. * correctly.
  82. *
  83. * pattern - A regular expression which defines the syntax of the type.
  84. *
  85. * method - The means by which the pattern is interpreted.
  86. *
  87. * regexp [default] - A POSIX regular expression.
  88. *
  89. * integer - A numeric definition "min..max"
  90. *
  91. * select - A list of possible values.
  92. * The syntax of the string is of the form:
  93. * "valueOne(ONE) valueTwo(TWO) valueThree(THREE)"
  94. * where the text before the parethesis defines the syntax
  95. * that the user must use, and the value within the parenthesis
  96. * is the result expanded as a parameter value.
  97. *
  98. * code - The PTYPE check is handled by user-defined code.
  99. * The code can be defined by builtin func or ACTION.
  100. *
  101. * preprocess - An optional directive to process the value entered before
  102. * validating it. This can greatly simplify the regular expressions
  103. * needed to match case insensitive values.
  104. *
  105. * none [default] - do nothing
  106. *
  107. * toupper - before validation convert to uppercase.
  108. *
  109. * tolower - before validation convert to lowercase.
  110. *
  111. ********************************************************
  112. -->
  113. <xs:simpleType name="ptype_method_e">
  114. <xs:restriction base="xs:string">
  115. <xs:enumeration value="regexp"/>
  116. <xs:enumeration value="integer"/>
  117. <xs:enumeration value="unsignedInteger"/>
  118. <xs:enumeration value="select"/>
  119. <xs:enumeration value="choice"/>
  120. <xs:enumeration value="subcommand"/>
  121. <xs:enumeration value="code"/>
  122. </xs:restriction>
  123. </xs:simpleType>
  124. <xs:simpleType name="ptype_preprocess_e">
  125. <xs:restriction base="xs:string">
  126. <xs:enumeration value="none"/>
  127. <xs:enumeration value="toupper"/>
  128. <xs:enumeration value="tolower"/>
  129. </xs:restriction>
  130. </xs:simpleType>
  131. <xs:complexType name="ptype_t">
  132. <xs:sequence>
  133. <xs:element ref="ACTION" minOccurs="0"/>
  134. </xs:sequence>
  135. <xs:attributeGroup ref="menu_item_g"/>
  136. <xs:attribute name="pattern" type="xs:string"/>
  137. <xs:attribute name="method" type="ptype_method_e" use="optional" default="regexp"/>
  138. <xs:attribute name="preprocess" type="ptype_preprocess_e" use="optional" default="none"/>
  139. </xs:complexType>
  140. <!--
  141. *******************************************************
  142. * <VIEW> defines the contents of a specific CLI view.
  143. *
  144. * name - a textual name for the view
  145. *
  146. * prompt - a textual definition of the prompt to be
  147. * used whilst in this view.
  148. * NB. The prompt may contain environment
  149. * or dynamic variables which are expanded
  150. * before display.
  151. *
  152. * [depth] - a depth of nested view (uses for config).
  153. *
  154. * [restore] - restore the depth or view of commands
  155. * contained by this view
  156. *
  157. * [access] - access rights
  158. *
  159. ********************************************************
  160. -->
  161. <xs:simpleType name="restore_t">
  162. <xs:restriction base="xs:string">
  163. <xs:enumeration value="none"/>
  164. <xs:enumeration value="depth"/>
  165. <xs:enumeration value="view"/>
  166. </xs:restriction>
  167. </xs:simpleType>
  168. <xs:complexType name="view_t">
  169. <xs:sequence>
  170. <xs:element ref="NAMESPACE" minOccurs="0" maxOccurs="unbounded"/>
  171. <xs:element ref="COMMAND" minOccurs="0" maxOccurs="unbounded"/>
  172. <xs:element ref="HOTKEY" minOccurs="0" maxOccurs="unbounded"/>
  173. </xs:sequence>
  174. <xs:attribute name="name" type="xs:string" use="required"/>
  175. <xs:attribute name="prompt" type="xs:string" use="optional"/>
  176. <xs:attribute name="depth" type="xs:string" use="optional" default="0"/>
  177. <xs:attribute name="restore" type="restore_t" use="optional" default="none"/>
  178. <xs:attribute name="access" type="xs:string" use="optional"/>
  179. </xs:complexType>
  180. <!--
  181. *******************************************************
  182. * <STARTUP> is used to define what happens when the CLI
  183. * is started. Any text held in a <DETAIL> sub-element will
  184. * be used as banner text, then any defined <ACTION> will be
  185. * executed. This action may provide Message Of The Day (MOTD)
  186. * type behaviour.
  187. *
  188. * view - defines the view which will be transitioned to, on
  189. * successful execution of any <ACTION> tag.
  190. *
  191. * [viewid] - defined the new value of the ${VIEWID} variable to
  192. * be used if a transition to a new view occurs.
  193. *
  194. * [default_shebang] - The default shebang for all commands.
  195. *
  196. * [timeout] - The idle timeout. The clish will exit if user
  197. * have not press any key while this timeout.
  198. *
  199. * [lock] - The same as lock for COMMAND tag.
  200. *
  201. * [interrupt] - The same as interrupt for COMMAND tag.
  202. *
  203. * [default_plugin] - Use (or don't use) default plugin.
  204. * It can be true or false.
  205. ********************************************************
  206. -->
  207. <xs:complexType name="startup_t">
  208. <xs:sequence>
  209. <xs:element ref="DETAIL" minOccurs="0"/>
  210. <xs:element ref="ACTION" minOccurs="0"/>
  211. </xs:sequence>
  212. <xs:attribute name="view" type="xs:string" use="required"/>
  213. <xs:attribute name="viewid" type="xs:string" use="optional"/>
  214. <xs:attribute name="default_shebang" type="xs:string" use="optional"/>
  215. <xs:attribute name="timeout" type="xs:string" use="optional"/>
  216. <xs:attribute name="default_plugin" type="xs:boolean" use="optional" default="true"/>
  217. </xs:complexType>
  218. <!--
  219. *******************************************************
  220. * <COMMAND> is used to define a command within the CLI.
  221. *
  222. * name - a textual name for this command. (This may contain
  223. * spaces e.g. "display acl")
  224. *
  225. * help - a textual string which describes the purpose of the
  226. * command.
  227. *
  228. * [view] - defines the view which will be transitioned to, on
  229. * successful execution of any <ACTION> tag. By default the
  230. * current view stays in scope.
  231. *
  232. * [viewid] - defined the new value of the ${VIEWID} variable to
  233. * be used if a transition to a new view occurs. By default
  234. * the viewid will retain it's current value.
  235. *
  236. * [access] - defines the user group/level to which execution of this
  237. * command is restricted. By default there is no restriction.
  238. * The exact interpretation of this field is dependant on the
  239. * client of libclish but for example the clish and tclish
  240. * applications map this to the UNIX user groups.
  241. *
  242. * [escape_chars] - defines the characters which will be escaped (e.g. \$) before
  243. * being expanded as a variable. By default the following
  244. * characters will be escaped `|$<>&()#
  245. *
  246. * [args] - defines a parameter name to be used to gather the rest of the
  247. * command line after the formally defined parameters
  248. * (PARAM elements). The formatting of this parameter is a raw
  249. * string containing as many words as there are on the rest of the
  250. * command line.
  251. *
  252. * [args_help] - a textual string which describes the purpose of the 'args'
  253. * parameter. If the "args" attribute is given then this MUST be
  254. * given also.
  255. *
  256. ********************************************************
  257. -->
  258. <xs:complexType name="command_t">
  259. <xs:sequence>
  260. <xs:element ref="DETAIL" minOccurs="0"/>
  261. <xs:element ref="PARAM" minOccurs="0" maxOccurs="unbounded"/>
  262. <xs:element ref="ACTION" minOccurs="0"/>
  263. </xs:sequence>
  264. <xs:attributeGroup ref="menu_item_g"/>
  265. <xs:attribute name="ref" type="xs:string" use="optional"/>
  266. <xs:attribute name="view" type="xs:string" use="optional"/>
  267. <xs:attribute name="viewid" type="xs:string" use="optional"/>
  268. <xs:attribute name="access" type="xs:string" use="optional"/>
  269. <xs:attribute name="args" type="xs:string" use="optional"/>
  270. <xs:attribute name="args_help" type="xs:string" use="optional"/>
  271. <xs:attribute name="escape_chars" type="xs:string" use="optional"/>
  272. </xs:complexType>
  273. <!--
  274. *******************************************************
  275. * <PARAM> This tag is used to define a parameter for a command.
  276. *
  277. * name - a textual name for this parameter.
  278. *
  279. * help - a textual string which describes the purpose of the
  280. * parameter.
  281. *
  282. * ptype - Reference to a PTYPE name. This parameter will be
  283. * validated against the syntax specified for that type.
  284. * The special value of "" indicates the parameter is a boolean flag.
  285. * The verbatim presence of the texual name on the command line
  286. * simply controls the conditional variable expansion for this
  287. * parameter.
  288. *
  289. * [mode] - Parameter mode. It can be "common", "switch" or "subcommand".
  290. *
  291. * [prefix] - defines the prefix for an optional parameter. A prefix
  292. * with this value on the command line will signify the presence
  293. * of an additional argument which will be validated as the
  294. * value of this parameter.
  295. *
  296. * [optional] - Specify whether parameter is optional. The allowed values
  297. * is "true" or "false". It's false by default.
  298. *
  299. * [order] - Used only together with "optional=true" field.
  300. * If order="true" then user can't enter previously declared
  301. * optional parameters after current validated parameter.
  302. * The allowed values is "true" or "false". It's false by default.
  303. *
  304. * [default] - defines a default value for a parameter. Any parameters
  305. * at the end of command line which have default values need
  306. * not explicitly be entered.
  307. *
  308. * [value] - defines the user's value for subcommand. If this option
  309. * is defined the entered parameter will be compared to this
  310. * value instead the "name" field. If this field is defined
  311. * the mode of PARAM will be forced to "subcommand". The
  312. * feature is implemented to support subcommands with the
  313. * same names.
  314. *
  315. * [hidden] - define the visibility of the parameter while ${__line}
  316. * and ${__params} auto variables expanding. The allowed values
  317. * is "true" and "false".
  318. *
  319. * [test] - define the condition (see the description of 'test'
  320. * utility) to process this parameter.
  321. *
  322. * [access] - access rights
  323. *
  324. ********************************************************
  325. -->
  326. <xs:simpleType name="param_mode_t">
  327. <xs:restriction base="xs:string">
  328. <xs:enumeration value="common"/>
  329. <xs:enumeration value="switch"/>
  330. <xs:enumeration value="subcommand"/>
  331. </xs:restriction>
  332. </xs:simpleType>
  333. <xs:complexType name="param_t">
  334. <xs:sequence>
  335. <xs:element ref="PARAM" minOccurs="0" maxOccurs="unbounded"/>
  336. </xs:sequence>
  337. <xs:attributeGroup ref="menu_item_g"/>
  338. <xs:attribute name="ptype" type="xs:string" use="required"/>
  339. <xs:attribute name="default" type="xs:string" use="optional"/>
  340. <xs:attribute name="prefix" type="xs:string" use="optional"/>
  341. <xs:attribute name="mode" type="param_mode_t" use="optional" default="common"/>
  342. <xs:attribute name="optional" type="xs:boolean" use="optional" default="false"/>
  343. <xs:attribute name="order" type="xs:boolean" use="optional" default="false"/>
  344. <xs:attribute name="value" type="xs:string" use="optional"/>
  345. <xs:attribute name="hidden" type="xs:boolean" use="optional" default="false"/>
  346. <xs:attribute name="test" type="xs:string" use="optional"/>
  347. <xs:attribute name="completion" type="xs:string" use="optional"/>
  348. <xs:attribute name="access" type="xs:string" use="optional"/>
  349. </xs:complexType>
  350. <!--
  351. ********************************************************
  352. * <ACTION> specifies the action to be taken for
  353. * a command.
  354. *
  355. * The textual contents of the tag are variable expanded
  356. * (environment, dynamic and parameter) the the resulting
  357. * text is interpreted by the client's script interpreter.
  358. *
  359. * In addition the optional 'builtin' attribute can specify
  360. * the name of an internal command which will be invoked
  361. * instead of the client's script handler.
  362. *
  363. * NB. for security reasons any special shell characters
  364. * (e.g. $|<>`) are escaped before evaluation.
  365. *
  366. * [builtin] - specify the name of an internally registered
  367. * function. The content of the ACTION tag is
  368. * taken as the arguments to this builtin function.
  369. *
  370. * [shebang] - specify the programm to execute the action
  371. * script.
  372. *
  373. * [lock="true/false"] - the boolean field that specify to lock lockfile while
  374. * action execution or not. Default is true. In a case the
  375. * LEGACY macro is specified while klish building the
  376. * value of this field is inherited from COMMAND tag (if
  377. * lock is not specified in ACTION).
  378. *
  379. * [interrupt="true/false"] - the boolean field that specify that action can be
  380. * be interrupted by Ctrl^C. Default is false. In a case the
  381. * LEGACY macro is specified while klish building the
  382. * value of this field is inherited from COMMAND tag (if
  383. * attr is not specified in ACTION).
  384. *
  385. * [interactive="true/false"] - specify is action interactive. The
  386. * interactive ACTIONs can't be used with piped ("|") output.
  387. *
  388. ********************************************************
  389. -->
  390. <xs:complexType name="action_t">
  391. <xs:simpleContent>
  392. <xs:extension base="xs:string">
  393. <xs:attribute name="builtin" type="xs:string" use="optional"/>
  394. <xs:attribute name="shebang" type="xs:string" use="optional"/>
  395. <xs:attribute name="lock" type="xs:boolean" use="optional" default="true"/>
  396. <xs:attribute name="interrupt" type="xs:boolean" use="optional" default="false"/>
  397. <xs:attribute name="interactive" type="xs:boolean" use="optional" default="false"/>
  398. </xs:extension>
  399. </xs:simpleContent>
  400. </xs:complexType>
  401. <!--
  402. ********************************************************
  403. * <OVERVIEW> specifies a textual description of the shell.
  404. *
  405. * This should provide instructions about key bindings and
  406. * escape sequences which can be used in the CLI.
  407. *
  408. ********************************************************
  409. -->
  410. <xs:simpleType name="overview_t">
  411. <xs:restriction base="xs:string">
  412. <xs:whiteSpace value="preserve"/>
  413. </xs:restriction>
  414. </xs:simpleType>
  415. <!--
  416. ********************************************************
  417. * <DETAIL> specifies a textual description.
  418. *
  419. * This may be used within the scope of a <COMMAND>
  420. * element, in which case it would typically contain
  421. * detailed usage instructions including examples.
  422. *
  423. * This may also be used within the scope of a <STARTUP>
  424. * element, in which case the text is used as the banner
  425. * details which are displayed on shell startup. This is
  426. * shown before any specified <ACTION> is executed.
  427. *
  428. * This text may also be used in the production of user manuals.
  429. ********************************************************
  430. -->
  431. <xs:simpleType name="detail_t">
  432. <xs:restriction base="xs:string">
  433. <xs:whiteSpace value="preserve"/>
  434. </xs:restriction>
  435. </xs:simpleType>
  436. <!--
  437. *******************************************************
  438. * <NAMESPACE> import commands from specific view to current view.
  439. *
  440. * ref - the view to import commands from
  441. *
  442. * [prefix] - the prefix for imported commands
  443. *
  444. * [prefix_help] - the help for namespace prefix
  445. *
  446. * [help] - a boolean flag to use imported
  447. * commands while help
  448. *
  449. * [completion] - a boolean flag to use imported
  450. * commands while completion
  451. *
  452. * [context_help] - a boolean flag to use imported
  453. * commands while context help
  454. *
  455. * [inherit] - a boolean flag to inherit nested
  456. * namespace commands recursively
  457. *
  458. * [access] - access rights
  459. *
  460. ********************************************************
  461. -->
  462. <xs:complexType name="namespace_t">
  463. <xs:attribute name="ref" type="xs:string" use="required"/>
  464. <xs:attribute name="prefix" type="xs:string" use="optional"/>
  465. <xs:attribute name="prefix_help" type="xs:string" use="optional"/>
  466. <xs:attribute name="help" type="xs:boolean" use="optional" default="false"/>
  467. <xs:attribute name="completion" type="xs:boolean" use="optional" default="true"/>
  468. <xs:attribute name="context_help" type="xs:boolean" use="optional" default="false"/>
  469. <xs:attribute name="inherit" type="xs:boolean" use="optional" default="true"/>
  470. <xs:attribute name="access" type="xs:string" use="optional"/>
  471. </xs:complexType>
  472. <!--
  473. *******************************************************
  474. * <VAR> Specify the variable.
  475. *
  476. *
  477. *
  478. ********************************************************
  479. -->
  480. <xs:complexType name="var_t">
  481. <xs:sequence>
  482. <xs:element ref="ACTION" minOccurs="0"/>
  483. </xs:sequence>
  484. <xs:attribute name="name" type="xs:string" use="required"/>
  485. <xs:attribute name="help" type="xs:string" use="optional"/>
  486. <xs:attribute name="value" type="xs:string" use="optional"/>
  487. <xs:attribute name="dynamic" type="xs:boolean" use="optional" default="false"/>
  488. </xs:complexType>
  489. <!--
  490. *******************************************************
  491. * <WATCHDOG> is used to recover system after errors.
  492. *
  493. ********************************************************
  494. -->
  495. <xs:complexType name="wdog_t">
  496. <xs:sequence>
  497. <xs:element ref="ACTION" minOccurs="1"/>
  498. </xs:sequence>
  499. </xs:complexType>
  500. <!--
  501. *******************************************************
  502. * <HOTKEY> is used to define hotkey actions
  503. *
  504. ********************************************************
  505. -->
  506. <xs:complexType name="hotkey_t">
  507. <xs:attribute name="key" type="xs:string" use="required"/>
  508. <xs:attribute name="cmd" type="xs:string" use="required"/>
  509. </xs:complexType>
  510. <!--
  511. *******************************************************
  512. * <PLUGIN> is used to dynamically load plugins
  513. *
  514. * [rtld_global] - A boolean RTLD_GLOBAL flag for dlopen()
  515. * while plugin loading. Default is "false".
  516. *
  517. ********************************************************
  518. -->
  519. <xs:complexType name="plugin_t">
  520. <xs:simpleContent>
  521. <xs:extension base="xs:string">
  522. <xs:attribute name="name" type="xs:string" use="required"/>
  523. <xs:attribute name="alias" type="xs:string" use="optional"/>
  524. <xs:attribute name="file" type="xs:string" use="optional"/>
  525. <xs:attribute name="rtld_global" type="xs:boolean" use="optional" default="false"/>
  526. </xs:extension>
  527. </xs:simpleContent>
  528. </xs:complexType>
  529. <!--
  530. *******************************************************
  531. * <HOOK> is used to redefine internal hooks
  532. *
  533. * name - The name of internal hook (init, fini, access, log).
  534. *
  535. * [builtin] - specify the name of an internally registered
  536. * function.
  537. *
  538. ********************************************************
  539. -->
  540. <xs:simpleType name="hook_list_e">
  541. <xs:restriction base="xs:string">
  542. <xs:enumeration value="init"/>
  543. <xs:enumeration value="fini"/>
  544. <xs:enumeration value="access"/>
  545. <xs:enumeration value="log"/>
  546. </xs:restriction>
  547. </xs:simpleType>
  548. <xs:complexType name="hook_t">
  549. <xs:attribute name="name" type="hook_list_e"/>
  550. <xs:attribute name="builtin" type="xs:string" use="optional"/>
  551. </xs:complexType>
  552. </xs:schema>