[Bug 2458] Leading whitespace in processing instructions

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Bug 2458] Leading whitespace in processing instructions

bugzilla (Bugzilla)-14

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: [hidden email]
        ReportedBy: [hidden email]
         QAContact: [hidden email]


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