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 2458 - Leading whitespace in processing instructions
Summary: Leading whitespace in processing instructions
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 2.0 (show other bugs)
Version: Candidate Recommendation
Hardware: PC Windows XP
: P2 normal
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: 2005-11-04 16:42 UTC by Michael Kay
Modified: 2006-01-05 18:25 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2005-11-04 16:42:22 UTC
There's an inconsistency between processing instruction constructors in
XQuery and XSLT: XQuery strips leading whitespace from the string value of
the PI, XSLT doesn't.

XSLT 1.0 didn't, either.

I propose (after tossing a coin) that we converge on the XQuery rule. We
could also add a constraint to the data model that the string value of a PI
contains no leading whitespace.

Revealed by test Constr-comppi-space-3

Michael Kay

previously raised internally at
http://lists.w3.org/Archives/Member/w3c-xsl-query/2005Oct/0037.html
Comment 1 C. M. Sperberg-McQueen 2005-12-08 19:17:53 UTC
The two WG discussed this in our meeting of 6 December 2005,
and agreed to accept the comment and make the changes
recommended.
Comment 2 Michael Kay 2005-12-13 12:19:45 UTC
The required changes have been made to the XSLT 2.0 specification.