XPTY0004 A sequence of more than one item is not allowed as the first argument of
Replies (1)
Please register to reply
Added by Vladimir Nesterovsky almost 3 years ago
One more heads up. Sorry for the lack of repro.
I get an error:
Type error at char 22 in expression in xsl:value-of/@select on line 506 column 75 of log-report.xslt:
XPTY0004 A sequence of more than one item is not allowed as the first argument of
fn:normalize-space() ("
", "
")
around such xslt:
<xsl:for-each select="$xml-message!node()">
...
<xsl:where-populated>
<pre class="details">
<xsl:on-non-empty>
<xsl:text>description: </xsl:text>
</xsl:on-non-empty>
...
<xsl:value-of select="normalize-space(text())"/>
</pre>
</xsl:where-populated>
...
</xsl:for-each>
Error happens in <xsl:value-of select="normalize-space(text())"/>
My understanding is that there should not be more than one text node here.
Please disregard this message. I think text() might produce multiple children for a node(). Though, again, it did not happen in SaxonHE 10, and per nature of input no mix of nodes is expected.
Please register to reply