Computes (number1 / number2). Works in decimal arithmetics.

Namespace

xmlns:AS="http://schema.advantages.cz/AsapFunctions"

Syntax

decimal Div(decimal number1, decimal number2)

Parameters

Name

Description

number1

Dividend

number2

Divisor

Example

 

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
    xmlns:AS="http://schema.advantages.cz/AsapFunctions"
    xmlns:date="http://exslt.org/dates-and-times" exclude-result-prefixes="AS date">
	<xsl:template match="/">
   		<ROOT>
			<xsl:value-of select="AS:Div(1,3)"/>
		</ROOT>
	</xsl:template>
</xsl:stylesheet>