|
5 | 5 | * v. 2.0. If a copy of the MPL was not distributed with this file, You can
|
6 | 6 | * obtain one at https://mozilla.org/MPL/2.0/
|
7 | 7 | *
|
8 |
| - * Copyright (C) 2012-2024, Peter Johnson (gravatar.com/delphidabbler). |
| 8 | + * Copyright (C) 2012-2025, Peter Johnson (gravatar.com/delphidabbler). |
9 | 9 | *
|
10 | 10 | * CodeSnip File Format Documentation: Export
|
11 | 11 | -->
|
|
57 | 57 | <li>
|
58 | 58 | <a href="#file-format">File Format</a>
|
59 | 59 | </li>
|
| 60 | + <li> |
| 61 | + <a href="#erratum">Erratum</a> |
| 62 | + </li> |
60 | 63 | <li>
|
61 | 64 | <a href="#changelog">Change Log</a>
|
62 | 65 | </li>
|
|
114 | 117 | </h2>
|
115 | 118 |
|
116 | 119 | <p>
|
117 |
| - There have been seven different versions of the XML export file format – v1 to |
118 |
| - v7. Tags used by all versions are explained below, with notes describing |
| 120 | + There have been eight different versions of the XML export file format – v1 to |
| 121 | + v8. Tags used by all versions are explained below, with notes describing |
119 | 122 | which versions a tag applies to. Where there is no note the tag is valid in
|
120 | 123 | all versions.
|
121 | 124 | </p>
|
|
176 | 179 | </dt>
|
177 | 180 | <dd>
|
178 | 181 | Identifies major version of file. Determines which tags are valid and
|
179 |
| - establishes rules concerning content. Valid versions are 1 to 7. |
| 182 | + establishes rules concerning content. Valid versions are 1 to 8. |
180 | 183 | </dd>
|
181 | 184 | </dl>
|
182 | 185 | </dd>
|
|
198 | 201 | <span class="highlight">versions 1 to 6:</span> Contains information about user who created the file used for submissions to the online database, omitted for other exports.
|
199 | 202 | </li>
|
200 | 203 | <li>
|
201 |
| - <span class="highlight">version 7:</span> Not supported. Ignored if present. |
| 204 | + <span class="highlight">version 7 and later:</span> Not supported. Ignored if present. |
202 | 205 | </li>
|
203 | 206 | </ul>
|
204 | 207 | </dd>
|
|
212 | 215 | <span class="highlight">versions 1 to 6:</span> User's name or nickname.
|
213 | 216 | </li>
|
214 | 217 | <li>
|
215 |
| - <span class="highlight">version 7:</span> Not supported. Ignored if present. |
| 218 | + <span class="highlight">version 7 and later:</span> Not supported. Ignored if present. |
216 | 219 | </li>
|
217 | 220 | </ul>
|
218 | 221 | </dd>
|
|
226 | 229 | <span class="highlight">versions 1 to 6:</span> User's email address.
|
227 | 230 | </li>
|
228 | 231 | <li>
|
229 |
| - <span class="highlight">version 7:</span> Not supported. Ignored if present. |
| 232 | + <span class="highlight">version 7 and later:</span> Not supported. Ignored if present. |
230 | 233 | </li>
|
231 | 234 | </ul>
|
232 | 235 | </dd>
|
|
240 | 243 | <span class="highlight">versions 1 to 6:</span> Any comments provided by user.
|
241 | 244 | </li>
|
242 | 245 | <li>
|
243 |
| - <span class="highlight">version 7:</span> Not supported. Ignored if present. |
| 246 | + <span class="highlight">version 7 and later:</span> Not supported. Ignored if present. |
244 | 247 | </li>
|
245 | 248 | </ul>
|
246 | 249 | </dd>
|
@@ -687,33 +690,21 @@ <h2>
|
687 | 690 | </ul>
|
688 | 691 | </dd>
|
689 | 692 |
|
690 |
| - <dt> |
691 |
| - <strong>codesnip-export/routines/routine/xref</strong> |
692 |
| - </dt> |
693 |
| - <dd> |
694 |
| - List of cross-referenced snippets. |
695 |
| - </dd> |
| 693 | +</section> |
696 | 694 |
|
697 |
| - <dt> |
698 |
| - <strong>codesnip-export/routines/routine/xref/pascal-name</strong> |
699 |
| - </dt> |
700 |
| - <dd> |
701 |
| - <div class="half-spaced"> |
702 |
| - Name of a snippet within cross-reference list. |
703 |
| - </div> |
704 |
| - <ul class="squashed"> |
705 |
| - <li> |
706 |
| - <span class="highlight">versions 1 to 4:</span> Name must begin with an |
707 |
| - English language letter or the underscore. |
708 |
| - </li> |
709 |
| - <li> |
710 |
| - <span class="highlight">version 5 and later:</span> Name can begin with |
711 |
| - any character that is valid as the first character of a Unicode Pascal |
712 |
| - identifier. |
713 |
| - </li> |
714 |
| - </ul> |
715 |
| - </dd> |
716 |
| -</dl> |
| 695 | +<section id="erratum"> |
| 696 | + |
| 697 | +<h2> |
| 698 | + Erratum |
| 699 | +</h2> |
| 700 | + |
| 701 | +<p> |
| 702 | + The <em>codesnip-export/routines/routine/xref</em> and <em>codesnip-export/routines/routine/xref/pascal-name</em> tags were included in versions 1 to 7 of this specification in error. XRefs were never intended to be written to export files by any version of CodeSnip, as source code comments make clear. |
| 703 | +</p> |
| 704 | + |
| 705 | +<p> |
| 706 | + These tags have been removed from this document entirely of specification version 8. |
| 707 | +</p> |
717 | 708 |
|
718 | 709 | </section>
|
719 | 710 |
|
@@ -1008,6 +999,18 @@ <h2>
|
1008 | 999 | </dd>
|
1009 | 1000 | </dl>
|
1010 | 1001 | </dd>
|
| 1002 | + |
| 1003 | + <dt> |
| 1004 | + <strong>Version 8 - 15 April 2025</strong> |
| 1005 | + </dt> |
| 1006 | + <dd> |
| 1007 | + <p> |
| 1008 | + Introduced with CodeSnip v4.24.3. |
| 1009 | + </p> |
| 1010 | + <p> |
| 1011 | + The <em>codesnip-export/routines/routine/xref</em> and <em>codesnip-export/routines/routine/xref/pascal-name</em> tags were removed from the specification. See <a href="#erratum">Erratum</a> above for details. |
| 1012 | + </p> |
| 1013 | + </dd> |
1011 | 1014 | </dl>
|
1012 | 1015 |
|
1013 | 1016 | </section>
|
@@ -1058,6 +1061,10 @@ <h2>
|
1058 | 1061 | Readers of v2 files and later can parse REML as v6, since all versions of REML up to v6 are backwards compatible.
|
1059 | 1062 | </p>
|
1060 | 1063 |
|
| 1064 | +<p> |
| 1065 | + Readers of v1 to v7 files must ignore any <em>codesnip-export/routines/routine/xref</em> tags and sub tags in the unlikely event that they are found. For an explanation see <a href="#erratum">Erratum</a> above. |
| 1066 | +</p> |
| 1067 | + |
1061 | 1068 | </section>
|
1062 | 1069 |
|
1063 | 1070 | </body>
|
|
0 commit comments