<?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>5319</bug_id>
          
          <creation_ts>2007-12-11 16:27:38 +0000</creation_ts>
          <short_desc>[DM] Default value now well-defined for mixed content</short_desc>
          <delta_ts>2014-04-29 17:51:14 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>Data Model 3.1</component>
          <version>Working drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Kay">mike</reporter>
          <assigned_to name="Anders Berglund">alb.w3c</assigned_to>
          <cc>cmsmcq</cc>
    
    <cc>ndw</cc>
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>18041</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2007-12-11 16:27:38 +0000</bug_when>
    <thetext>This relates to 

http://www.w3.org/Bugs/Public/show_bug.cgi?id=2630

as a result of which the XDM spec contains a paragraph in section 6.2.4 saying

[Schema Part 1] also permits an element with mixed content to take a default or fixed value (which will always be a simple value), but at the time of this writing it is unclear how such a defaulted value is represented in the PSVI. Implementations therefore may represent such a default value by creating a text node, but are not required to do so.

As a result of decisions by the Schema WG: see

http://lists.w3.org/Archives/Member/w3c-xml-query-wg/2007Nov/0085.html

it appears that the above paragraph can now be deleted. (However, before publishing our erratum, it would be a good idea to see which XML Schema revisions or errata actually fix the original problem.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18123</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2007-12-17 19:57:09 +0000</bug_when>
    <thetext>Note, at the time of writing bug #2632 contains no published resolution. We should hold on issuing an XDM erratum until the promised clarification to the XML Schema specification has been published.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19974</commentid>
    <comment_count>2</comment_count>
    <who name="zhen hua liu">zhen.liu</who>
    <bug_when>2008-04-28 22:57:12 +0000</bug_when>
    <thetext>To claify, it seems that we are stating the default value is NOT present in PSVI. What does this imply to an implementation that has supplied default
value as text node in PSVI ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36545</commentid>
    <comment_count>3</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2010-07-03 00:00:23 +0000</bug_when>
    <thetext>Responding to comment 2:  if the draft erratum for XSD 1.0 is eventually accepted, it does indeed make clear (in its current form) that no new character information items are added to empty elements with a declared default or fixed value.  In the case of elements with simple content, the default is used to populate the [schema normalized value], but mixed-content elements don&apos;t have a [schema normalized value].  (They could, but as XSD 1.0 and 1.1 are currently specified, they don&apos;t.)

The effect is essentially that a default value supplied for an element with mixed content doesn&apos;t seem to have much effect.  (That may be a sign that the decision made by the Schema WG is a bad one and that QT should push back against it.  I don&apos;t know.)

If I were responsible for a processor that did supply default values for such elements, I would (a) plan to make the newly-clarified behavior an option for my users and (b) describe the existing behavior as a non-standard method of building the XDM instance, which supplies a value from the [schema default] property of the PSVI under certain conditions (specifically, when the element has no character information item children, and a [schema default] property is given -- if you ONLY supply the default value when the type is a complex type with complex content, then add also &apos;and if no [schema normalized value] is present in the PSVI for the element).  But I am speaking only for myself.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104701</commentid>
    <comment_count>4</comment_count>
    <who name="Norman Walsh">ndw</who>
    <bug_when>2014-04-29 17:51:14 +0000</bug_when>
    <thetext>Migrated issue to XDM 3.1 and resolved it per WG decision of 2014-04-29.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>