W3C home > Mailing lists > Public > public-qt-comments@w3.org > November 2005

[Bug 2458] Leading whitespace in processing instructions

From: <bugzilla@wiggum.w3.org>
Date: Fri, 04 Nov 2005 16:42:22 +0000
To: public-qt-comments@w3.org
Message-Id: <E1EY4dy-0008Dd-8Q@wiggum.w3.org>


           Summary: Leading whitespace in processing instructions
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSLT 2.0
        AssignedTo: mike@saxonica.com
        ReportedBy: mike@saxonica.com
         QAContact: public-qt-comments@w3.org

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
Received on Friday, 4 November 2005 16:42:27 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:09 UTC