<?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>6282</bug_id>
          
          <creation_ts>2008-12-05 19:03:55 +0000</creation_ts>
          <short_desc>[XSLT 2.0] Typo in xsl:processing-instruction example</short_desc>
          <delta_ts>2009-02-12 15:59:23 +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 NT</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Kay">mike</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>22696</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2008-12-05 19:03:55 +0000</bug_when>
    <thetext>From xsl-list today:

Hello XSL list readers,

I know it&apos;s not the right place to post that... but may be you can either forward or direct me to the right place.

I noticed a typo in the XSLT2.0 Norm page at http://www.w3.org/TR/xslt20

Chapter 11.6 Creating Processing Instructions

The code snipet given is incorrect.
/(I am aware that code snipets are non normatives, but I find them more useful when they are correct, although in this case the correction is quite obvious !)/

W3C says:

&lt;xsl:processing-instruction name=&quot;xml-stylesheet&quot;
  select=&quot;(&apos;href=&amp;quot;book.css&amp;quot;&apos;, &apos;type=&amp;quot;text/css&amp;quot;)&quot;/&gt;


Run that code snipet through Saxon it will complain about a misquoted string.
And Saxon is right !

Correct code is:

&lt;xsl:processing-instruction name=&quot;xml-stylesheet&quot;
  select=&quot;(&apos;href=&amp;quot;book.css&amp;quot;&apos;, &apos;type=&amp;quot;text/css&amp;quot;&apos;)&quot;/&gt;

(Missing apos before the last parenthesis)



Kind regards.
Alain BENEDETTI</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23678</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2009-02-12 15:59:07 +0000</bug_when>
    <thetext>Erratum E35 has been drafted to correct this mistake. As this is purely editorial, and was not reported to the WG by an official route, I am marking it fixed and closed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>