[Bug 9290] wrong XQueryX tests - difference in dealing with newlines

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


Andrew Eisenberg <andrew.eisenberg@us.ibm.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jim.melton@acm.org




--- Comment #4 from Andrew Eisenberg <andrew.eisenberg@us.ibm.com>  2010-05-10 20:05:29 ---
I believe that the space in xqx:attributeValue must be retained. Section 2,
Mapping the XQuery Syntax, of XQueryX says:

"The XQueryX semantics are defined by a stylesheet that maps an instance of
XQueryX to an instance of XQuery; see B Transforming XQueryX to XQuery."

The following declarations appear at the beginning of xqueryx.xsl:

  <xsl:output method="text"/>
  <xsl:strip-space elements="*"/>
  <xsl:preserve-space elements="xqx:value xqx:attributeValue xqx:pragmaContents
                                xqx:optionContents xqx:xquery"/>


Section 4.4, Stripping Whitespace from a Source Tree, of XSLT 2.0 says:

"The set of whitespace-preserving element names is specified by xsl:strip-space
and xsl:preserve-space  declarations. Whether an element name is included in
the set of whitespace-preserving names is determined by the best match among
all the xsl:strip-space or xsl:preserve-space declarations: it is included if
and only if there is no match or the best match is an xsl:preserve-space
element."

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Monday, 10 May 2010 20:05:32 UTC