Next: , Up: Symbol Types   [Contents][Index]


C.2.1 Parameter Symbols

Global parameters define all inputs to the program.

match: preproc:symtable on lv:param

Produce a param symbol with the following attributes:

name

Name of the parameter as provided by lv:param/@name.

type

The datatype defining the parameter’s domain, as provided by lv:param/@type.

dim

Numeric dimension converted from its string representation in lv:param/@set.17

desc

Description as provided by lv:param/@desc.

tex

TeX symbol used when rendering parameter in an equation.

keep

Always ‘true’ to ensure that the symbol is retained after linking.

<template match="lv:param"  mode="preproc:symtable"  priority="5">
  <variable name="dim"  as="xs:integer"  select="_symtable:str-to-dim( @set )" />

  <preproc:sym type="param"  name="{@name}"  dim="{$dim}"  desc="{@desc}"  dtype="{@type}"  default="{@default}"  tex="{@sym}" />
</template>

Footnotes

(17)

The attribute name lv:param/@set is unfortunate and simply incorrect terminology with how it is used. It will be changed in the future.