[Bug 2458] Leading whitespace in processing instructions

http://www.w3.org/Bugs/Public/show_bug.cgi?id=2458

           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
http://lists.w3.org/Archives/Member/w3c-xsl-query/2005Oct/0037.html

Received on Friday, 4 November 2005 16:42:27 UTC