clish.xsd 21 KB

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