This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
The XPath 3.0 bug 14917, resolved during CR period, introduced the following requirement for host languages of XPath under A.2.3 End-of-Line Handling (http://www.w3.org/TR/xpath-30/#id-eol-handling): <quote> The host language must specify whether the XPath 3.0 processor normalizes all line breaks on input, before parsing, and if it does so, whether it uses the rules of [XML 1.0] or [XML 1.1]. </quote> I tried to search using several keywords for whether we specify that normatively somewhere, but I couldn't find it. I think we ought to add somehow/somewhere specifically how line endings are (not) normalized for XPath expressions to meet this XPath 3.0 requirement (note: the bug also applies to earlier XPath versions and by extension to earlier XSLT versions).
Subject to WG approval, I have added the following text at the end of section 5.3: <p diff="add" at="S-bug28216">The XPath specification states that the host language must specify whether the XPath processor normalizes all line breaks on input, before parsing, and if it does so, whether it uses the rules of [XML 1.0] or [XML 1.1]. In the case of XSLT, all handling of line breaks is the responsibility of the XML parser (which may support either XML 1.0 or XML 1.1); the XSLT and XPath processors make no further changes.</p> <note><p diff="add" at="S-bug28216">Most XPath expressions in a stylesheet appear within XML attributes. They are therefore subject to XML line-ending normalization (for example, a CRLF sequence is normalized to LF) and also to XML attribute-value normalization, which replaces tabs and newlines by spaces. XPath expressions appearing in text value templates, however (see TVTs) are subject to line-ending normalization but not attribute value normalization). In both cases, normalization of whitespace can be prevented by using character references such as <code>&#x9;</code>.</p></note>
The changes in comment #1 were accepted.