This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 6282 - [XSLT 2.0] Typo in xsl:processing-instruction example
Summary: [XSLT 2.0] Typo in xsl:processing-instruction example
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 2.0 (show other bugs)
Version: Recommendation
Hardware: PC Windows NT
: P2 minor
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-05 19:03 UTC by Michael Kay
Modified: 2009-02-12 15:59 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2008-12-05 19:03:55 UTC
From xsl-list today:

Hello XSL list readers,

I know it'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:

<xsl:processing-instruction name="xml-stylesheet"
  select="('href=&quot;book.css&quot;', 'type=&quot;text/css&quot;)"/>


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

Correct code is:

<xsl:processing-instruction name="xml-stylesheet"
  select="('href=&quot;book.css&quot;', 'type=&quot;text/css&quot;')"/>

(Missing apos before the last parenthesis)



Kind regards.
Alain BENEDETTI
Comment 1 Michael Kay 2009-02-12 15:59:07 UTC
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.