Go to the first, previous, next, last section, table of contents.


The LaSt context framework

Author(s): Per Cederberg.

Context sensitivity can be interesting for several different purposes, having different requirements on the context predicates. This module is an attempt at creating a uniform and general purpose interface for the context predicates needed.

The framework in this module is based on generic operators, calling the appropriate implementing predicate. All to avoid a massive amount of different predicates in the interface. Currently the framework within this module supports WSDL and HTML contexts, but it can be easily exendible for other types of terms.

Usage and interface (context)

Documentation on exports (context)

REGTYPE: context/1:

Usage: context(T)

PREDICATE: html2context/3:

Usage 1: html2context(HTMLNode,HTMLTree,Context)

Usage 2: html2context(HTMLNode,HTMLTree,Context)

PREDICATE: wsdl2context/3:

Usage 1: wsdl2context(WSDLNode,WSDLTree,Context)

Usage 2: wsdl2context(WSDLNode,WSDLTree,Context)

PREDICATE: context_type/2:

Usage: context_type(Context,NodeType)

PREDICATE: context_attribute/3:

Usage: context_attribute(Context,Name,Value)

PREDICATE: context_data/2:

Usage: context_data(Context,DataLs)

PREDICATE: context_depth/2:

Usage: context_depth(Context,Depth)

PREDICATE: context_position/2:

Usage: context_position(Context,ChildNumber)

PREDICATE: context_type_position/2:

Usage: context_type_position(Context,ChildNumber)

PREDICATE: context_children/2:

Usage: context_children(Context,NumberOfChildren)

PREDICATE: context_parent/2:

Usage: context_parent(Context,ParentContext)

PREDICATE: context_ancestor/2:

Usage: context_ancestor(Context,AncestorContext)

PREDICATE: context_child/2:

Usage: context_child(Context,ChildContext)

PREDICATE: context_descendant/2:

Usage: context_descendant(Context,DescendantContext)

PREDICATE: context_sibling/2:

Usage: context_sibling(Context,SiblingContext)


Go to the first, previous, next, last section, table of contents.