Skip to content
Snippets Groups Projects
Commit 825373df authored by Alberto Massari's avatar Alberto Massari
Browse files

Updated documentation to reflect the change in limits for xs:float datatype

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@807660 13f79535-47bb-0310-9956-ffa450edef68
parent aade7539
No related branches found
No related tags found
No related merge requests found
......@@ -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 @@ parser->parse(xmlFile);
</p>
<source>
// Instantiate the DOM parser.
DOMParser parser;
XercesDOMParser parser;
parser.setDoNamespaces(true);
parser.setDoSchema(true);
parser.setExternalNoNamespaceSchemaLocation("personal.xsd");
......@@ -216,7 +215,7 @@ parser.parse("test.xml");
</p>
<source>
// Instantiate the DOM parser.
DOMParser parser;
XercesDOMParser parser;
parser.setDoNamespaces(true);
parser.setDoSchema(true);
parser.setExternalSchemaLocation(
......@@ -230,7 +229,7 @@ XMLCh* propertyValue = XMLString::transcode(
ArrayJanitor&lt;XMLCh&gt; janValue(propertyValue);
parser->setProperty(
XMLCh XMLUni::fgXercesSchemaExternalSchemaLocation,
XMLUni::fgXercesSchemaExternalSchemaLocation,
propertyValue);
parser.parse("test.xml");
</source>
......
<?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$ -->
......@@ -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>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment