Dynamic errors are detected when a source document is being transformed. Some source documents will trigger an error while others will be transformed in a normal way.
If elements a and b had a numeric contents the addition would be performed without any problem.
|
XSLT
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> <xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/> <xsl:template match="/aaa"> <xsl:value-of select="a + b"/> </xsl:template> </xsl:stylesheet> |
|
|
XML
<aaa> <a>A</a> <b>B</b> </aaa> |
Output
Error:error - FORG0001
Failure converting untyped value "A" to a number Transformation failed: Run-time errors were reported
|
| Previous chapter: | Built in Types |
| Next chapter: | Use When |
| Previous page: | Type errors |
| Next page: | Recoverable dynamic errors |