<?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>1519</bug_id>
          
          <creation_ts>2005-07-01 19:58:09 +0000</creation_ts>
          <short_desc>WXS&apos;s &quot;data type namespace&quot; is not reserved</short_desc>
          <delta_ts>2005-07-21 20:05:49 +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>XSLT 2.0</component>
          <version>Last Call drafts</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>INVALID</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="Frans Englich">frans.englich</reporter>
          <assigned_to name="Michael Kay">mike</assigned_to>
          
          
          <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>4414</commentid>
    <comment_count>0</comment_count>
    <who name="Frans Englich">frans.englich</who>
    <bug_when>2005-07-01 19:58:09 +0000</bug_when>
    <thetext>Among the namespaces categorized as reserved, as per 3.2 Reserved Namespaces, I   
don&apos;t find the W3C XML Schema namespace, which only allows addressing built-in   
types(http://www.w3.org/2001/XMLSchema-datatypes).   
   
I cannot comment on the issue of the two namespaces(if there is an issue at 
all), but  
my current thought is that the data types namespace should at least be  
reserved. It would otherwise be possible to for example create a stylesheet  
function(xsl:function) with a local name identical to a primitive type and the  
namespace being WXS-datatypes, hence looking like a constructor function, and  
creating potential problems.  
  
  
Cheers,   
Frans</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4415</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Rys">mrys</who>
    <bug_when>2005-07-01 20:05:00 +0000</bug_when>
    <thetext>Since the -datatypes namespace is not normative and would lead to a problem 
with having two non-related types in our type system we discourage the use of 
these types and decided a long time ago to not include them in the type system 
or provide a predefined namespace prefix binding.

Best regards
Michael (speaking for himself)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4416</commentid>
    <comment_count>2</comment_count>
    <who name="Frans Englich">frans.englich</who>
    <bug_when>2005-07-01 21:19:06 +0000</bug_when>
    <thetext>   
Ok. In effect, the -datatypes namespace is an arbitrary namespace with no   
special meaning in any context.   
   
This namespace-issue is a bit confusing matter, in my opinion. It might clear 
future confusion if the -datatypes namespace was explicitly mentioned in a 
specification(xslt20?), and outline the rationale. It might be informative, but 
also promote conformance among implementations, since if special treatment of 
the -datatypes namespace is implemented, it can lead to clashes with user 
code(this change to the specification is a suggestion, not a request). 
  
(I am fine with having the bug report closed as INVALID, or any other 
resolution.) 
   
 
Cheers,   
Frans   
   </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4418</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2005-07-01 21:24:55 +0000</bug_when>
    <thetext>A personal response: XSLT attaches no special meaning to names in the W3C Schema
datatypes namespace, for example, data types in this namespace are not
recognized as data types, and functions in this namespace are not recognized as
constructors. Therefore, the namespace falls into the same category as many
other namespaces that some other group has defined: it&apos;s good etiquette to avoid
using them with a meaning other than the meaning defined by the namespace&apos;s
owner, but the XSLT processor won&apos;t complain if you do otherwise.

The decision not to recognize http://www.w3.org/2001/XMLSchema-datatypes (let&apos;s
call it xsdt:) was a deliberate one: there&apos;s a technical problem with the
definition of this namespace in that xsdt:integer is a subtype of xs:integer,
and xsdt:decimal is a subtype of xs:decimal, and therefore xsdt:integer is not a
subtype of xsdt:decimal.

Michael Kay</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>