<?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>8399</bug_id>
          
          <creation_ts>2009-11-29 15:58:56 +0000</creation_ts>
          <short_desc>inline schema example still has errors</short_desc>
          <delta_ts>2010-07-20 09:54:41 +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>Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.w3.org/XML/2007/qt-errata/xslt-errata.html#E28</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="Martin Honnen">martin.honnen</reporter>
          <assigned_to name="Michael Kay">mike</assigned_to>
          <cc>sca.w3c</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>29781</commentid>
    <comment_count>0</comment_count>
    <who name="Martin Honnen">martin.honnen</who>
    <bug_when>2009-11-29 15:58:56 +0000</bug_when>
    <thetext>The errata http://www.w3.org/XML/2007/qt-errata/xslt-errata.html#E28 corrects the inline schema example to

&lt;xsl:import-schema&gt;
  &lt;xs:schema targetNamespace=&quot;http://localhost/ns/yes-no&quot;
             xmlns:xs=&quot;http://www.w3.org/2001/XMLSchema&quot;&gt;
    &lt;xs:simpleType name=&quot;local:yes-no&quot;&gt;
      &lt;xs:restriction base=&quot;xs:string&quot;&gt;
        &lt;xs:enumeration value=&quot;yes&quot;/&gt;
        &lt;xs:enumeration value=&quot;no&quot;/&gt;
      &lt;/xs:restriction&gt;
    &lt;/xs:simpleType&gt;
  &lt;/xs:schema&gt;
&lt;/xsl:import-schema&gt;

&lt;xs:variable name=&quot;condition&quot; select=&quot;local:yes-no(&apos;yes&apos;)&quot; as=&quot;local:yes-no&quot;/&gt;

That still has two errors in my understanding, the obvious is that the variable declaration needs to use xsl:variable, not xs:variable, and in my understanding the type needs to be defined as
  &lt;xs:simpleType name=&quot;yes-no&quot;&gt;
without a prefix, as http://www.w3.org/TR/xmlschema-1/#declare-datatype defines the name as an NCName, not as a QName.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29791</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2009-11-30 11:39:52 +0000</bug_when>
    <thetext>You are quite correct.

For the F+O spec I have added automated testing of examples to the build process for the spec. It&apos;s trickier to do for the XSLT spec because the examples are usually fragments, but there would clearly be value in doing it.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35831</commentid>
    <comment_count>2</comment_count>
    <who name="Sharon Adler">sca.w3c</who>
    <bug_when>2010-05-25 21:16:53 +0000</bug_when>
    <thetext>At the 20 May 2010 the XSLT WG accepted the correction and decided to issue an erratum.

We will also explore using automated checking.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36895</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2010-07-15 09:22:00 +0000</bug_when>
    <thetext>Decided to apply this change to the PER text of the spec so that it will be corrected in the second edition.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37005</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2010-07-20 09:54:41 +0000</bug_when>
    <thetext>Committed this change (to xsl-query-specs/xslt/ed2/xslt20.xml)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>