Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Save work.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | wip
Files: files | file ages | folders
SHA3-256: 23e2b27004f222b8f07713a9e7004480e767951cab625f8bcd12f588b719a538
User & Date: rolf 2020-05-13 22:47:17
Context
2020-05-13
23:52
Merged from schema. check-in: f63309e59e user: rolf tags: wip
22:47
Save work. check-in: 23e2b27004 user: rolf tags: wip
2020-05-11
00:27
There is still a bit work left to do in checkElementEnd. check-in: 7f5d9b26db user: rolf tags: wip
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to doc/schema.xml.

21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
...
204
205
206
207
208
209
210
211
212
213
214
215
216
217

218

219
220
221
222
223
224
225
    schema.</p>

    <p>Additionally, a validation command may be used as argument to
    the <m>-validateCmd</m> option of the <m>dom parse</m> and the
    <m>expat</m> commands to enable validation additional to what they
    otherwise do.</p>

    <p>The created commands have this methods:</p>

    <commandlist>
      <commanddef>
          <command><method>prefixns</method> <m>?prefixUriList?</m></command>
          <desc>This method gives control to a prefix (or
          abbreviation) to namespace URI mapping. Everywhere a
          namespace argument is expected in the schema command methods
................................................................................
        name is set to a validation error message. If the dom tree is
        valid and the optional <m>objVar</m> argument is given, then
        the variable with that name is set to the empty string. </desc>
      </commanddef>

      <commanddef>
        <command><method>reportcmd</method> <m>?cmdName?</m></command>
        <desc>Without the optional argument this method returns the
        current Tcl command, which is called in case of validation
        error or the empty string if there isn&apos;t one. Otherwise,
        this method expects the name of a tcl command to be called in
        case of validation error. This command will be called (on
        global scope) with two arguments: the schema command, that is
        rasing the validation error, and a validation error code. The

        possible error codes are:

        <dl>
            <dt>MISSING_ELEMENT</dt><dd></dd>
            <dt>MISSING_TEXT</dt><dd></dd>
            <dt>UNEXPECTED_ELEMENT</dt><dd></dd>
            <dt>UNEXPECTED_ROOT_ELEMENT</dt><dd></dd>
            <dt>UNEXPECTED_TEXT</dt><dd></dd>
            <dt>UNKNOWN_ROOT_ELEMENT</dt><dd></dd>







|







 







<
<
<
|
|
|
|
>
|
>







21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
...
204
205
206
207
208
209
210



211
212
213
214
215
216
217
218
219
220
221
222
223
224
    schema.</p>

    <p>Additionally, a validation command may be used as argument to
    the <m>-validateCmd</m> option of the <m>dom parse</m> and the
    <m>expat</m> commands to enable validation additional to what they
    otherwise do.</p>

    <p>The methods of the created commands are:</p>

    <commandlist>
      <commanddef>
          <command><method>prefixns</method> <m>?prefixUriList?</m></command>
          <desc>This method gives control to a prefix (or
          abbreviation) to namespace URI mapping. Everywhere a
          namespace argument is expected in the schema command methods
................................................................................
        name is set to a validation error message. If the dom tree is
        valid and the optional <m>objVar</m> argument is given, then
        the variable with that name is set to the empty string. </desc>
      </commanddef>

      <commanddef>
        <command><method>reportcmd</method> <m>?cmdName?</m></command>



        <desc>This method expects the name of a tcl command to be
        called in case of validation error. This command will be
        called with two arguments: the schema command, that is rasing
        the validation error, and a validation error code. For more
        detailed information see <ref
        refid="recovering">Recovering</ref>.The possible error codes
        are:
        <dl>
            <dt>MISSING_ELEMENT</dt><dd></dd>
            <dt>MISSING_TEXT</dt><dd></dd>
            <dt>UNEXPECTED_ELEMENT</dt><dd></dd>
            <dt>UNEXPECTED_ROOT_ELEMENT</dt><dd></dd>
            <dt>UNEXPECTED_TEXT</dt><dd></dd>
            <dt>UNKNOWN_ROOT_ELEMENT</dt><dd></dd>