|
Home > Online Product Documentation > Table of Contents > Calling Number Functions Calling Number FunctionsThis section describes the number functions that you can call in a query. The operations you can perform are Converting an Object to a Number
In some situations, you might want to force a numeric comparison. The XPath processor performs a numeric comparison if either operand is numeric and neither is Boolean. (If one operand is Boolean, the XPath processor converts the other to Boolean and performs a Boolean comparison.) However, if neither operand is a numeric or Boolean value, you can call the
To perform a numeric comparison, you must call the
The format of the
If you omit the argument, the value of the argument defaults to a node set with the context node as its only member.
Table 67 shows how the
Obtaining the Sum of the Values in a Node Set
To obtain the sum of the values of the nodes in a set, call the
For each node in the argument node-set, the XPath processor converts the string value of the node to a number. The
Obtaining the Largest, Smallest, or Closest Number
To obtain the largest integer that is not greater than a particular number, call the
The
To obtain the smallest integer that is not less than a particular number, call the
The
To obtain the closest integer to a particular number, call the
The
|
Accessing Relational Databases as XML with Stylus Studio's File Explorer
This demonstration is the first part of our series on working with relational and XML data, covering how to use Stylus Studio's File Explorer to connect to and query relational database tables as XML.
Stylus Studio Enables Multi-Channel Publishing for University of Pittsburg Professor
Learn how Dr. David Birnbaum of the University of Pittsburgh uses Stylus Studio to develop customized XSLT stylesheets that produce enhanced versions of source documents in different output formats, including Web and print.
The Stylus Studio Advantage
Read in their own words, why customers have decided to make the switch to Stylus Studio, the World's best XML editor.
Learn Convert to XML
Convert to XML lets you convert .txt, binary, and EDI files to XML documents. Convert to XML works on a single document, or to build reusable converters that let you open flat files as XML documents. Free online demonstration!