Actions
Bug #5667
closedixsl:eval argument starting with a newline fails to evaluate
Start date:
2022-08-30
Due date:
% Done:
100%
Estimated time:
SEF Generated with:
Platforms:
Company:
-
Contact person:
-
Additional contact persons:
-
Description
<xsl:variable name="js-statement" as="xs:string"><![CDATA[(function isString (item) { return typeof item == 'string'})]]></xsl:variable>
<xsl:variable name="js-function" select="ixsl:eval($js-statement)"/>
<xsl:value-of select="exists($js-function)"/>
returns true
<xsl:variable name="js-statement" as="xs:string"><![CDATA[
(function isString (item) { return typeof item == 'string'})]]></xsl:variable>
<xsl:variable name="js-function" select="ixsl:eval($js-statement)"/>
<xsl:value-of select="exists($js-function)"/>
returns false
<xsl:variable name="js-statement" as="xs:string"><![CDATA[
(function isString (item) { return typeof item == 'string'})]]></xsl:variable>
<xsl:variable name="js-function" select="ixsl:eval(normalize-space($js-statement))"/>
<xsl:value-of select="exists($js-function)"/>
returns true
(note normalize-space()
)
Please register to edit this issue
Actions
Also available in: Atom PDF Tracking page