Home : Tutorials : XML and Related Technologies


to the main page about the tutorial  THE XML REVOLUTION  -  TECHNOLOGIES FOR THE FUTURE WEB back up next

Expressions

Available types:
  • node-set (set of nodes)
  • boolean (true or false)
  • number (floating point)
  • string (Unicode text)

An expression can be:

  • a constant, e.g. "..."
  • a variable:   $variable
  • a function call:   function ( arguments )
  • a boolean expression:   or, and, =, !=, <, >, <=, >= (standard precedence, all left associative)
  • a numerical expression:   +, -, *, div, mod
  • a node-set expression (using location paths!):   | (set union)

Coercion may occur at function arguments and when expressions are used as predicates.

Variables and functions are evaluated using the context.

back COPYRIGHT © 2000-2003 ANDERS MØLLER & MICHAEL I. SCHWARTZBACH next


Home : Tutorials : XML and Related Technologies

 

Copyright© 1998-2004 All Rights Reserved. No portion of this site may be reproduced or redistributed without prior written permission from VistaEdge Technologies

All registered trademarks appearing on this site are the property of their respective owners. Java is a trademark or registered trademark of Sun Microsystems, Inc. in the United States and other countries. This site is not connected to Sun Microsystems, Inc. and is not sponsored by Sun Microsystems, Inc.