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
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
Depends on:
Reported: 2005-11-04 16:42 UTC by Michael Kay
Modified: 2006-01-05 18:25 UTC (History)
0 users

See Also:


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
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
Comment 2 Michael Kay 2005-12-13 12:19:45 UTC
The required changes have been made to the XSLT 2.0 specification.