File: treeql-int.xml

package info (click to toggle)
tcllib 1.20%2Bdfsg-1
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 68,064 kB
  • sloc: tcl: 216,842; ansic: 14,250; sh: 2,846; xml: 1,766; yacc: 1,145; pascal: 881; makefile: 107; perl: 84; f90: 84; python: 33; ruby: 13; php: 11
file content (74 lines) | stat: -rw-r--r-- 2,113 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?xml version="1.0" ?>
<?xml-stylesheet href="api.css" type="text/css" ?>
<!DOCTYPE api SYSTEM "api.dtd" [
]>
  <api>
  <title>Treeql Shims - Internal</title>
  <header>
  </header>
  <group>
    <name>Shims</name>

    <function>
      <name>do_attr</name>
      <args><arg>node</arg> <arg>op</arg> <arg>attr</arg></args>
      <result>returns the result of functionally applying <arg>op</arg> to the node's attribute</result>
      <detail>shim to perform operation {*}<arg>op</arg> on attribute <arg>attr</arg> of <arg>node</arg></detail>
    </function>
    
    <function>
      <name>do_getvals</name>
      <args><arg>node</arg> <arg>pattern</arg></args>
      <result>returns a list of string values of matching attributes</result>
      <detail>shim to return string values of attributes matching <arg>pattern</arg> of a given <arg>node</arg></detail>
    </function>
    
    <function>
      <name>do_ancestors</name>
      <args><arg>node</arg></args>
      <result></result>
      <detail>shim to find node ancestors by repetitive [parent]</detail>
    </function>
    
    <function>
      <name>do_previous*</name>
      <args><arg>node</arg></args>
      <result></result>
    </function>
    
    <function>
      <name>do_next*</name>
      <args><arg>node</arg></args>
      <result></result>
    </function>
    
  </group>
  <group>
    <name>SubQueries</name>

    <function>
      <name>subquery</name>
      <args></args>
      <result>return result of new query $query, preserving current node set</result>
    </function>
    
    <function>
      <name>and</name>
      <args><arg>and</arg></args>
      <result>construct the set of nodes present in both $nodes and node set $and</result>
    </function>
    
    <function>
      <name>or</name>
      <args><arg>or</arg></args>
      <result>construct the set of nodes present in $nodes or node set $or</result>
    </function>
    
    <function>
      <name>not</name>
      <args><arg>not</arg></args>
      <result>construct the set of nodes present in $nodes but not node set $not</result>
    </function>
    
  </group>
</api>