Previous | Next | Indexes
adultinternetusers > Tutorials > XSLT 2.0 Tutorial > Errors (3/6) >

Dynamic errors

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

Kevin Carr in Stanton

Natural Skin Care and European Soaps
TickTalk 5
city of stanton
internetusers


You can also get Organic Skin Care products from Bliss Bath Body and you must check out their Natural Body Lotions and bath soaps

Now if you are looking for the best deals on surf clothing from Quiksilver and Roxy then you have to check these amazing deals here:

Hey, check out this Organic Skin Care European Soaps along with Natural Lavender Body Lotion and shea butter

and we can get surf t shirts surfing shirt and And you must check out this website swim suit swimming suit and swim trunks