MULTEXT - Document MQL2. SgmlQL reference/Operators.
Text

The operator text() returns a string string1 composed of the textual representation of the result of query. If this result contains elements, the operator takes the concatenation of all the #PCDATAs occurring in those elements, excluding all gi's and attributes. If string2 is specified, all the string segments are separated by string2.

Prototype

string1 <-- text ( query [, string2 ] )

Examples

  • text ([1, 2, 3]);
  • 123
  • text(%<A>a<B>b</B>c</A>%);
  • abc
  • text(%<A>a<B>b</B>c</A>%, " ");
  • a b c
  • text([1, %<A>a<B>b</B>c</A>%, 3], " ");
  • 1 a b c 3
  • text(top DATE within file $myfile, "\n");
  • 16 July 1991

    8 September 1992

    May 1988

    6 and 7 May
    1991
    14 November
    1991
    16
    June 1959
    26 October 1992
    18 March 1980
    16 June 1959
    28 January
    1992
    4 September 1992





    | Top | Next | SgmlQL reference | LPL/CNRS | MULTEXT

    Copyright © Centre National de la Recherche Scientifique, 1997.