You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by am...@apache.org on 2009/08/25 16:53:53 UTC

svn commit: r807660 - in /xerces/c/trunk/doc: schema.xml style/dtd/markup.ent style/stylesheets/document2html.xsl

Author: amassari
Date: Tue Aug 25 14:53:52 2009
New Revision: 807660

URL: http://svn.apache.org/viewvc?rev=807660&view=rev
Log:
Updated documentation to reflect the change in limits for xs:float datatype

Modified:
    xerces/c/trunk/doc/schema.xml
    xerces/c/trunk/doc/style/dtd/markup.ent
    xerces/c/trunk/doc/style/stylesheets/document2html.xsl

Modified: xerces/c/trunk/doc/schema.xml
URL: http://svn.apache.org/viewvc/xerces/c/trunk/doc/schema.xml?rev=807660&r1=807659&r2=807660&view=diff
==============================================================================
--- xerces/c/trunk/doc/schema.xml (original)
+++ xerces/c/trunk/doc/schema.xml Tue Aug 25 14:53:52 2009
@@ -60,8 +60,7 @@
          <s3 title="out-of-bound float values">
          <p>
                 For float data, the specification does not explicitly prescribe how to deal with
-                out-of-bound data. &XercesCName; converts these values as shown below (the values
-                depend on the system specific values of FLT_MAX and FLT_MIN):
+                out-of-bound data. &XercesCName; converts these values as shown below:
          </p>
                <table>
                    <tr>
@@ -69,26 +68,26 @@
                        <td>Values converted</td>
                    </tr>
                    <tr>
-                       <td>less than -FLT_MAX (approx -3.402823466e+38) </td>
+                       <td>less than -2<sup>24</sup> * 2<sup>104</sup> (approx -3.402823669e+38) </td>
                        <td>-INF</td>
                    </tr>
                    <tr>
-                       <td>greater than -FLT_MIN (approx -1.175494351e-38) and less than -0 </td>
+                       <td>greater than -1 * 2<sup>-149</sup> (approx -1.401298464e-45) and less than -0 </td>
                        <td>-0</td>
                    </tr>
                    <tr>
-                       <td>greater than +0 and less than +FL_MIN (approx +1.175494351e-38) </td>
+                       <td>greater than +0 and less than +1 * 2<sup>-149</sup> (approx +1.401298464e-45) </td>
                        <td>+0</td>
                    </tr>
                    <tr>
-                       <td>greater than +FLT_MAX (approx 3.402823466e+38) </td>
+                       <td>greater than +2<sup>24</sup> * 2<sup>104</sup> (approx 3.402823669e+38) </td>
                        <td>+INF</td>
                    </tr>
                 </table>
             <p>
                 The effect of this conversion would invalidate an instance data, for example,
-                "1.1e-39", of a data type derived from float, with minExclusive value '+0',
-                since "1.1e-39" is converted to "+0", which is the same as the minExclusive.
+                "1.1e-46", of a data type derived from float, with minExclusive value '+0',
+                since "1.1e-46" is converted to "+0", which is the same as the minExclusive.
             </p>
 
          </s3>
@@ -131,7 +130,7 @@
                (default is off) for schema processing.
                </p>
 <source>// Instantiate the DOM parser.
-DOMParser parser;
+XercesDOMParser parser;
 parser.setDoNamespaces(true);
 parser.setDoSchema(true);
 parser.parse(xmlFile);
@@ -193,7 +192,7 @@
                </p>
 <source>
 // Instantiate the DOM parser.
-DOMParser parser;
+XercesDOMParser parser;
 parser.setDoNamespaces(true);
 parser.setDoSchema(true);
 parser.setExternalNoNamespaceSchemaLocation("personal.xsd");
@@ -216,7 +215,7 @@
                </p>
 <source>
 // Instantiate the DOM parser.
-DOMParser parser;
+XercesDOMParser parser;
 parser.setDoNamespaces(true);
 parser.setDoSchema(true);
 parser.setExternalSchemaLocation(
@@ -230,7 +229,7 @@
 ArrayJanitor&lt;XMLCh&gt; janValue(propertyValue);
 
 parser->setProperty(
-       XMLCh XMLUni::fgXercesSchemaExternalSchemaLocation,
+       XMLUni::fgXercesSchemaExternalSchemaLocation,
        propertyValue);
 parser.parse("test.xml");
 </source>

Modified: xerces/c/trunk/doc/style/dtd/markup.ent
URL: http://svn.apache.org/viewvc/xerces/c/trunk/doc/style/dtd/markup.ent?rev=807660&r1=807659&r2=807660&view=diff
==============================================================================
--- xerces/c/trunk/doc/style/dtd/markup.ent (original)
+++ xerces/c/trunk/doc/style/dtd/markup.ent Tue Aug 25 14:53:52 2009
@@ -1,7 +1,7 @@
 <?xml encoding='ISO-8859-1'?>
 
 <!-- MARKUP ENTITY -->
-<!ENTITY % markup "em|ref|code|br">
+<!ENTITY % markup "em|ref|code|br|sup">
 
 <!-- import the external source-specific dtd -->
 <!ENTITY % externalEntity SYSTEM "entities.ent">
@@ -17,5 +17,6 @@
 <!ELEMENT ref (#PCDATA|%links;)*>
 <!ELEMENT code (#PCDATA|%links;)*>
 <!ELEMENT br EMPTY>
+<!ELEMENT sup (#PCDATA)>
 
 <!-- CVS $Revision$ $Date$ -->

Modified: xerces/c/trunk/doc/style/stylesheets/document2html.xsl
URL: http://svn.apache.org/viewvc/xerces/c/trunk/doc/style/stylesheets/document2html.xsl?rev=807660&r1=807659&r2=807660&view=diff
==============================================================================
--- xerces/c/trunk/doc/style/stylesheets/document2html.xsl (original)
+++ xerces/c/trunk/doc/style/stylesheets/document2html.xsl Tue Aug 25 14:53:52 2009
@@ -292,6 +292,10 @@
     <li><xsl:apply-templates/></li>
   </xsl:template>
 
+  <xsl:template match="sup">
+    <sup><xsl:apply-templates/></sup>
+  </xsl:template>
+
     <!--Definition lists: gloss, term, label, item -->
   <xsl:template match="gloss">
     <dl><xsl:apply-templates/></dl>
@@ -457,4 +461,4 @@
     </xsl:copy>
   </xsl:template>
 -->
-</xsl:stylesheet>
\ No newline at end of file
+</xsl:stylesheet>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org