fixed bug #61070, number ANY formatting should be faster too. updated the
authorDaniel Veillard <veillard@src.gnome.org>
Sun, 7 Oct 2001 11:19:37 +0000 (11:19 +0000)
committerDaniel Veillard <veillard@src.gnome.org>
Sun, 7 Oct 2001 11:19:37 +0000 (11:19 +0000)
* libxslt/numbers.c: fixed bug #61070, number ANY formatting
  should be faster too.
* tests/docbook/result/xtchunk/html/* tests/xmlspec/REC-xml-20001006*.html:
  updated the result of the tests. A subtle bug unnnoticed yet
  in the XML Rec formatting got fixed.
Daniel

15 files changed:
ChangeLog
libxslt/numbers.c
tests/docbook/result/xtchunk/html/apa.orig
tests/docbook/result/xtchunk/html/apas02.orig [moved from tests/docbook/result/xtchunk/html/apas17.orig with 98% similarity]
tests/docbook/result/xtchunk/html/apas03.orig [moved from tests/docbook/result/xtchunk/html/apas18.orig with 99% similarity]
tests/docbook/result/xtchunk/html/index.orig
tests/docbook/result/xtchunk/html/indexs02.orig
tests/docbook/result/xtchunk/html/indexs04.orig
tests/docbook/result/xtchunk/html/indexs06.orig
tests/docbook/result/xtchunk/html/indexs07.orig
tests/docbook/result/xtchunk/html/indexs08.orig
tests/docbook/result/xtchunk/html/indexs09.orig
tests/docbook/result/xtchunk/html/indexs12.orig
tests/xmlspec/REC-xml-20001006-review.html
tests/xmlspec/REC-xml-20001006.html

index 528fd1c..d7e92d3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+Sun Oct  7 13:15:33 CEST 2001 Daniel Veillard <daniel@veillard.com>
+
+       * libxslt/numbers.c: fixed bug #61070, number ANY formatting 
+         should be faster too.
+       * tests/docbook/result/xtchunk/html/* tests/xmlspec/REC-xml-20001006*.html:
+         updated the result of the tests. A subtle bug unnnoticed yet
+         in the XML Rec formatting got fixed.
+
 Sat Oct  6 19:45:07 CEST 2001 Daniel Veillard <daniel@veillard.com>
 
        * libxslt/numbers.c: trying to fix bug #61070, seems there
index 2f6a970..6c933fd 100644 (file)
@@ -369,69 +369,73 @@ xsltNumberFormatGetAnyLevel(xsltTransformContextPtr context,
 {
     int amount = 0;
     int cnt = 0;
-    int keep_going = TRUE;
-    xmlNodePtr ancestor;
-    xmlNodePtr preceding;
-    xmlXPathParserContextPtr parser;
-    xsltCompMatchPtr countPat;
-    xsltCompMatchPtr fromPat;
+    xmlNodePtr cur;
+    xsltCompMatchPtr countPat = NULL;
+    xsltCompMatchPtr fromPat = NULL;
 
     if (count != NULL)
        countPat = xsltCompilePattern(count, doc, elem);
-    else
-       countPat = NULL;
     if (from != NULL)
        fromPat = xsltCompilePattern(from, doc, elem);
-    else
-       fromPat = NULL;
-    context->xpathCtxt->node = node;
-    parser = xmlXPathNewParserContext(NULL, context->xpathCtxt);
-    if (parser) {
-       /* preceding */
-       for (preceding = xmlXPathNextPreceding(parser, node);
-            preceding != NULL;
-            preceding = xmlXPathNextPreceding(parser, preceding)) {
-           if ((from != NULL) &&
-               xsltTestCompMatchList(context, preceding, fromPat)) {
-               keep_going = FALSE;
-               break; /* for */
-           }
-           if (count == NULL) {
-               if ((node->type == preceding->type) &&
-                   /* FIXME: must use expanded-name instead of local name */
-                   xmlStrEqual(node->name, preceding->name))
-                   cnt++;
-           } else {
-               if (xsltTestCompMatchList(context, preceding, countPat))
-                   cnt++;
-           }
+       
+    /* select the starting node */
+    switch (node->type) {
+       case XML_ELEMENT_NODE:
+           cur = node;
+           break;
+       case XML_ATTRIBUTE_NODE:
+           cur = ((xmlAttrPtr) node)->parent;
+           break;
+       case XML_TEXT_NODE:
+       case XML_PI_NODE:
+       case XML_COMMENT_NODE:
+           cur = node->parent;
+           break;
+       default:
+           cur = NULL;
+           break;
+    }
+
+    while (cur != NULL) {
+       /* process current node */
+       if (count == NULL) {
+           if ((node->type == cur->type) &&
+               /* FIXME: must use expanded-name instead of local name */
+               xmlStrEqual(node->name, cur->name))
+               cnt++;
+       } else {
+           if (xsltTestCompMatchList(context, cur, countPat))
+               cnt++;
+       }
+       if ((from != NULL) &&
+           xsltTestCompMatchList(context, cur, fromPat)) {
+           break; /* while */
        }
 
-       if (keep_going) {
-           /* ancestor-or-self */
-           for (ancestor = node;
-                ancestor != NULL;
-                ancestor = xmlXPathNextAncestor(parser, ancestor)) {
-               if ((from != NULL) &&
-                   xsltTestCompMatchList(context, ancestor, fromPat)) {
-                   break; /* for */
-               }
-               if (count == NULL) {
-                   if ((node->type == ancestor->type) &&
-                       /* FIXME */
-                       xmlStrEqual(node->name, ancestor->name))
-                       cnt++;
-               } else {
-                   if (xsltTestCompMatchList(context, ancestor, countPat))
-                       cnt++;
-               }
-           }
+       /* Skip to next preceding or ancestor */
+       if ((cur->type == XML_DOCUMENT_NODE) ||
+#ifdef LIBXML_DOCB_ENABLED
+            (cur->type == XML_DOCB_DOCUMENT_NODE) ||
+#endif
+            (cur->type == XML_HTML_DOCUMENT_NODE))
+           break; /* while */
+
+       while ((cur->prev != NULL) && (cur->prev->type == XML_DTD_NODE))
+           cur = cur->prev;
+       if (cur->prev != NULL) {
+           for (cur = cur->prev; cur->last != NULL; cur = cur->last);
+       } else {
+           cur = cur->parent;
        }
-       array[amount++] = (double)cnt;
-       xmlXPathFreeParserContext(parser);
+
     }
-    xsltFreeCompMatchList(countPat);
-    xsltFreeCompMatchList(fromPat);
+
+    array[amount++] = (double) cnt;
+
+    if (countPat != NULL)
+       xsltFreeCompMatchList(countPat);
+    if (fromPat != NULL)
+       xsltFreeCompMatchList(fromPat);
     return(amount);
 }
 
index d5cb0b8..8f10138 100644 (file)
@@ -7,7 +7,7 @@
 <link rel="home" href="index.html" title="The GNOME Handbook of Writing Software Documentation">
 <link rel="up" href="index.html" title="The GNOME Handbook of Writing Software Documentation">
 <link rel="previous" href="indexs15.html" title="Resources">
-<link rel="next" href="apas17.html" title="Template 2: Applet Manual For GNOME 1.x">
+<link rel="next" href="apas02.html" title="Template 2: Applet Manual For GNOME 1.x">
 </head>
 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
 <div class="navheader">
@@ -17,7 +17,7 @@
 <td width="20%" align="left">
 <a href="indexs15.html">Prev</a> </td>
 <th width="60%" align="center"> </th>
-<td width="20%" align="right"> <a href="apas17.html">Next</a>
+<td width="20%" align="right"> <a href="apas02.html">Next</a>
 </td>
 </tr>
 </table>
 <td width="40%" align="left">
 <a href="indexs15.html">Prev</a> </td>
 <td width="20%" align="center"><a href="index.html">Home</a></td>
-<td width="40%" align="right"> <a href="apas17.html">Next</a>
+<td width="40%" align="right"> <a href="apas02.html">Next</a>
 </td>
 </tr>
 <tr>
@@ -7,7 +7,7 @@
 <link rel="home" href="index.html" title="The GNOME Handbook of Writing Software Documentation">
 <link rel="up" href="apa.html" title="A. Document Templates">
 <link rel="previous" href="apa.html" title="A. Document Templates">
-<link rel="next" href="apas18.html" title="Template 2: Applet Manual For GNOME 2.x">
+<link rel="next" href="apas03.html" title="Template 2: Applet Manual For GNOME 2.x">
 </head>
 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
 <div class="navheader">
@@ -17,7 +17,7 @@
 <td width="20%" align="left">
 <a href="apa.html">Prev</a> </td>
 <th width="60%" align="center">A. Document Templates</th>
-<td width="20%" align="right"> <a href="apas18.html">Next</a>
+<td width="20%" align="right"> <a href="apas03.html">Next</a>
 </td>
 </tr>
 </table>
 <td width="40%" align="left">
 <a href="apa.html">Prev</a> </td>
 <td width="20%" align="center"><a href="index.html">Home</a></td>
-<td width="40%" align="right"> <a href="apas18.html">Next</a>
+<td width="40%" align="right"> <a href="apas03.html">Next</a>
 </td>
 </tr>
 <tr>
@@ -6,7 +6,7 @@
 <meta name="generator" content="DocBook XSL Stylesheets V1.40">
 <link rel="home" href="index.html" title="The GNOME Handbook of Writing Software Documentation">
 <link rel="up" href="apa.html" title="A. Document Templates">
-<link rel="previous" href="apas17.html" title="Template 2: Applet Manual For GNOME 1.x">
+<link rel="previous" href="apas02.html" title="Template 2: Applet Manual For GNOME 1.x">
 </head>
 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
 <div class="navheader">
@@ -14,7 +14,7 @@
 <tr><th colspan="3" align="center">Template 2: Applet Manual For GNOME 2.x</th></tr>
 <tr>
 <td width="20%" align="left">
-<a href="apas17.html">Prev</a> </td>
+<a href="apas02.html">Prev</a> </td>
 <th width="60%" align="center">A. Document Templates</th>
 <td width="20%" align="right"> </td>
 </tr>
 <table width="100%" summary="Navigation footer">
 <tr>
 <td width="40%" align="left">
-<a href="apas17.html">Prev</a> </td>
+<a href="apas02.html">Prev</a> </td>
 <td width="20%" align="center"><a href="index.html">Home</a></td>
 <td width="40%" align="right"> </td>
 </tr>
index 1c09754..8a5a5ef 100644 (file)
 <dd><dl>
 <dt> <a href="apa.html#template1">Template 1: Application Manual</a>
 </dt>
-<dt> <a href="apas17.html">Template 2: Applet Manual For GNOME 1.x</a>
+<dt> <a href="apas02.html">Template 2: Applet Manual For GNOME 1.x</a>
 </dt>
-<dt> <a href="apas18.html">Template 2: Applet Manual For GNOME 2.x</a>
+<dt> <a href="apas03.html">Template 2: Applet Manual For GNOME 2.x</a>
 </dt>
 </dl></dd>
 </dl>
 <a name="notation"></a>Notation and Conventions</h3></div></div>
 <p>
         This Handbook uses the following notation:
-        <div class="informaltable" id="id2781469">
-<a name="id2781469"></a><table border="0">
+        <div class="informaltable" id="id2782184">
+<a name="id2782184"></a><table border="0">
 <colgroup>
 <col>
 <col>
index 2a59c88..5f919e3 100644 (file)
@@ -86,7 +86,7 @@
         </p>
 <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
 <h3 class="title">
-<a name="id2779850"></a>Note</h3>
+<a name="id2780566"></a>Note</h3>
 <p>
           Note that the information in the
           <i>DocTable</i> may not always be up-to-date
       </p>
 <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
 <h3 class="title">
-<a name="id2779939"></a>NOTE</h3>
+<a name="id2780654"></a>NOTE</h3>
 <p>
           To get started writing for the GDP you do not need to rush
           out and learn DocBook - if you feel it is too much to handle
         </p>
 <div class="itemizedlist"><ul>
 <li style="list-style-type: opencircle"><p>
-<a name="id2780350"></a>
+<a name="id2781065"></a>
               Download <a href="http://www.labs.redhat.com/png/png-support.html" target="_top">the
               GDP DocBook DTD for PNG support</a> and install it
               where you keep your DTD's. (On Red Hat use <tt>/usr/lib/sgml/</tt>.) Note that
               recommended that you use version 3.1
             </p></li>
 <li style="list-style-type: disc"><p>
-<a name="id2780529"></a>
+<a name="id2781244"></a>
               Add the new DTD to your SGML CATALOG file.  The location
               of your SGML CATALOG file may vary depending upon your
               distribution. (On Red Hat it is usually in
@@ -284,7 +284,7 @@ V1.1//EN&quot;[]&gt;
         </p>
 <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
 <h3 class="title">
-<a name="id2902525"></a>NOTE</h3>
+<a name="id2903240"></a>NOTE</h3>
 <p>
             The html files you get will not look quite the same as the
             documentation distributed with GNOME unless you have the
@@ -355,7 +355,7 @@ V1.1//EN&quot;[]&gt;
         </p>
 <div class="itemizedlist"><ul>
 <li style="list-style-type: disc"><p>
-<a name="id2902813"></a>
+<a name="id2903528"></a>
               <a href="http://www.docbook.org" target="_top">http://www.docbook.org</a>  - Norman
               Walsh's <i>DocBook: The Definitive
               Guide</i>.  Online O'Reilly book on using
@@ -363,14 +363,14 @@ V1.1//EN&quot;[]&gt;
               too formal for a beginner.
             </p></li>
 <li style="list-style-type: disc"><p>
-<a name="id2902868"></a>
+<a name="id2903583"></a>
               <a href="http://www.oswg.org/oswg-nightly/oswg/en_US.ISO_8859-1/articles/DocBook-Intro/docbook-intro/index.html" target="_top">A Practical Introduction to DocBook</a>
               - The Open Source Writers Group's introduction to using
               DocBook. This is an excellent HOW-TO type article on
               getting started.
             </p></li>
 <li style="list-style-type: disc"><p>
-<a name="id2902908"></a>
+<a name="id2903624"></a>
               <a href="http://nis-www.lanl.gov/~rosalia/mydocs/docbook-intro/docbook-intro.html" target="_top">Getting Going with DocBook: Notes for
               Hackers</a> - Mark Galassi's introduction to DocBook
               for hackers. This has to be one of the first
@@ -378,7 +378,7 @@ V1.1//EN&quot;[]&gt;
               was.
             </p></li>
 <li style="list-style-type: disc"><p>
-<a name="id2902948"></a>
+<a name="id2903663"></a>
               <a href="http://www.freebsd.org/tutorials/docproj-primer/" target="_top">
               FreeBSD Documentation Project Primer for New
               Contributors</a> - FreeBSD documentation project
@@ -396,7 +396,7 @@ V1.1//EN&quot;[]&gt;
           documentation authors write correct and consistent DocBook:
         </p>
 <div class="itemizedlist"><ul><li style="list-style-type: disc"><p>
-<a name="id2903014"></a>
+<a name="id2903730"></a>
               <a href="indexs04.html" title="DocBook Basics ">the section called &#8220;DocBook Basics &#8221;</a> - Descriptions of
               commonly used DocBook tags.
             </p></li></ul></div>
index b3fee5a..815c55b 100644 (file)
       </p>
 <div class="variablelist"><dl>
 <dt>
-<a name="id2905520"></a><span class="term"> <i>Minimization</i></span>
+<a name="id2906235"></a><span class="term"> <i>Minimization</i></span>
 </dt>
 <dd><p>
-<a name="id2905538"></a>
+<a name="id2906254"></a>
              It is possible with some implementations of SGML to use
              minimizations to close elements in a document by using
              &lt;/&gt;, for example:
           Modify-&gt;Normalize.
          </p></dd>
 <dt>
-<a name="id2905653"></a><span class="term"> <i>Self-closing tags</i></span>
+<a name="id2906368"></a><span class="term"> <i>Self-closing tags</i></span>
 </dt>
 <dd><p>
-<a name="id2905672"></a>
+<a name="id2906388"></a>
             Also, in SGML some tags are allowed not to have closing
             tags.  For example, it is legal for
             <tt>&lt;xref&gt;</tt> not to have a closing tag: 
             slash!).
           </p></dd>
 <dt>
-<a name="id2905735"></a><span class="term"> <i>Case sensitive tags</i></span>
+<a name="id2906451"></a><span class="term"> <i>Case sensitive tags</i></span>
 </dt>
 <dd><p>
-<a name="id2905755"></a>
+<a name="id2906470"></a>
              In XML, unlike SGML, tags are case-senstive
              <tt>&lt;title&gt;</tt> and
              <tt>&lt;TITLE&gt;</tt> are different tags!
         </p>
 <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
 <h3 class="title">
-<a name="id2906259"></a>NOTE</h3>
+<a name="id2906974"></a>NOTE</h3>
 <p>
             Notice in this example that the screenshot file name does
             not include the file type extension -- to find out
@@ -310,7 +310,7 @@ make: *** No rule to make target `love'.  Stop.
           and commands entered by user.
           <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
 <h3 class="title">
-<a name="id2906499"></a>NOTE</h3>
+<a name="id2907214"></a>NOTE</h3>
 <p>
               Note that both <tt>&lt;programlisting&gt;</tt>
               and <tt>&lt;screen&gt;</tt> preserve linebreaks,
@@ -333,11 +333,11 @@ make: *** No rule to make target `love'.  Stop.
        </p>
 <div class="variablelist"><dl>
 <dt>
-<a name="id2906618"></a><span class="term"> <tt>&lt;itemizedlist&gt;</tt></span>
+<a name="id2907333"></a><span class="term"> <tt>&lt;itemizedlist&gt;</tt></span>
 </dt>
 <dd>
 <p>
-<a name="id2906638"></a> 
+<a name="id2907353"></a> 
                This is the simplest unnumbered list, parallel to
            <tt>&lt;ul&gt;</tt> in HTML. Here is an example: 
                <pre class="programlisting">
@@ -371,20 +371,20 @@ make: *** No rule to make target `love'.  Stop.
                 </p>
 <div class="itemizedlist"><ul>
 <li><p>
-<a name="id2906678"></a>
+<a name="id2907394"></a>
                      Show backup files --
                      This will show any backup file that might be on
                      your system.
                    </p></li>
 <li><p>
-<a name="id2906737"></a>
+<a name="id2907453"></a>
                      Show hidden files --
                      This will show all &quot;dot files&quot; or files that
                      begin with a dot.  This files typically include
                      configuration files and directories.
                    </p></li>
 <li><p>
-<a name="id2906770"></a>
+<a name="id2907485"></a>
                      Mix files and directories
                      -- This option will display files and
                      directories in the order you sort them instead
@@ -407,10 +407,10 @@ make: *** No rule to make target `love'.  Stop.
              </p>
 </dd>
 <dt>
-<a name="id2906945"></a><span class="term"> <tt>&lt;orderedlist&gt;</tt></span>
+<a name="id2907661"></a><span class="term"> <tt>&lt;orderedlist&gt;</tt></span>
 </dt>
 <dd><p>
-<a name="id2906964"></a>
+<a name="id2907679"></a>
                This list is completely analogous to
                <tt>&lt;itemizedlist&gt;</tt> and has the same
                syntax, but  it produces numbered list. By default,
@@ -425,10 +425,10 @@ make: *** No rule to make target `love'.  Stop.
                <tt>lowerroman</tt>.
              </p></dd>
 <dt>
-<a name="id2907044"></a><span class="term"> <tt>&lt;variablelist&gt;</tt></span>
+<a name="id2907760"></a><span class="term"> <tt>&lt;variablelist&gt;</tt></span>
 </dt>
 <dd><p>
-<a name="id2907064"></a> This list is used when each entry is
+<a name="id2907780"></a> This list is used when each entry is
            rather long, so it should be formatted as a block of text
            with some subtitle, like a small subsection.  The
            <tt>&lt;variablelist&gt;</tt> is more complicated
@@ -482,12 +482,12 @@ make: *** No rule to make target `love'.  Stop.
 <a name="gui"></a>GUI elements</h4></div></div>
 <div class="itemizedlist"><ul>
 <li><p>
-<a name="id2907235"></a>
+<a name="id2907951"></a>
               <tt>&lt;guibutton&gt;</tt> -- used for
               buttons, including checkbuttons and radio buttons
             </p></li>
 <li><p>
-<a name="id2907261"></a>
+<a name="id2907977"></a>
               <tt>&lt;guimenu&gt;</tt>, 
               <tt>&lt;guisubmenu&gt;</tt> --used for 
              top-level menus and submenus
@@ -496,21 +496,21 @@ make: *** No rule to make target `love'.  Stop.
               &lt;guimenu&gt;Main Menu&lt;/guimenu&gt;</tt>
             </p></li>
 <li><p>
-<a name="id2907310"></a>
+<a name="id2908026"></a>
               <tt>&lt;guimenuitem&gt;</tt>--an entry in a
               menu
             </p></li>
 <li><p>
-<a name="id2907336"></a>
+<a name="id2908052"></a>
               <tt>&lt;guiicon&gt;</tt>--an icon
             </p></li>
 <li><p>
-<a name="id2907360"></a>
+<a name="id2908075"></a>
               <tt>&lt;guilabel&gt;</tt>--for items which have
               labels, like tabs, or bounding boxes. 
             </p></li>
 <li><p>
-<a name="id2907385"></a>
+<a name="id2908101"></a>
               <tt>&lt;interface&gt;</tt>-- for most everything
               else... a window, a dialog box, the Panel, etc.
             </p></li>
@@ -575,7 +575,7 @@ url=&quot;http://www.gnome.org&quot;&gt;GNOME Web page&lt;/ulink&gt;
         </p>
 <div class="itemizedlist"><ul>
 <li><p>
-<a name="id2907781"></a>  <tt>&lt;filename&gt;</tt> -- used
+<a name="id2908496"></a>  <tt>&lt;filename&gt;</tt> -- used
               for filenames,
               e.g.<tt>&lt;filename&gt;</tt>
                     foo.sgml
@@ -583,7 +583,7 @@ url=&quot;http://www.gnome.org&quot;&gt;GNOME Web page&lt;/ulink&gt;
               produces: <tt>foo.sgml</tt>.
             </p></li>
 <li><p>
-<a name="id2907836"></a>  <tt>&lt;filename
+<a name="id2908551"></a>  <tt>&lt;filename
               class=&quot;directory&quot;&gt;</tt> -- used for
               directories, e.g.<tt>&lt;filename
               class=&quot;directory&quot;&gt;</tt>/usr/bin
@@ -591,7 +591,7 @@ url=&quot;http://www.gnome.org&quot;&gt;GNOME Web page&lt;/ulink&gt;
               produces: <tt>/usr/bin</tt>.
             </p></li>
 <li><p>
-<a name="id2907897"></a>
+<a name="id2908612"></a>
               <tt>&lt;application&gt;</tt> -- used for
               application names,
               e.g. <tt>&lt;application&gt;</tt>Gnumeric
@@ -599,13 +599,13 @@ url=&quot;http://www.gnome.org&quot;&gt;GNOME Web page&lt;/ulink&gt;
               Gnumeric.
             </p></li>
 <li><p>
-<a name="id2907952"></a>
+<a name="id2908667"></a>
              <tt>&lt;envar&gt;</tt> -- used for
              environment variables, e.g. 
               <tt>&lt;envar&gt;</tt>PATH<tt>&lt;/envar&gt;</tt>. 
             </p></li>
 <li><p>
-<a name="id2907993"></a>
+<a name="id2908708"></a>
               <tt>&lt;command&gt;</tt> -- used for
               commands entered on command line, e.g.
               <tt>&lt;command&gt;</tt>make install
@@ -613,7 +613,7 @@ url=&quot;http://www.gnome.org&quot;&gt;GNOME Web page&lt;/ulink&gt;
               <b>make install</b>.
             </p></li>
 <li><p>
-<a name="id2908048"></a>
+<a name="id2908763"></a>
               <tt>&lt;replaceable&gt;</tt> -- used for
               replaceable text, e.g.
               <tt>&lt;command&gt;</tt>db2html<tt>&lt;replaceable&gt;</tt>
@@ -704,23 +704,23 @@ url=&quot;http://www.gnome.org&quot;&gt;GNOME Web page&lt;/ulink&gt;
        </p>
 <div class="itemizedlist"><ul>
 <li><p>
-<a name="id2908517"></a>
+<a name="id2909232"></a>
              <tt>&amp;amp;</tt> -- ampersend (&amp;)
          </p></li>
 <li><p>
-<a name="id2908536"></a>
+<a name="id2909251"></a>
              <tt>&amp;lt;</tt> -- left angle bracket (&lt;)
          </p></li>
 <li><p>
-<a name="id2908555"></a>
+<a name="id2909270"></a>
              <tt>&amp;copy;</tt> -- copyright sign (©)
          </p></li>
 <li><p>
-<a name="id2908574"></a>
+<a name="id2909289"></a>
              <tt>&amp;mdash;</tt> -- long dash (--)
          </p></li>
 <li><p>
-<a name="id2908593"></a>
+<a name="id2909308"></a>
              <tt>&amp;hellip;</tt> -- ellipsis (...)
          </p></li>
 </ul></div>
index 49c961a..342cc87 100644 (file)
@@ -37,7 +37,7 @@
     </p>
 <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
 <h3 class="title">
-<a name="id2909053"></a>Documentation Availability</h3>
+<a name="id2909768"></a>Documentation Availability</h3>
 <p>
         Applications and applets should not rely on documentation
         which is only available on the internet.  All manuals and
 </div>
 <p> Application manuals should be based on the template in
     <a href="apa.html#template1" title="Template 1: Application Manual">the section called &#8220;Template 1: Application Manual&#8221;</a>.  Applet manuals should be based on
-    the templates in <a href="apas17.html" title="Template 2: Applet Manual For GNOME 1.x">the section called &#8220;Template 2: Applet Manual For GNOME 1.x&#8221;</a> for GNOME
-    versions 1.x and the templates in <a href="apas18.html" title="Template 2: Applet Manual For GNOME 2.x">the section called &#8220;Template 2: Applet Manual For GNOME 2.x&#8221;</a>
+    the templates in <a href="apas02.html" title="Template 2: Applet Manual For GNOME 1.x">the section called &#8220;Template 2: Applet Manual For GNOME 1.x&#8221;</a> for GNOME
+    versions 1.x and the templates in <a href="apas03.html" title="Template 2: Applet Manual For GNOME 2.x">the section called &#8220;Template 2: Applet Manual For GNOME 2.x&#8221;</a>
     for GNOME versions 2.x.
     </p>
 <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
 <h3 class="title">
-<a name="id2909093"></a>Manuals For Large Applications</h3>
+<a name="id2909809"></a>Manuals For Large Applications</h3>
 <p>
         Manuals for very large applications, such as GNOME Workshop
         components should be a <tt>&lt;book&gt;</tt> (and thus
@@ -66,7 +66,7 @@
 </div>
 <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
 <h3 class="title">
-<a name="id2909208"></a>Applet Manuals in GNOME 2.0</h3>
+<a name="id2909924"></a>Applet Manuals in GNOME 2.0</h3>
 <p>
         Note that applet manuals in GNOME 2.0 are treated in a special
         way.  The manuals for all applets are merged into a single
index d507bb6..9bf161c 100644 (file)
@@ -28,7 +28,7 @@
 <a name="listingdocsinhelpmenu"></a>Listing Documents in the Help Menu</h2></div></div>
 <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
 <h3 class="title">
-<a name="id2909332"></a>Developer Information</h3>
+<a name="id2910047"></a>Developer Information</h3>
 <p>
         This section is for developers.  Documentation authors
         generally do not need to know this material.
@@ -66,7 +66,7 @@ function-reference.html Gnumeric function reference
     </p>
 <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
 <h3 class="title">
-<a name="id2909523"></a>Note</h3>
+<a name="id2910238"></a>Note</h3>
 <p>
        If the help files are not present in the correct directory, the
        menu items will NOT appear when the program is run. 
index 0902094..717b4f9 100644 (file)
@@ -28,7 +28,7 @@
 <a name="applicationhelpbuttons"></a>Application Help Buttons</h2></div></div>
 <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
 <h3 class="title">
-<a name="id2909691"></a>Developer Information</h3>
+<a name="id2910407"></a>Developer Information</h3>
 <p>
         This section is for developers.  Documentation authors
         generally do not need to know this material.
@@ -61,7 +61,7 @@ if (tmp) {
     </pre>
 <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
 <h3 class="title">
-<a name="id2909829"></a>NOTE</h3>
+<a name="id2910544"></a>NOTE</h3>
 <p>
         The example above is in the C language, please refer to other
         documentation or forums for other GNOME language bindings.
index bba9bbe..15386f0 100644 (file)
@@ -72,7 +72,7 @@
 <a name="appletmenu"></a>Adding Documentation to an Applet Menu</h3></div></div>
 <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
 <h3 class="title">
-<a name="id2910081"></a>Developer Information</h3>
+<a name="id2910796"></a>Developer Information</h3>
 <p>
           This section is for developers.  Documentation authors
           generally do not need to know this material.
index bb14c37..762e3ea 100644 (file)
@@ -73,7 +73,7 @@
          you'll have to juggle a number of other extremes as you write:
          <div class="itemizedlist"><ul>
 <li><p>
-<a name="id2910632"></a>
+<a name="id2911347"></a>
               Documents should be complete, yet concise.  You should
               describe every feature, but you'll have decide how much
               detail is really necessary.  It's not, for example,
@@ -85,7 +85,7 @@
               items that are more complex.
             </p></li>
 <li><p>
-<a name="id2910659"></a>
+<a name="id2911374"></a>
               Be engaging and friendly, yet professional. Games
               documents may be less formal than productivity
               application documents (people don't
@@ -96,7 +96,7 @@
               allusions or puns.
            </p></li>
 <li><p>
-<a name="id2910698"></a>
+<a name="id2911414"></a>
               Examples, tips, notes, and screenshots are useful to
               break up long stretches of text, but too many can get in
               the way, and make your documents too choppy to read.
               tabs, it's not usually necessary to have one for each.
            </p></li>
 <li><p>
-<a name="id2910722"></a>
+<a name="id2911438"></a>
               The GDP strives to have all of its documentation conform
               to certain standards of style and content, but every
               document (and every writer) is different.  You will need
index 5491182..7af8d96 100644 (file)
@@ -114,7 +114,7 @@ Normalization</a><br>
 </p>
 <h3>Appendices</h3>
 <p class="toc">A <a href="#sec-bibliography">References</a><br>    A.1 <a href="#sec-existing-stds">Normative References</a><br>    A.2 <a href="#null">Other References</a><br>B <a href="#CharClasses">Character Classes</a><br>C <a href="#sec-xml-and-sgml">XML and SGML</a> (Non-Normative)<br>D <a href="#sec-entexpand">Expansion of Entity and Character References</a> (Non-Normative)<br>E <a href="#determinism">Deterministic Content Models</a> (Non-Normative)<br>F <a href="#sec-guessing">Autodetection
-of Character Encodings</a> (Non-Normative)<br>    F.1 <a href="#sec-guessing-no-ext-info">Detection Without External Encoding Information</a><br>    F.2 <a href="#sec-guessing-with-ext-info">Priorities in the Presence of External Encoding Information</a><br>G <a href="#sec-xml-wg">W3C XML Working Group</a> (Non-Normative)<br>H <a href="#sec-core-wg">W3C XML Core Group</a> (Non-Normative)<br>I <a href="#id2675479">Production Notes</a> (Non-Normative)<br>
+of Character Encodings</a> (Non-Normative)<br>    F.1 <a href="#sec-guessing-no-ext-info">Detection Without External Encoding Information</a><br>    F.2 <a href="#sec-guessing-with-ext-info">Priorities in the Presence of External Encoding Information</a><br>G <a href="#sec-xml-wg">W3C XML Working Group</a> (Non-Normative)<br>H <a href="#sec-core-wg">W3C XML Core Group</a> (Non-Normative)<br>I <a href="#id2675459">Production Notes</a> (Non-Normative)<br>
 </p>
 </div>
 <hr>
@@ -830,7 +830,7 @@ Subset]</a></td>
 </tr>
 <tr valign="baseline">
 <td class="diff-add">
-<a name="NT-DeclSep"></a>[28]   </td>
+<a name="NT-DeclSep"></a>[28a]   </td>
 <td class="diff-add"><code>DeclSep</code></td>
 <td class="diff-add">   ::=   </td>
 <td class="diff-add"><code><a href="#NT-PEReference">PEReference</a> | <a href="#NT-S">S</a></code></td>
@@ -4069,7 +4069,7 @@ Contact</i>) </li>
 <div class="diff-add"><div class="div1">
 
 <h2>
-<a name="id2675479"></a>I Production Notes (Non-Normative)</h2>
+<a name="id2675459"></a>I Production Notes (Non-Normative)</h2>
 <p>This Second Edition was encoded in the <a href="http://www.w3.org/XML/1998/06/xmlspec-v21.dtd">XMLspec
 DTD</a> (which has <a href="http://www.w3.org/XML/1998/06/xmlspec-report-v21.htm">documentation</a>
 available). The HTML versions were produced with a combination of the <a href="http://www.w3.org/XML/1998/06/xmlspec.xsl">xmlspec.xsl</a>, <a href="http://www.w3.org/XML/1998/06/diffspec.xsl">diffspec.xsl</a>,
index 75c3a92..ab60d02 100644 (file)
@@ -97,7 +97,7 @@ Normalization</a><br>
 </p>
 <h3>Appendices</h3>
 <p class="toc">A <a href="#sec-bibliography">References</a><br>    A.1 <a href="#sec-existing-stds">Normative References</a><br>    A.2 <a href="#null">Other References</a><br>B <a href="#CharClasses">Character Classes</a><br>C <a href="#sec-xml-and-sgml">XML and SGML</a> (Non-Normative)<br>D <a href="#sec-entexpand">Expansion of Entity and Character References</a> (Non-Normative)<br>E <a href="#determinism">Deterministic Content Models</a> (Non-Normative)<br>F <a href="#sec-guessing">Autodetection
-of Character Encodings</a> (Non-Normative)<br>    F.1 <a href="#sec-guessing-no-ext-info">Detection Without External Encoding Information</a><br>    F.2 <a href="#sec-guessing-with-ext-info">Priorities in the Presence of External Encoding Information</a><br>G <a href="#sec-xml-wg">W3C XML Working Group</a> (Non-Normative)<br>H <a href="#sec-core-wg">W3C XML Core Group</a> (Non-Normative)<br>I <a href="#id2675479">Production Notes</a> (Non-Normative)<br>
+of Character Encodings</a> (Non-Normative)<br>    F.1 <a href="#sec-guessing-no-ext-info">Detection Without External Encoding Information</a><br>    F.2 <a href="#sec-guessing-with-ext-info">Priorities in the Presence of External Encoding Information</a><br>G <a href="#sec-xml-wg">W3C XML Working Group</a> (Non-Normative)<br>H <a href="#sec-core-wg">W3C XML Core Group</a> (Non-Normative)<br>I <a href="#id2675459">Production Notes</a> (Non-Normative)<br>
 </p>
 </div>
 <hr>
@@ -805,7 +805,7 @@ Subset]</a></td>
 </tr>
 <tr valign="baseline">
 <td>
-<a name="NT-DeclSep"></a>[28]   </td>
+<a name="NT-DeclSep"></a>[28a]   </td>
 <td><code>DeclSep</code></td>
 <td>   ::=   </td>
 <td><code><a href="#NT-PEReference">PEReference</a> | <a href="#NT-S">S</a></code></td>
@@ -3863,7 +3863,7 @@ Contact</i>) </li>
 <div class="div1">
 
 <h2>
-<a name="id2675479"></a>I Production Notes (Non-Normative)</h2>
+<a name="id2675459"></a>I Production Notes (Non-Normative)</h2>
 <p>This Second Edition was encoded in the <a href="http://www.w3.org/XML/1998/06/xmlspec-v21.dtd">XMLspec
 DTD</a> (which has <a href="http://www.w3.org/XML/1998/06/xmlspec-report-v21.htm">documentation</a>
 available). The HTML versions were produced with a combination of the <a href="http://www.w3.org/XML/1998/06/xmlspec.xsl">xmlspec.xsl</a>, <a href="http://www.w3.org/XML/1998/06/diffspec.xsl">diffspec.xsl</a>,