<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>2184</bug_id>
          
          <creation_ts>2005-09-14 18:47:59 +0000</creation_ts>
          <short_desc>R-191: Question about e-props-correct.2</short_desc>
          <delta_ts>2012-12-04 00:51:21 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XML Schema</product>
          <component>Structures: XSD Part 1</component>
          <version>1.0 only</version>
          <rep_platform>All</rep_platform>
          <op_sys>Windows 3.1</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>needsDrafting</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sandy Gao">sandygao</reporter>
          <assigned_to name="David Ezell">David_E3</assigned_to>
          
          
          <qa_contact name="XML Schema comments list">www-xml-schema-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>6190</commentid>
    <comment_count>0</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-14 18:47:59 +0000</bug_when>
    <thetext>Is the following element decl valid? 

&lt;xsd:element name=&quot;Element&quot; fixed=&quot;1.0e-2&quot;&gt;
  &lt;xsd:simpleType&gt;
      &lt;xsd:restriction base=&quot;xsd:float&quot;&gt;
          &lt;xsd:pattern value=&quot;...E..&quot;/&gt;
      &lt;xsd:restriction&gt;
  &lt;xsd:simpleType&gt;
&lt;xs:element&gt;

Note that 1.0e-2 doesn&apos;t satisfy the pattern, so it&apos;s not valid wrt the 
anonymous simple type. But &quot;e-props-correct.2&quot; only requires the canonical rep 
(not the original lexical rep) to be valid wrt the type defi, and the canonical 
rep of &quot;1.0e-2&quot; (as a float) is &quot;1.0E-2&quot;, which does satisfy the pattern. 

&quot;Element Declaration Properties Correct&quot; states: &quot;2 If there is a {value 
constraint}, the canonical lexical representation of its value must be valid 
with respect to the {type definition} as defined in Element Default Valid 
(Immediate) (3.3.6).&quot; 

And to check the above constraint, we need to have the {value constraint}&apos;s 
value (an actual value). To get such actual value: 

&quot;{value constraint} If there is a default or a fixed [attribute], then a pair 
consisting of the actual value (with respect to the {type definition}, if it is 
a simple type definition, or the {type definition}&apos;s {content type}, if that is 
a simple type definition, or else with respect to the built-in string simple 
type definition) of that [attribute] and either default or fixed, as 
appropriate, otherwise absent.&quot; 

So it seems that we need to use the type defi to convert the original lexical 
rep to an actual value, then generate a canonical rep from the actual value, 
and use the type defi again to validate such canonical rep. Is this the 
intention? Is it an error if the original lexical rep is not valid? 

See: http://lists.w3.org/Archives/Member/w3c-xml-schema-ig/2003Jan/0043.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6191</commentid>
    <comment_count>1</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-14 18:48:15 +0000</bug_when>
    <thetext>Henry&apos;s response:
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2003JanMar/0020.html

Discussed at the Feb. 7 concall. WG agreed to classify R-191 as an error 
w/erratum.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>