--- /dev/null
+#!/usr/bin/python -u
+#
+# This is the API builder, it parses the C sources and build the
+# API formal description in XML.
+#
+# See Copyright for the status of this software.
+#
+# daniel@veillard.com
+#
+import sys
+import string
+import glob
+
+def escape(raw):
+ raw = string.replace(raw, '&', '&')
+ raw = string.replace(raw, '<', '<')
+ raw = string.replace(raw, '>', '>')
+ raw = string.replace(raw, "'", ''')
+ raw = string.replace(raw, '"', '"')
+ return raw
+
+class identifier:
+ def __init__(self, name, module=None, type=None, info=None, extra=None):
+ self.name = name
+ self.module = module
+ self.type = type
+ self.info = info
+ self.extra = extra
+ self.static = 0
+
+ def __repr__(self):
+ r = "%s %s:" % (self.type, self.name)
+ if self.static:
+ r = r + " static"
+ if self.module != None:
+ r = r + " from %s" % (self.module)
+ if self.info != None:
+ r = r + " " + `self.info`
+ if self.extra != None:
+ r = r + " " + `self.extra`
+ return r
+
+
+ def set_module(self, module):
+ self.module = module
+ def set_type(self, type):
+ self.type = type
+ def set_info(self, info):
+ self.info = info
+ def set_extra(self, extra):
+ self.extra = extra
+ def set_static(self, static):
+ self.static = static
+
+ def update(self, module, type = None, info = None, extra=None):
+ if module != None and self.module == None:
+ self.set_module(module)
+ if type != None and self.type == None:
+ self.set_type(type)
+ if info != None:
+ self.set_info(info)
+ if extra != None:
+ self.set_extra(extra)
+
+
+class index:
+ def __init__(self, name = "noname"):
+ self.name = name;
+ self.identifiers = {}
+ self.functions = {}
+ self.variables = {}
+ self.includes = {}
+ self.structs = {}
+ self.enums = {}
+ self.typedefs = {}
+ self.macros = {}
+ self.references = {}
+
+ def add(self, name, module, static, type, info=None, extra=None):
+ if name[0:2] == '__':
+ return None
+ d = None
+ try:
+ d = self.identifiers[name]
+ d.update(module, type, info, extra)
+ except:
+ d = identifier(name, module, type, info, extra)
+ self.identifiers[name] = d
+
+ if d != None and static == 1:
+ d.set_static(1)
+
+ if d != None and name != None and type != None:
+ if type == "function":
+ self.functions[name] = d
+ elif type == "functype":
+ self.functions[name] = d
+ elif type == "variable":
+ self.variables[name] = d
+ elif type == "include":
+ self.includes[name] = d
+ elif type == "struct":
+ self.structs[name] = d
+ elif type == "enum":
+ self.enums[name] = d
+ elif type == "typedef":
+ self.typedefs[name] = d
+ elif type == "macro":
+ self.macros[name] = d
+ else:
+ print "Unable to register type ", type
+ return d
+
+ def merge(self, idx):
+ for id in idx.functions.keys():
+ #
+ # macro might be used to override functions or variables
+ # definitions
+ #
+ if self.macros.has_key(id):
+ del self.macros[id]
+ if self.functions.has_key(id):
+ print "function %s from %s redeclared in %s" % (
+ id, self.functions[id].module, idx.functions[id].module)
+ else:
+ self.functions[id] = idx.functions[id]
+ self.identifiers[id] = idx.functions[id]
+ for id in idx.variables.keys():
+ #
+ # macro might be used to override functions or variables
+ # definitions
+ #
+ if self.macros.has_key(id):
+ del self.macros[id]
+ if self.variables.has_key(id):
+ print "variable %s from %s redeclared in %s" % (
+ id, self.variables[id].module, idx.variables[id].module)
+ else:
+ self.variables[id] = idx.variables[id]
+ self.identifiers[id] = idx.variables[id]
+ for id in idx.structs.keys():
+ if self.structs.has_key(id):
+ print "struct %s from %s redeclared in %s" % (
+ id, self.structs[id].module, idx.structs[id].module)
+ else:
+ self.structs[id] = idx.structs[id]
+ self.identifiers[id] = idx.structs[id]
+ for id in idx.typedefs.keys():
+ if self.typedefs.has_key(id):
+ print "typedef %s from %s redeclared in %s" % (
+ id, self.typedefs[id].module, idx.typedefs[id].module)
+ else:
+ self.typedefs[id] = idx.typedefs[id]
+ self.identifiers[id] = idx.typedefs[id]
+ for id in idx.macros.keys():
+ #
+ # macro might be used to override functions or variables
+ # definitions
+ #
+ if self.variables.has_key(id):
+ continue
+ if self.functions.has_key(id):
+ continue
+ if self.enums.has_key(id):
+ continue
+ if self.macros.has_key(id):
+ print "macro %s from %s redeclared in %s" % (
+ id, self.macros[id].module, idx.macros[id].module)
+ else:
+ self.macros[id] = idx.macros[id]
+ self.identifiers[id] = idx.macros[id]
+ for id in idx.enums.keys():
+ if self.enums.has_key(id):
+ print "enum %s from %s redeclared in %s" % (
+ id, self.enums[id].module, idx.enums[id].module)
+ else:
+ self.enums[id] = idx.enums[id]
+ self.identifiers[id] = idx.enums[id]
+
+ def merge_public(self, idx):
+ for id in idx.functions.keys():
+ if self.functions.has_key(id):
+ up = idx.functions[id]
+ self.functions[id].update(None, up.type, up.info, up.extra)
+ else:
+ if idx.functions[id].static == 0:
+ self.functions[id] = idx.functions[id]
+
+ def analyze_dict(self, type, dict):
+ count = 0
+ public = 0
+ for name in dict.keys():
+ id = dict[name]
+ count = count + 1
+ if id.static == 0:
+ public = public + 1
+ if count != public:
+ print " %d %s , %d public" % (count, type, public)
+ elif count != 0:
+ print " %d public %s" % (count, type)
+
+
+ def analyze(self):
+ self.analyze_dict("functions", self.functions)
+ self.analyze_dict("variables", self.variables)
+ self.analyze_dict("structs", self.structs)
+ self.analyze_dict("typedefs", self.typedefs)
+ self.analyze_dict("macros", self.macros)
+
+#
+# C parser analysis code
+#
+ignored_files = {
+ "trio": "too many non standard macros",
+ "trio.c": "too many non standard macros",
+ "trionan.c": "too many non standard macros",
+ "triostr.c": "too many non standard macros",
+ "acconfig.h": "generated portability layer",
+ "config.h": "generated portability layer",
+ "libxml.h": "internal only",
+}
+
+ignored_words = {
+ "WINAPI": (0, "Windows keyword"),
+ "LIBXML_DLL_IMPORT": (0, "Special macro to flag external keywords"),
+ "__declspec": (3, "Windows keyword"),
+ "ATTRIBUTE_UNUSED": (0, "macro keyword"),
+}
+
+class CLexer:
+ """A lexer for the C language, tokenize the input by reading and
+ analyzing it line by line"""
+ def __init__(self, input):
+ self.input = input
+ self.tokens = []
+ self.line = ""
+ self.lineno = 0
+
+ def getline(self):
+ line = ''
+ while line == '':
+ line = self.input.readline()
+ if not line:
+ return None
+ self.lineno = self.lineno + 1
+ line = string.lstrip(line)
+ line = string.rstrip(line)
+ if line == '':
+ continue
+ while line[-1] == '\\':
+ line = line[:-1]
+ n = self.input.readline()
+ self.lineno = self.lineno + 1
+ n = string.lstrip(n)
+ n = string.rstrip(n)
+ if not n:
+ break
+ else:
+ line = line + n
+ return line
+
+ def getlineno(self):
+ return self.lineno
+
+ def push(self, token):
+ self.tokens.insert(0, token);
+
+ def debug(self):
+ print "Last token: ", self.last
+ print "Token queue: ", self.tokens
+ print "Line %d end: " % (self.lineno), self.line
+
+ def token(self):
+ while self.tokens == []:
+ if self.line == "":
+ line = self.getline()
+ else:
+ line = self.line
+ self.line = ""
+ if line == None:
+ return None
+
+ if line[0] == '#':
+ self.tokens = map((lambda x: ('preproc', x)),
+ string.split(line))
+ break;
+ l = len(line)
+ if line[0] == '"' or line[0] == "'":
+ end = line[0]
+ line = line[1:]
+ found = 0
+ tok = ""
+ while found == 0:
+ i = 0
+ l = len(line)
+ while i < l:
+ if line[i] == end:
+ self.line = line[i+1:]
+ line = line[:i]
+ l = i
+ found = 1
+ break
+ if line[i] == '\\':
+ i = i + 1
+ i = i + 1
+ tok = tok + line
+ if found == 0:
+ line = self.getline()
+ if line == None:
+ return None
+ self.last = ('string', tok)
+ return self.last
+
+ if l >= 2 and line[0] == '/' and line[1] == '*':
+ line = line[2:]
+ found = 0
+ tok = ""
+ while found == 0:
+ i = 0
+ l = len(line)
+ while i < l:
+ if line[i] == '*' and i+1 < l and line[i+1] == '/':
+ self.line = line[i+2:]
+ line = line[:i-1]
+ l = i
+ found = 1
+ break
+ i = i + 1
+ if tok != "":
+ tok = tok + "\n"
+ tok = tok + line
+ if found == 0:
+ line = self.getline()
+ if line == None:
+ return None
+ self.last = ('comment', tok)
+ return self.last
+ if l >= 2 and line[0] == '/' and line[1] == '/':
+ line = line[2:]
+ self.last = ('comment', line)
+ return self.last
+ i = 0
+ while i < l:
+ if line[i] == '/' and i+1 < l and line[i+1] == '/':
+ self.line = line[i:]
+ line = line[:i]
+ break
+ if line[i] == '/' and i+1 < l and line[i+1] == '*':
+ self.line = line[i:]
+ line = line[:i]
+ break
+ if line[i] == '"' or line[i] == "'":
+ self.line = line[i:]
+ line = line[:i]
+ break
+ i = i + 1
+ l = len(line)
+ i = 0
+ while i < l:
+ if line[i] == ' ' or line[i] == '\t':
+ i = i + 1
+ continue
+ o = ord(line[i])
+ if (o >= 97 and o <= 122) or (o >= 65 and o <= 90) or \
+ (o >= 48 and o <= 57):
+ s = i
+ while i < l:
+ o = ord(line[i])
+ if (o >= 97 and o <= 122) or (o >= 65 and o <= 90) or \
+ (o >= 48 and o <= 57) or string.find(
+ " \t(){}:;,+-*/%&!|[]=><", line[i]) == -1:
+ i = i + 1
+ else:
+ break
+ self.tokens.append(('name', line[s:i]))
+ continue
+ if string.find("(){}:;,[]", line[i]) != -1:
+# if line[i] == '(' or line[i] == ')' or line[i] == '{' or \
+# line[i] == '}' or line[i] == ':' or line[i] == ';' or \
+# line[i] == ',' or line[i] == '[' or line[i] == ']':
+ self.tokens.append(('sep', line[i]))
+ i = i + 1
+ continue
+ if string.find("+-*><=/%&!|.", line[i]) != -1:
+# if line[i] == '+' or line[i] == '-' or line[i] == '*' or \
+# line[i] == '>' or line[i] == '<' or line[i] == '=' or \
+# line[i] == '/' or line[i] == '%' or line[i] == '&' or \
+# line[i] == '!' or line[i] == '|' or line[i] == '.':
+ if line[i] == '.' and i + 2 < l and \
+ line[i+1] == '.' and line[i+2] == '.':
+ self.tokens.append(('name', '...'))
+ i = i + 3
+ continue
+
+ j = i + 1
+ if j < l and (
+ string.find("+-*><=/%&!|", line[j]) != -1):
+# line[j] == '+' or line[j] == '-' or line[j] == '*' or \
+# line[j] == '>' or line[j] == '<' or line[j] == '=' or \
+# line[j] == '/' or line[j] == '%' or line[j] == '&' or \
+# line[j] == '!' or line[j] == '|'):
+ self.tokens.append(('op', line[i:j+1]))
+ i = j + 1
+ else:
+ self.tokens.append(('op', line[i]))
+ i = i + 1
+ continue
+ s = i
+ while i < l:
+ o = ord(line[i])
+ if (o >= 97 and o <= 122) or (o >= 65 and o <= 90) or \
+ (o >= 48 and o <= 57) or (
+ string.find(" \t(){}:;,+-*/%&!|[]=><", line[i]) == -1):
+# line[i] != ' ' and line[i] != '\t' and
+# line[i] != '(' and line[i] != ')' and
+# line[i] != '{' and line[i] != '}' and
+# line[i] != ':' and line[i] != ';' and
+# line[i] != ',' and line[i] != '+' and
+# line[i] != '-' and line[i] != '*' and
+# line[i] != '/' and line[i] != '%' and
+# line[i] != '&' and line[i] != '!' and
+# line[i] != '|' and line[i] != '[' and
+# line[i] != ']' and line[i] != '=' and
+# line[i] != '*' and line[i] != '>' and
+# line[i] != '<'):
+ i = i + 1
+ else:
+ break
+ self.tokens.append(('name', line[s:i]))
+
+ tok = self.tokens[0]
+ self.tokens = self.tokens[1:]
+ self.last = tok
+ return tok
+
+class CParser:
+ """The C module parser"""
+ def __init__(self, filename, idx = None):
+ self.filename = filename
+ if len(filename) > 2 and filename[-2:] == '.h':
+ self.is_header = 1
+ else:
+ self.is_header = 0
+ self.input = open(filename)
+ self.lexer = CLexer(self.input)
+ if idx == None:
+ self.index = index()
+ else:
+ self.index = idx
+ self.top_comment = ""
+ self.last_comment = ""
+ self.comment = None
+
+ def lineno(self):
+ return self.lexer.getlineno()
+
+ def error(self, msg, token=-1):
+ print "Parse Error: " + msg
+ if token != -1:
+ print "Got token ", token
+ self.lexer.debug()
+ sys.exit(1)
+
+ def debug(self, msg, token=-1):
+ print "Debug: " + msg
+ if token != -1:
+ print "Got token ", token
+ self.lexer.debug()
+
+ def parseComment(self, token):
+ if self.top_comment == "":
+ self.top_comment = token[1]
+ if self.comment == None or token[1][0] == '*':
+ self.comment = token[1];
+ else:
+ self.comment = self.comment + token[1]
+ token = self.lexer.token()
+ return token
+
+ #
+ # Parse a comment block associate to a macro
+ #
+ def parseMacroComment(self, name, quiet = 0):
+ if name[0:2] == '__':
+ quiet = 1
+
+ args = []
+ desc = ""
+
+ if self.comment == None:
+ if not quiet:
+ print "Missing comment for macro %s" % (name)
+ return((args, desc))
+ if self.comment[0] != '*':
+ if not quiet:
+ print "Missing * in macro comment for %s" % (name)
+ return((args, desc))
+ lines = string.split(self.comment, '\n')
+ if lines[0] == '*':
+ del lines[0]
+ if lines[0] != "* %s:" % (name):
+ if not quiet:
+ print "Misformatted macro comment for %s" % (name)
+ print " Expecting '* %s:' got '%s'" % (name, lines[0])
+ return((args, desc))
+ del lines[0]
+ while lines[0] == '*':
+ del lines[0]
+ while len(lines) > 0 and lines[0][0:3] == '* @':
+ l = lines[0][3:]
+ try:
+ (arg, desc) = string.split(l, ':', 1)
+ desc=string.strip(desc)
+ arg=string.strip(arg)
+ except:
+ if not quiet:
+ print "Misformatted macro comment for %s" % (name)
+ print " problem with '%s'" % (lines[0])
+ del lines[0]
+ continue
+ del lines[0]
+ l = string.strip(lines[0])
+ while len(l) > 2 and l[0:3] != '* @':
+ while l[0] == '*':
+ l = l[1:]
+ desc = desc + ' ' + string.strip(l)
+ del lines[0]
+ if len(lines) == 0:
+ break
+ l = lines[0]
+ args.append((arg, desc))
+ while len(lines) > 0 and lines[0] == '*':
+ del lines[0]
+ desc = ""
+ while len(lines) > 0:
+ l = lines[0]
+ while len(l) > 0 and l[0] == '*':
+ l = l[1:]
+ l = string.strip(l)
+ desc = desc + " " + l
+ del lines[0]
+
+ desc = string.strip(desc)
+
+ if quiet == 0:
+ if desc == "":
+ print "Macro comment for %s lack description of the macro" % (name)
+
+ return((args, desc))
+
+ #
+ # Parse a comment block and merge the informations found in the
+ # parameters descriptions, finally returns a block as complete
+ # as possible
+ #
+ def mergeFunctionComment(self, name, description, quiet = 0):
+ if name == 'main':
+ quiet = 1
+ if name[0:2] == '__':
+ quiet = 1
+
+ (ret, args) = description
+ desc = ""
+ retdesc = ""
+
+ if self.comment == None:
+ if not quiet:
+ print "Missing comment for function %s" % (name)
+ return(((ret[0], retdesc), args, desc))
+ if self.comment[0] != '*':
+ if not quiet:
+ print "Missing * in function comment for %s" % (name)
+ return(((ret[0], retdesc), args, desc))
+ lines = string.split(self.comment, '\n')
+ if lines[0] == '*':
+ del lines[0]
+ if lines[0] != "* %s:" % (name):
+ if not quiet:
+ print "Misformatted function comment for %s" % (name)
+ print " Expecting '* %s:' got '%s'" % (name, lines[0])
+ return(((ret[0], retdesc), args, desc))
+ del lines[0]
+ while lines[0] == '*':
+ del lines[0]
+ nbargs = len(args)
+ while len(lines) > 0 and lines[0][0:3] == '* @':
+ l = lines[0][3:]
+ try:
+ (arg, desc) = string.split(l, ':', 1)
+ desc=string.strip(desc)
+ arg=string.strip(arg)
+ except:
+ if not quiet:
+ print "Misformatted function comment for %s" % (name)
+ print " problem with '%s'" % (lines[0])
+ del lines[0]
+ continue
+ del lines[0]
+ l = string.strip(lines[0])
+ while len(l) > 2 and l[0:3] != '* @':
+ while l[0] == '*':
+ l = l[1:]
+ desc = desc + ' ' + string.strip(l)
+ del lines[0]
+ if len(lines) == 0:
+ break
+ l = lines[0]
+ i = 0
+ while i < nbargs:
+ if args[i][1] == arg:
+ args[i] = (args[i][0], arg, desc)
+ break;
+ i = i + 1
+ if i >= nbargs:
+ if not quiet:
+ print "Uname to find arg %s from function comment for %s" % (
+ arg, name)
+ while len(lines) > 0 and lines[0] == '*':
+ del lines[0]
+ desc = ""
+ while len(lines) > 0:
+ l = lines[0]
+ while len(l) > 0 and l[0] == '*':
+ l = l[1:]
+ l = string.strip(l)
+ if len(l) >= 6 and l[0:6] == "return" or l[0:6] == "Return":
+ try:
+ l = string.split(l, ' ', 1)[1]
+ except:
+ l = ""
+ retdesc = string.strip(l)
+ del lines[0]
+ while len(lines) > 0:
+ l = lines[0]
+ while len(l) > 0 and l[0] == '*':
+ l = l[1:]
+ l = string.strip(l)
+ retdesc = retdesc + " " + l
+ del lines[0]
+ else:
+ desc = desc + " " + l
+ del lines[0]
+
+ retdesc = string.strip(retdesc)
+ desc = string.strip(desc)
+
+ if quiet == 0:
+ #
+ # report missing comments
+ #
+ i = 0
+ while i < nbargs:
+ if args[i][2] == None and args[i][0] != "void" and args[i][1] != None:
+ print "Function comment for %s lack description of arg %s" % (name, args[i][1])
+ i = i + 1
+ if retdesc == "" and ret[0] != "void":
+ print "Function comment for %s lack description of return value" % (name)
+ if desc == "":
+ print "Function comment for %s lack description of the function" % (name)
+
+
+ return(((ret[0], retdesc), args, desc))
+
+ def parsePreproc(self, token):
+ name = token[1]
+ if name == "#include":
+ token = self.lexer.token()
+ if token == None:
+ return None
+ if token[0] == 'preproc':
+ self.index.add(token[1], self.filename, not self.is_header,
+ "include")
+ return self.lexer.token()
+ return token
+ if name == "#define":
+ token = self.lexer.token()
+ if token == None:
+ return None
+ if token[0] == 'preproc':
+ # TODO macros with arguments
+ name = token[1]
+ lst = []
+ token = self.lexer.token()
+ while token != None and token[0] == 'preproc' and \
+ token[1][0] != '#':
+ lst.append(token[1])
+ token = self.lexer.token()
+ try:
+ name = string.split(name, '(') [0]
+ except:
+ pass
+ info = self.parseMacroComment(name, not self.is_header)
+ self.index.add(name, self.filename, not self.is_header,
+ "macro", info)
+ return token
+ token = self.lexer.token()
+ while token != None and token[0] == 'preproc' and \
+ token[1][0] != '#':
+ token = self.lexer.token()
+ return token
+
+ #
+ # token acquisition on top of the lexer, it handle internally
+ # preprocessor and comments since they are logically not part of
+ # the program structure.
+ #
+ def token(self):
+ global ignored_words
+
+ token = self.lexer.token()
+ while token != None:
+ if token[0] == 'comment':
+ token = self.parseComment(token)
+ continue
+ elif token[0] == 'preproc':
+ token = self.parsePreproc(token)
+ continue
+ elif token[0] == "name" and ignored_words.has_key(token[1]):
+ (n, info) = ignored_words[token[1]]
+ i = 0
+ while i < n:
+ token = self.lexer.token()
+ i = i + 1
+ token = self.lexer.token()
+ continue
+ else:
+ #print "=> ", token
+ return token
+ return None
+
+ #
+ # Parse a typedef, it records the type and its name.
+ #
+ def parseTypedef(self, token):
+ if token == None:
+ return None
+ token = self.parseType(token)
+ if token == None:
+ self.error("parsing typedef")
+ return None
+ base_type = self.type
+ type = base_type
+ #self.debug("end typedef type", token)
+ while token != None:
+ if token[0] == "name":
+ name = token[1]
+ signature = self.signature
+ if signature != None:
+ d = self.mergeFunctionComment(name,
+ ((type, None), signature), 1)
+ self.index.add(name, self.filename, not self.is_header,
+ "functype", d)
+ else:
+ if base_type == "struct":
+ self.index.add(name, self.filename, not self.is_header,
+ "struct", type)
+ base_type = "struct " + name
+ else:
+ self.index.add(name, self.filename, not self.is_header,
+ "typedef", type)
+ token = self.token()
+ else:
+ self.error("parsing typedef: expecting a name")
+ return token
+ #self.debug("end typedef", token)
+ if token != None and token[0] == 'sep' and token[1] == ',':
+ type = base_type
+ token = self.token()
+ while token != None and token[0] == "op":
+ type = type + token[1]
+ token = self.token()
+ elif token != None and token[0] == 'sep' and token[1] == ';':
+ break;
+ elif token != None and token[0] == 'name':
+ type = base_type
+ continue;
+ else:
+ self.error("parsing typedef: expecting ';'", token)
+ return token
+ token = self.token()
+ return token
+
+ #
+ # Parse a C code block, used for functions it parse till
+ # the balancing } included
+ #
+ def parseBlock(self, token):
+ while token != None:
+ if token[0] == "sep" and token[1] == "{":
+ token = self.token()
+ token = self.parseBlock(token)
+ elif token[0] == "sep" and token[1] == "}":
+ self.comment = None
+ token = self.token()
+ return token
+ else:
+ token = self.token()
+ return token
+
+ #
+ # Parse a C struct definition till the balancing }
+ #
+ def parseStruct(self, token):
+ fields = []
+ #self.debug("start parseStruct", token)
+ while token != None:
+ if token[0] == "sep" and token[1] == "{":
+ token = self.token()
+ token = self.parseTypeBlock(token)
+ elif token[0] == "sep" and token[1] == "}":
+ self.struct_fields = fields
+ #self.debug("end parseStruct", token)
+ #print fields
+ token = self.token()
+ return token
+ else:
+ base_type = self.type
+ #self.debug("before parseType", token)
+ token = self.parseType(token)
+ #self.debug("after parseType", token)
+ if token != None and token[0] == "name":
+ fname = token[1]
+ token = self.token()
+ if token[0] == "sep" and token[1] == ";":
+ self.comment = None
+ token = self.token()
+ fields.append((self.type, fname, self.comment))
+ self.comment = None
+ else:
+ self.error("parseStruct: expecting ;", token)
+ elif token != None and token[0] == "sep" and token[1] == "{":
+ token = self.token()
+ token = self.parseTypeBlock(token)
+ if token != None and token[0] == "name":
+ token = self.token()
+ if token != None and token[0] == "sep" and token[1] == ";":
+ token = self.token()
+ else:
+ self.error("parseStruct: expecting ;", token)
+ else:
+ self.error("parseStruct: name", token)
+ token = self.token()
+ self.type = base_type;
+ self.struct_fields = fields
+ #self.debug("end parseStruct", token)
+ #print fields
+ return token
+
+ #
+ # Parse a C enum block, parse till the balancing }
+ #
+ def parseEnumBlock(self, token):
+ self.enums = []
+ name = None
+ self.comment = None
+ comment = ""
+ value = ""
+ while token != None:
+ if token[0] == "sep" and token[1] == "{":
+ token = self.token()
+ token = self.parseTypeBlock(token)
+ elif token[0] == "sep" and token[1] == "}":
+ if name != None:
+ if self.comment != None:
+ comment = self.comment
+ self.comment = None
+ self.enums.append((name, value, comment))
+ token = self.token()
+ return token
+ elif token[0] == "name":
+ if name != None:
+ if self.comment != None:
+ comment = string.strip(self.comment)
+ self.comment = None
+ self.enums.append((name, value, comment))
+ name = token[1]
+ comment = ""
+ value = ""
+ token = self.token()
+ if token[0] == "op" and token[1][0] == "=":
+ if len(token[1]) > 1:
+ value = token[1][1:]
+ token = self.token()
+ while token[0] != "sep" or (token[1] != ',' and
+ token[1] != '}'):
+ value = value + token[1]
+ token = self.token()
+ if token[0] == "sep" and token[1] == ",":
+ token = self.token()
+ else:
+ token = self.token()
+ return token
+
+ #
+ # Parse a C definition block, used for structs it parse till
+ # the balancing }
+ #
+ def parseTypeBlock(self, token):
+ while token != None:
+ if token[0] == "sep" and token[1] == "{":
+ token = self.token()
+ token = self.parseTypeBlock(token)
+ elif token[0] == "sep" and token[1] == "}":
+ token = self.token()
+ return token
+ else:
+ token = self.token()
+ return token
+
+ #
+ # Parse a type: the fact that the type name can either occur after
+ # the definition or within the definition makes it a little harder
+ # if inside, the name token is pushed back before returning
+ #
+ def parseType(self, token):
+ self.type = ""
+ self.struct_fields = []
+ self.signature = None
+ if token == None:
+ return token
+
+ while token[0] == "name" and (
+ token[1] == "const" or token[1] == "unsigned"):
+ if self.type == "":
+ self.type = token[1]
+ else:
+ self.type = self.type + " " + token[1]
+ token = self.token()
+
+ if token[0] == "name" and (token[1] == "long" or token[1] == "short"):
+ if self.type == "":
+ self.type = token[1]
+ else:
+ self.type = self.type + " " + token[1]
+ if token[0] == "name" and token[1] == "int":
+ if self.type == "":
+ self.type = tmp[1]
+ else:
+ self.type = self.type + " " + tmp[1]
+
+ elif token[0] == "name" and token[1] == "struct":
+ if self.type == "":
+ self.type = token[1]
+ else:
+ self.type = self.type + " " + token[1]
+ token = self.token()
+ nametok = None
+ if token[0] == "name":
+ nametok = token
+ token = self.token()
+ if token != None and token[0] == "sep" and token[1] == "{":
+ token = self.token()
+ token = self.parseStruct(token)
+ elif token != None and token[0] == "op" and token[1] == "*":
+ self.type = self.type + " " + nametok[1] + " *"
+ token = self.token()
+ while token != None and token[0] == "op" and token[1] == "*":
+ self.type = self.type + " *"
+ token = self.token()
+ if token[0] == "name":
+ nametok = token
+ token = self.token()
+ else:
+ self.error("struct : expecting name", token)
+ return token
+ elif token != None and token[0] == "name" and nametok != None:
+ self.type = self.type + " " + nametok[1]
+ return token
+
+ if nametok != None:
+ self.lexer.push(token)
+ token = nametok
+ return token
+
+ elif token[0] == "name" and token[1] == "enum":
+ if self.type == "":
+ self.type = token[1]
+ else:
+ self.type = self.type + " " + token[1]
+ self.enums = []
+ token = self.token()
+ if token != None and token[0] == "sep" and token[1] == "{":
+ token = self.token()
+ token = self.parseEnumBlock(token)
+ else:
+ self.error("parsing enum: expecting '{'", token)
+ enum_type = None
+ if token != None and token[0] != "name":
+ self.lexer.push(token)
+ token = ("name", "enum")
+ else:
+ enum_type = token[1]
+ for enum in self.enums:
+ self.index.add(enum[0], self.filename,
+ not self.is_header, "enum",
+ (enum[1], enum[2], enum_type))
+ return token
+
+ elif token[0] == "name":
+ if self.type == "":
+ self.type = token[1]
+ else:
+ self.type = self.type + " " + token[1]
+ else:
+ self.error("parsing type %s: expecting a name" % (self.type),
+ token)
+ return token
+ token = self.token()
+ while token != None and (token[0] == "op" or
+ token[0] == "name" and token[1] == "const"):
+ self.type = self.type + " " + token[1]
+ token = self.token()
+
+ #
+ # if there is a parenthesis here, this means a function type
+ #
+ if token != None and token[0] == "sep" and token[1] == '(':
+ self.type = self.type + token[1]
+ token = self.token()
+ while token != None and token[0] == "op" and token[1] == '*':
+ self.type = self.type + token[1]
+ token = self.token()
+ if token == None or token[0] != "name" :
+ self.error("parsing function type, name expected", token);
+ return token
+ self.type = self.type + token[1]
+ nametok = token
+ token = self.token()
+ if token != None and token[0] == "sep" and token[1] == ')':
+ self.type = self.type + token[1]
+ token = self.token()
+ if token != None and token[0] == "sep" and token[1] == '(':
+ token = self.token()
+ type = self.type;
+ token = self.parseSignature(token);
+ self.type = type;
+ else:
+ self.error("parsing function type, '(' expected", token);
+ return token
+ else:
+ self.error("parsing function type, ')' expected", token);
+ return token
+ self.lexer.push(token)
+ token = nametok
+ return token
+
+ #
+ # do some lookahead for arrays
+ #
+ if token != None and token[0] == "name":
+ nametok = token
+ token = self.token()
+ if token != None and token[0] == "sep" and token[1] == '[':
+ self.type = self.type + nametok[1]
+ while token != None and token[0] == "sep" and token[1] == '[':
+ self.type = self.type + token[1]
+ token = self.token()
+ while token != None and token[0] != 'sep' and \
+ token[1] != ']' and token[1] != ';':
+ self.type = self.type + token[1]
+ token = self.token()
+ if token != None and token[0] == 'sep' and token[1] == ']':
+ self.type = self.type + token[1]
+ token = self.token()
+ else:
+ self.error("parsing array type, ']' expected", token);
+ return token
+ elif token != None and token[0] == "sep" and token[1] == ':':
+ # remove :12 in case it's a limited int size
+ token = self.token()
+ token = self.token()
+ self.lexer.push(token)
+ token = nametok
+
+ return token
+
+ #
+ # Parse a signature: '(' has been parsed and we scan the type definition
+ # up to the ')' included
+ def parseSignature(self, token):
+ signature = []
+ if token != None and token[0] == "sep" and token[1] == ')':
+ self.signature = []
+ token = self.token()
+ return token
+ while token != None:
+ token = self.parseType(token)
+ if token != None and token[0] == "name":
+ signature.append((self.type, token[1], None))
+ token = self.token()
+ elif token != None and token[0] == "sep" and token[1] == ',':
+ token = self.token()
+ continue
+ elif token != None and token[0] == "sep" and token[1] == ')':
+ # only the type was provided
+ if self.type == "...":
+ signature.append((self.type, "...", None))
+ else:
+ signature.append((self.type, None, None))
+ if token != None and token[0] == "sep":
+ if token[1] == ',':
+ token = self.token()
+ continue
+ elif token[1] == ')':
+ token = self.token()
+ break
+ self.signature = signature
+ return token
+
+ #
+ # Parse a global definition, be it a type, variable or function
+ # the extern "C" blocks are a bit nasty and require it to recurse.
+ #
+ def parseGlobal(self, token):
+ static = 0
+ if token[1] == 'extern':
+ token = self.token()
+ if token == None:
+ return token
+ if token[0] == 'string':
+ if token[1] == 'C':
+ token = self.token()
+ if token == None:
+ return token
+ if token[0] == 'sep' and token[1] == "{":
+ token = self.token()
+# print 'Entering extern "C line ', self.lineno()
+ while token != None and (token[0] != 'sep' or
+ token[1] != "}"):
+ if token[0] == 'name':
+ token = self.parseGlobal(token)
+ else:
+ self.error(
+ "token %s %s unexpected at the top level" % (
+ token[0], token[1]))
+ token = self.parseGlobal(token)
+# print 'Exiting extern "C" line', self.lineno()
+ token = self.token()
+ return token
+ else:
+ return token
+ elif token[1] == 'static':
+ static = 1
+ token = self.token()
+ if token == None or token[0] != 'name':
+ return token
+
+ if token[1] == 'typedef':
+ token = self.token()
+ return self.parseTypedef(token)
+ else:
+ token = self.parseType(token)
+ type_orig = self.type
+ if token == None or token[0] != "name":
+ return token
+ type = type_orig
+ self.name = token[1]
+ token = self.token()
+ while token != None and (token[0] == "sep" or token[0] == "op"):
+ if token[0] == "sep":
+ if token[1] == "[":
+ type = type + token[1]
+ token = self.token()
+ while token != None and (token[0] != "sep" or \
+ token[1] != ";"):
+ type = type + token[1]
+ token = self.token()
+
+ if token != None and token[0] == "op" and token[1] == "=":
+ #
+ # Skip the initialization of the variable
+ #
+ token = self.token()
+ if token[0] == 'sep' and token[1] == '{':
+ token = self.token()
+ token = self.parseBlock(token)
+ else:
+ self.comment = None
+ while token != None and (token[0] != "sep" or \
+ (token[1] != ';' and token[1] != ',')):
+ token = self.token()
+ self.comment = None
+ if token == None or token[0] != "sep" or (token[1] != ';' and
+ token[1] != ','):
+ self.error("missing ';' or ',' after value")
+
+ if token != None and token[0] == "sep":
+ if token[1] == ";":
+ self.comment = None
+ token = self.token()
+ if type == "struct":
+ self.index.add(self.name, self.filename,
+ not self.is_header, "struct", self.struct_fields)
+ else:
+ self.index.add(self.name, self.filename,
+ not self.is_header, "variable", type)
+ break
+ elif token[1] == "(":
+ token = self.token()
+ token = self.parseSignature(token)
+ if token == None:
+ return None
+ if token[0] == "sep" and token[1] == ";":
+ d = self.mergeFunctionComment(self.name,
+ ((type, None), self.signature), 1)
+ self.index.add(self.name, self.filename, static,
+ "function", d)
+ token = self.token()
+ if token[0] == "sep" and token[1] == "{":
+ d = self.mergeFunctionComment(self.name,
+ ((type, None), self.signature), static)
+ self.index.add(self.name, self.filename, static,
+ "function", d)
+ token = self.token()
+ token = self.parseBlock(token);
+ elif token[1] == ',':
+ self.comment = None
+ self.index.add(self.name, self.filename, static,
+ "variable", type)
+ type = type_orig
+ token = self.token()
+ while token != None and token[0] == "sep":
+ type = type + token[1]
+ token = self.token()
+ if token != None and token[0] == "name":
+ self.name = token[1]
+ token = self.token()
+ else:
+ break
+
+ return token
+
+ def parse(self):
+ print "Parsing %s" % (self.filename)
+ token = self.token()
+ while token != None:
+ if token[0] == 'name':
+ token = self.parseGlobal(token)
+ else:
+ self.error("token %s %s unexpected at the top level" % (
+ token[0], token[1]))
+ token = self.parseGlobal(token)
+ return
+ return self.index
+
+
+class docBuilder:
+ """A documentation builder"""
+ def __init__(self, name, directories=['.'], excludes=[]):
+ self.name = name
+ self.directories = directories
+ self.excludes = excludes + ignored_files.keys()
+ self.modules = {}
+ self.headers = {}
+ self.idx = index()
+
+ def analyze(self):
+ print "Project %s : %d headers, %d modules" % (self.name, len(self.headers.keys()), len(self.modules.keys()))
+ self.idx.analyze()
+
+ def scanHeaders(self):
+ for header in self.headers.keys():
+ parser = CParser(header)
+ idx = parser.parse()
+ self.headers[header] = idx;
+ self.idx.merge(idx)
+
+ def scanModules(self):
+ for module in self.modules.keys():
+ parser = CParser(module)
+ idx = parser.parse()
+ # idx.analyze()
+ self.modules[module] = idx
+ self.idx.merge_public(idx)
+
+ def scan(self):
+ for directory in self.directories:
+ files = glob.glob(directory + "/*.c")
+ for file in files:
+ skip = 0
+ for excl in self.excludes:
+ if string.find(file, excl) != -1:
+ skip = 1;
+ break
+ if skip == 0:
+ self.modules[file] = None;
+ files = glob.glob(directory + "/*.h")
+ for file in files:
+ skip = 0
+ for excl in self.excludes:
+ if string.find(file, excl) != -1:
+ skip = 1;
+ break
+ if skip == 0:
+ self.headers[file] = None;
+ self.scanHeaders()
+ self.scanModules()
+
+ def modulename_file(self, file):
+ module = string.split(file, '/')[-1]
+ if module[-2:] == '.h':
+ module = module[:-2]
+ return module
+
+ def serialize_enum(self, output, name):
+ id = self.idx.enums[name]
+ output.write(" <enum name='%s' file='%s'" % (name,
+ self.modulename_file(id.module)))
+ if id.info != None:
+ info = id.info
+ if info[0] != None and info[0] != '':
+ output.write(" value='%s'" % info[0]);
+ if info[2] != None and info[2] != '':
+ output.write(" type='%s'" % info[2]);
+ if info[1] != None and info[1] != '':
+ output.write(" info='%s'" % escape(info[1]));
+ output.write("/>\n")
+
+ def serialize_macro(self, output, name):
+ id = self.idx.macros[name]
+ output.write(" <macro name='%s' file='%s'>\n" % (name,
+ self.modulename_file(id.module)))
+ if id.info != None:
+ try:
+ (args, desc) = id.info
+ if desc != None and desc != "":
+ output.write(" <info>%s</info>\n" % (escape(desc)))
+ for arg in args:
+ (name, desc) = arg
+ if desc != None and desc != "":
+ output.write(" <arg name='%s' info='%s'/>\n" % (
+ name, escape(desc)))
+ else:
+ output.write(" <arg name='%s'/>\n" % (name))
+ except:
+ pass
+ output.write(" </macro>\n")
+
+ def serialize_typedef(self, output, name):
+ id = self.idx.typedefs[name]
+ if id.info[0:7] == 'struct ':
+ output.write(" <struct name='%s' file='%s' type='%s'" % (
+ name, self.modulename_file(id.module), id.info))
+ name = id.info[7:]
+ if self.idx.structs.has_key(name) and \
+ type(self.idx.structs[name]) == type(()):
+ output.write(">\n");
+ try:
+ for field in self.idx.structs[name].info:
+ print name, field
+ desc = field[2]
+ if desc == None:
+ desc = ''
+ else:
+ desc = escape(desc)
+ output.write(" <field name='%s' type='%s' info='%s'/>\n" % (field[1] , field[0], desc))
+ except:
+ print "Failed to serialize struct %s" % (name)
+ output.write(" </struct>\n")
+ else:
+ output.write("/>\n");
+ else :
+ output.write(" <typedef name='%s' file='%s' type='%s'/>\n" % (
+ name, self.modulename_file(id.module), id.info))
+
+ def serialize_function(self, output, name):
+ id = self.idx.functions[name]
+ output.write(" <%s name='%s' file='%s'>\n" % (id.type, name,
+ self.modulename_file(id.module)))
+ try:
+ (ret, params, desc) = id.info
+ output.write(" <info>%s</info>\n" % (escape(desc)))
+ if ret[0] != None:
+ if ret[0] == "void":
+ output.write(" <return type='void'/>\n")
+ else:
+ output.write(" <return type='%s' info='%s'/>\n" % (
+ ret[0], escape(ret[1])))
+ for param in params:
+ if param[0] == 'void':
+ continue
+ if param[2] == None:
+ output.write(" <arg name='%s' type='%s' info=''/>\n" % (param[1], param[0]))
+ else:
+ output.write(" <arg name='%s' type='%s' info='%s'/>\n" % (param[1], param[0], escape(param[2])))
+ except:
+ print "Failed to save function %s info: " % name, `id.info`
+ output.write(" </%s>\n" % (id.type))
+
+ def serialize_exports(self, output, file):
+ module = self.modulename_file(file)
+ output.write(" <file name='%s'>\n" % (module))
+ dict = self.headers[file]
+ ids = dict.functions.keys() + dict.variables.keys() + \
+ dict.macros.keys() + dict.typedefs.keys() + \
+ dict.structs.keys() + dict.enums.keys()
+ ids.sort()
+ for id in ids:
+ output.write(" <exports symbol='%s'/>\n" % (id))
+ output.write(" </file>\n")
+
+
+ def serialize(self, filename = None):
+ if filename == None:
+ filename = "%s-api.xml" % self.name
+ print "Saving XML description %s" % (filename)
+ output = open(filename, "w")
+ output.write('<?xml version="1.0" encoding="ISO-8859-1"?>\n')
+ output.write("<api name='%s'>\n" % self.name)
+ output.write(" <files>\n")
+ for file in self.headers.keys():
+ self.serialize_exports(output, file)
+ output.write(" </files>\n")
+ output.write(" <symbols>\n")
+ macros = self.idx.macros.keys()
+ macros.sort()
+ for macro in macros:
+ self.serialize_macro(output, macro)
+ enums = self.idx.enums.keys()
+ enums.sort()
+ for enum in enums:
+ self.serialize_enum(output, enum)
+ typedefs = self.idx.typedefs.keys()
+ typedefs.sort()
+ for typedef in typedefs:
+ self.serialize_typedef(output, typedef)
+ functions = self.idx.functions.keys()
+ functions.sort()
+ for function in functions:
+ self.serialize_function(output, function)
+ output.write(" </symbols>\n")
+ output.write("</api>\n")
+ output.close()
+
+
+def rebuild():
+ builder = None
+ if glob.glob("../parser.c") != [] :
+ print "Rebuilding API description for libxml2"
+ builder = docBuilder("libxml2", ["..", "../include/libxml"],
+ ["xmlwin32version.h", "tst.c"])
+ elif glob.glob("../libxslt/transform.c") != [] :
+ print "Rebuilding API description for libxslt"
+ builder = docBuilder("libxslt", ["../libxslt"],
+ ["win32config.h", "libxslt.h", "tst.c"])
+ else:
+ print "rebuild() failed, unable to guess the module"
+ return None
+ builder.scan()
+ builder.analyze()
+ builder.serialize()
+ return builder
+
+#
+# for debugging the parser
+#
+def parse(filename):
+ parser = CParser(filename)
+ idx = parser.parse()
+ return idx
+
+if __name__ == "__main__":
+ rebuild()
<?xml version="1.0" encoding="ISO-8859-1"?>
<api name='libxslt'>
<files>
+ <file name='documents'>
+ <exports symbol='xsltFindDocument'/>
+ <exports symbol='xsltFreeDocuments'/>
+ <exports symbol='xsltFreeStyleDocuments'/>
+ <exports symbol='xsltLoadDocument'/>
+ <exports symbol='xsltLoadStyleDocument'/>
+ <exports symbol='xsltNewDocument'/>
+ <exports symbol='xsltNewStyleDocument'/>
+ </file>
+ <file name='imports'>
+ <exports symbol='XSLT_GET_IMPORT_INT'/>
+ <exports symbol='XSLT_GET_IMPORT_PTR'/>
+ <exports symbol='xsltFindElemSpaceHandling'/>
+ <exports symbol='xsltFindTemplate'/>
+ <exports symbol='xsltNeedElemSpaceHandling'/>
+ <exports symbol='xsltNextImport'/>
+ <exports symbol='xsltParseStylesheetImport'/>
+ <exports symbol='xsltParseStylesheetInclude'/>
+ </file>
+ <file name='security'>
+ <exports symbol='XSLT_SECPREF_CREATE_DIRECTORY'/>
+ <exports symbol='XSLT_SECPREF_READ_FILE'/>
+ <exports symbol='XSLT_SECPREF_READ_NETWORK'/>
+ <exports symbol='XSLT_SECPREF_WRITE_FILE'/>
+ <exports symbol='XSLT_SECPREF_WRITE_NETWORK'/>
+ <exports symbol='xsltCheckRead'/>
+ <exports symbol='xsltCheckWrite'/>
+ <exports symbol='xsltFreeSecurityPrefs'/>
+ <exports symbol='xsltGetDefaultSecurityPrefs'/>
+ <exports symbol='xsltGetSecurityPrefs'/>
+ <exports symbol='xsltNewSecurityPrefs'/>
+ <exports symbol='xsltSecurityAllow'/>
+ <exports symbol='xsltSecurityCheck'/>
+ <exports symbol='xsltSecurityForbid'/>
+ <exports symbol='xsltSecurityOption'/>
+ <exports symbol='xsltSecurityPrefs'/>
+ <exports symbol='xsltSecurityPrefsPtr'/>
+ <exports symbol='xsltSetCtxtSecurityPrefs'/>
+ <exports symbol='xsltSetDefaultSecurityPrefs'/>
+ <exports symbol='xsltSetSecurityPrefs'/>
+ </file>
<file name='templates'>
- <exports symbol='xsltEvalXPathPredicate'/>
- <exports symbol='xsltEvalTemplateString'/>
+ <exports symbol='xsltAttrListTemplateProcess'/>
+ <exports symbol='xsltAttrTemplateProcess'/>
+ <exports symbol='xsltAttrTemplateValueProcess'/>
+ <exports symbol='xsltAttrTemplateValueProcessNode'/>
<exports symbol='xsltEvalAttrValueTemplate'/>
<exports symbol='xsltEvalStaticAttrValueTemplate'/>
+ <exports symbol='xsltEvalTemplateString'/>
+ <exports symbol='xsltEvalXPathPredicate'/>
<exports symbol='xsltEvalXPathString'/>
<exports symbol='xsltEvalXPathStringNs'/>
<exports symbol='xsltTemplateProcess'/>
- <exports symbol='xsltAttrListTemplateProcess'/>
- <exports symbol='xsltAttrTemplateProcess'/>
- <exports symbol='xsltAttrTemplateValueProcess'/>
- <exports symbol='xsltAttrTemplateValueProcessNode'/>
+ </file>
+ <file name='xsltutils'>
+ <exports symbol='IS_XSLT_ELEM'/>
+ <exports symbol='IS_XSLT_NAME'/>
+ <exports symbol='IS_XSLT_REAL_NODE'/>
+ <exports symbol='XSLT_DEBUG_CONT'/>
+ <exports symbol='XSLT_DEBUG_INIT'/>
+ <exports symbol='XSLT_DEBUG_NEXT'/>
+ <exports symbol='XSLT_DEBUG_NONE'/>
+ <exports symbol='XSLT_DEBUG_QUIT'/>
+ <exports symbol='XSLT_DEBUG_RUN'/>
+ <exports symbol='XSLT_DEBUG_RUN_RESTART'/>
+ <exports symbol='XSLT_DEBUG_STEP'/>
+ <exports symbol='XSLT_DEBUG_STEPOUT'/>
+ <exports symbol='XSLT_DEBUG_STOP'/>
+ <exports symbol='XSLT_STRANGE'/>
+ <exports symbol='XSLT_TIMESTAMP_TICS_PER_SEC'/>
+ <exports symbol='XSLT_TODO'/>
+ <exports symbol='xslAddCall'/>
+ <exports symbol='xslDebugStatus'/>
+ <exports symbol='xslDropCall'/>
+ <exports symbol='xsltAddCallCallback'/>
+ <exports symbol='xsltCalibrateAdjust'/>
+ <exports symbol='xsltComputeSortResult'/>
+ <exports symbol='xsltDebugStatusCodes'/>
+ <exports symbol='xsltDefaultSortFunction'/>
+ <exports symbol='xsltDoSortFunction'/>
+ <exports symbol='xsltDocumentSortFunction'/>
+ <exports symbol='xsltDropCallCallback'/>
+ <exports symbol='xsltGenericDebug'/>
+ <exports symbol='xsltGenericDebugContext'/>
+ <exports symbol='xsltGenericError'/>
+ <exports symbol='xsltGenericErrorContext'/>
+ <exports symbol='xsltGetNsProp'/>
+ <exports symbol='xsltGetProfileInformation'/>
+ <exports symbol='xsltGetQNameURI'/>
+ <exports symbol='xsltGetUTF8Char'/>
+ <exports symbol='xsltHandleDebuggerCallback'/>
+ <exports symbol='xsltMessage'/>
+ <exports symbol='xsltPrintErrorContext'/>
+ <exports symbol='xsltSaveProfiling'/>
+ <exports symbol='xsltSaveResultTo'/>
+ <exports symbol='xsltSaveResultToFd'/>
+ <exports symbol='xsltSaveResultToFile'/>
+ <exports symbol='xsltSaveResultToFilename'/>
+ <exports symbol='xsltSaveResultToString'/>
+ <exports symbol='xsltSetCtxtSortFunc'/>
+ <exports symbol='xsltSetDebuggerCallbacks'/>
+ <exports symbol='xsltSetGenericDebugFunc'/>
+ <exports symbol='xsltSetGenericErrorFunc'/>
+ <exports symbol='xsltSetSortFunc'/>
+ <exports symbol='xsltSetTransformErrorFunc'/>
+ <exports symbol='xsltTimestamp'/>
+ <exports symbol='xsltTransformError'/>
</file>
<file name='functions'>
<exports symbol='XSLT_REGISTER_FUNCTION_LOOKUP'/>
- <exports symbol='xsltXPathFunctionLookup'/>
<exports symbol='xsltDocumentFunction'/>
- <exports symbol='xsltKeyFunction'/>
- <exports symbol='xsltUnparsedEntityURIFunction'/>
- <exports symbol='xsltFormatNumberFunction'/>
- <exports symbol='xsltGenerateIdFunction'/>
- <exports symbol='xsltSystemPropertyFunction'/>
<exports symbol='xsltElementAvailableFunction'/>
+ <exports symbol='xsltFormatNumberFunction'/>
<exports symbol='xsltFunctionAvailableFunction'/>
+ <exports symbol='xsltGenerateIdFunction'/>
+ <exports symbol='xsltKeyFunction'/>
<exports symbol='xsltRegisterAllFunctions'/>
+ <exports symbol='xsltSystemPropertyFunction'/>
+ <exports symbol='xsltUnparsedEntityURIFunction'/>
+ <exports symbol='xsltXPathFunctionLookup'/>
</file>
- <file name='xsltconfig'>
- <exports symbol='LIBXSLT_DOTTED_VERSION'/>
- <exports symbol='LIBXSLT_VERSION'/>
- <exports symbol='LIBXSLT_VERSION_STRING'/>
- <exports symbol='WITH_XSLT_DEBUG'/>
- <exports symbol='DEBUG_MEMORY'/>
- <exports symbol='DEBUG_MEMORY_LOCATION'/>
- <exports symbol='XSLT_NEED_TRIO'/>
- <exports symbol='WITH_DEBUGGER'/>
- <exports symbol='ATTRIBUTE_UNUSED'/>
- <exports symbol='LIBXSLT_PUBLIC'/>
- </file>
- <file name='xsltwin32config'>
- <exports symbol='LIBXSLT_DOTTED_VERSION'/>
- <exports symbol='LIBXSLT_VERSION'/>
- <exports symbol='LIBXSLT_VERSION_STRING'/>
- <exports symbol='WITH_XSLT_DEBUG'/>
- <exports symbol='DEBUG_MEMORY'/>
- <exports symbol='DEBUG_MEMORY_LOCATION'/>
- <exports symbol='ATTRIBUTE_UNUSED'/>
- <exports symbol='LIBXSLT_PUBLIC'/>
+ <file name='namespaces'>
+ <exports symbol='xsltCopyNamespace'/>
+ <exports symbol='xsltCopyNamespaceList'/>
+ <exports symbol='xsltFreeNamespaceAliasHashes'/>
+ <exports symbol='xsltGetNamespace'/>
+ <exports symbol='xsltGetSpecialNamespace'/>
+ <exports symbol='xsltNamespaceAlias'/>
</file>
<file name='extra'>
<exports symbol='XSLT_LIBXSLT_NAMESPACE'/>
+ <exports symbol='XSLT_NORM_SAXON_NAMESPACE'/>
<exports symbol='XSLT_SAXON_NAMESPACE'/>
- <exports symbol='XSLT_XT_NAMESPACE'/>
<exports symbol='XSLT_XALAN_NAMESPACE'/>
- <exports symbol='XSLT_NORM_SAXON_NAMESPACE'/>
- <exports symbol='xsltFunctionNodeSet'/>
+ <exports symbol='XSLT_XT_NAMESPACE'/>
<exports symbol='xsltDebug'/>
- <exports symbol='xsltRegisterExtras'/>
+ <exports symbol='xsltFunctionNodeSet'/>
<exports symbol='xsltRegisterAllExtras'/>
- </file>
- <file name='keys'>
- <exports symbol='xsltAddKey'/>
- <exports symbol='xsltGetKey'/>
- <exports symbol='xsltInitCtxtKeys'/>
- <exports symbol='xsltFreeKeys'/>
- <exports symbol='xsltFreeDocumentKeys'/>
- </file>
- <file name='imports'>
- <exports symbol='XSLT_GET_IMPORT_PTR'/>
- <exports symbol='XSLT_GET_IMPORT_INT'/>
- <exports symbol='xsltParseStylesheetImport'/>
- <exports symbol='xsltParseStylesheetInclude'/>
- <exports symbol='xsltNextImport'/>
- <exports symbol='xsltNeedElemSpaceHandling'/>
- <exports symbol='xsltFindElemSpaceHandling'/>
- <exports symbol='xsltFindTemplate'/>
- </file>
- <file name='variables'>
- <exports symbol='XSLT_REGISTER_VARIABLE_LOOKUP'/>
- <exports symbol='xsltEvalGlobalVariables'/>
- <exports symbol='xsltEvalUserParams'/>
- <exports symbol='xsltQuoteUserParams'/>
- <exports symbol='xsltEvalOneUserParam'/>
- <exports symbol='xsltQuoteOneUserParam'/>
- <exports symbol='xsltParseGlobalVariable'/>
- <exports symbol='xsltParseGlobalParam'/>
- <exports symbol='xsltParseStylesheetVariable'/>
- <exports symbol='xsltParseStylesheetParam'/>
- <exports symbol='xsltParseStylesheetCallerParam'/>
- <exports symbol='xsltAddStackElemList'/>
- <exports symbol='xsltFreeGlobalVariables'/>
- <exports symbol='xsltVariableLookup'/>
- <exports symbol='xsltXPathVariableLookup'/>
- </file>
- <file name='xslt'>
- <exports symbol='XSLT_DEFAULT_VERSION'/>
- <exports symbol='XSLT_DEFAULT_VENDOR'/>
- <exports symbol='XSLT_DEFAULT_URL'/>
- <exports symbol='XSLT_NAMESPACE'/>
- <exports symbol='LIBXSLT_PUBLIC'/>
- <exports symbol='xsltCleanupGlobals'/>
- </file>
- <file name='transform'>
- <exports symbol='xsltSetXIncludeDefault'/>
- <exports symbol='xsltGetXIncludeDefault'/>
- <exports symbol='xsltNewTransformContext'/>
- <exports symbol='xsltFreeTransformContext'/>
- <exports symbol='xsltApplyStylesheetUser'/>
- <exports symbol='xsltApplyStripSpaces'/>
- <exports symbol='xsltExtElementLookup'/>
- <exports symbol='xsltApplyStylesheet'/>
- <exports symbol='xsltProfileStylesheet'/>
- <exports symbol='xsltRunStylesheet'/>
- <exports symbol='xsltRunStylesheetUser'/>
- <exports symbol='xsltApplyOneTemplate'/>
- <exports symbol='xsltDocumentElem'/>
- <exports symbol='xsltSort'/>
- <exports symbol='xsltCopy'/>
- <exports symbol='xsltText'/>
- <exports symbol='xsltElement'/>
- <exports symbol='xsltComment'/>
- <exports symbol='xsltAttribute'/>
- <exports symbol='xsltProcessingInstruction'/>
- <exports symbol='xsltCopyOf'/>
- <exports symbol='xsltValueOf'/>
- <exports symbol='xsltNumber'/>
- <exports symbol='xsltApplyImports'/>
- <exports symbol='xsltCallTemplate'/>
- <exports symbol='xsltApplyTemplates'/>
- <exports symbol='xsltChoose'/>
- <exports symbol='xsltIf'/>
- <exports symbol='xsltForEach'/>
- <exports symbol='xsltRegisterAllElement'/>
- <exports symbol='xslHandleDebugger'/>
+ <exports symbol='xsltRegisterExtras'/>
</file>
<file name='xsltInternals'>
+ <exports symbol='CHECK_STOPPED'/>
+ <exports symbol='CHECK_STOPPED0'/>
+ <exports symbol='CHECK_STOPPEDE'/>
+ <exports symbol='XSLT_FUNC_APPLYIMPORTS'/>
+ <exports symbol='XSLT_FUNC_APPLYTEMPLATES'/>
+ <exports symbol='XSLT_FUNC_ATTRIBUTE'/>
+ <exports symbol='XSLT_FUNC_CALLTEMPLATE'/>
+ <exports symbol='XSLT_FUNC_CHOOSE'/>
+ <exports symbol='XSLT_FUNC_COMMENT'/>
+ <exports symbol='XSLT_FUNC_COPY'/>
+ <exports symbol='XSLT_FUNC_COPYOF'/>
+ <exports symbol='XSLT_FUNC_DOCUMENT'/>
+ <exports symbol='XSLT_FUNC_ELEMENT'/>
+ <exports symbol='XSLT_FUNC_EXTENSION'/>
+ <exports symbol='XSLT_FUNC_FOREACH'/>
+ <exports symbol='XSLT_FUNC_IF'/>
+ <exports symbol='XSLT_FUNC_NUMBER'/>
+ <exports symbol='XSLT_FUNC_PARAM'/>
+ <exports symbol='XSLT_FUNC_PI'/>
+ <exports symbol='XSLT_FUNC_SORT'/>
+ <exports symbol='XSLT_FUNC_TEXT'/>
+ <exports symbol='XSLT_FUNC_VALUEOF'/>
+ <exports symbol='XSLT_FUNC_VARIABLE'/>
+ <exports symbol='XSLT_FUNC_WHEN'/>
+ <exports symbol='XSLT_FUNC_WITHPARAM'/>
<exports symbol='XSLT_MAX_SORT'/>
+ <exports symbol='XSLT_OUTPUT_HTML'/>
+ <exports symbol='XSLT_OUTPUT_TEXT'/>
+ <exports symbol='XSLT_OUTPUT_XML'/>
<exports symbol='XSLT_PAT_NO_PRIORITY'/>
- <exports symbol='xsltRuntimeExtra'/>
- <exports symbol='xsltRuntimeExtraPtr'/>
- <exports symbol='XSLT_RUNTIME_EXTRA_LST'/>
- <exports symbol='XSLT_RUNTIME_EXTRA_FREE'/>
<exports symbol='XSLT_RUNTIME_EXTRA'/>
- <exports symbol='xsltTemplate'/>
- <exports symbol='xsltTemplatePtr'/>
+ <exports symbol='XSLT_RUNTIME_EXTRA_FREE'/>
+ <exports symbol='XSLT_RUNTIME_EXTRA_LST'/>
+ <exports symbol='XSLT_STATE_ERROR'/>
+ <exports symbol='XSLT_STATE_OK'/>
+ <exports symbol='XSLT_STATE_STOPPED'/>
+ <exports symbol='_xsltDecimalFormat'/>
+ <exports symbol='_xsltDocument'/>
+ <exports symbol='_xsltElemPreComp'/>
+ <exports symbol='_xsltRuntimeExtra'/>
+ <exports symbol='_xsltStackElem'/>
+ <exports symbol='_xsltStylePreComp'/>
+ <exports symbol='_xsltStylesheet'/>
+ <exports symbol='_xsltTemplate'/>
+ <exports symbol='_xsltTransformContext'/>
+ <exports symbol='xsltAllocateExtra'/>
+ <exports symbol='xsltAllocateExtraCtxt'/>
<exports symbol='xsltDecimalFormat'/>
+ <exports symbol='xsltDecimalFormatGetByName'/>
<exports symbol='xsltDecimalFormatPtr'/>
<exports symbol='xsltDocument'/>
<exports symbol='xsltDocumentPtr'/>
- <exports symbol='xsltTransformContext'/>
- <exports symbol='xsltTransformContextPtr'/>
<exports symbol='xsltElemPreComp'/>
- <exports symbol='xsltElemPreCompPtr'/>
- <exports symbol='xsltTransformFunction'/>
- <exports symbol='xsltStyleType'/>
<exports symbol='xsltElemPreCompDeallocator'/>
- <exports symbol='xsltStylePreComp'/>
- <exports symbol='xsltStylePreCompPtr'/>
- <exports symbol='xsltStackElem'/>
- <exports symbol='xsltStackElemPtr'/>
- <exports symbol='xsltStylesheet'/>
- <exports symbol='xsltStylesheetPtr'/>
- <exports symbol='xsltOutputType'/>
- <exports symbol='xsltTransformState'/>
- <exports symbol='CHECK_STOPPED'/>
- <exports symbol='CHECK_STOPPEDE'/>
- <exports symbol='CHECK_STOPPED0'/>
- <exports symbol='xsltNewStylesheet'/>
- <exports symbol='xsltParseStylesheetFile'/>
+ <exports symbol='xsltElemPreCompPtr'/>
+ <exports symbol='xsltFormatNumberConversion'/>
+ <exports symbol='xsltFreeStackElemList'/>
<exports symbol='xsltFreeStylesheet'/>
<exports symbol='xsltIsBlank'/>
- <exports symbol='xsltFreeStackElemList'/>
- <exports symbol='xsltDecimalFormatGetByName'/>
- <exports symbol='xsltParseStylesheetProcess'/>
- <exports symbol='xsltParseStylesheetOutput'/>
- <exports symbol='xsltParseStylesheetDoc'/>
<exports symbol='xsltLoadStylesheetPI'/>
+ <exports symbol='xsltNewStylesheet'/>
<exports symbol='xsltNumberFormat'/>
- <exports symbol='xsltFormatNumberConversion'/>
+ <exports symbol='xsltOutputType'/>
+ <exports symbol='xsltParseStylesheetDoc'/>
+ <exports symbol='xsltParseStylesheetFile'/>
+ <exports symbol='xsltParseStylesheetOutput'/>
+ <exports symbol='xsltParseStylesheetProcess'/>
<exports symbol='xsltParseTemplateContent'/>
- <exports symbol='xsltAllocateExtra'/>
- <exports symbol='xsltAllocateExtraCtxt'/>
+ <exports symbol='xsltRuntimeExtra'/>
+ <exports symbol='xsltRuntimeExtraPtr'/>
+ <exports symbol='xsltSortFunc'/>
+ <exports symbol='xsltStackElem'/>
+ <exports symbol='xsltStackElemPtr'/>
+ <exports symbol='xsltStylePreComp'/>
+ <exports symbol='xsltStylePreCompPtr'/>
+ <exports symbol='xsltStyleType'/>
+ <exports symbol='xsltStylesheet'/>
+ <exports symbol='xsltStylesheetPtr'/>
+ <exports symbol='xsltTemplate'/>
+ <exports symbol='xsltTemplatePtr'/>
+ <exports symbol='xsltTransformContext'/>
+ <exports symbol='xsltTransformContextPtr'/>
+ <exports symbol='xsltTransformFunction'/>
+ <exports symbol='xsltTransformState'/>
</file>
- <file name='preproc'>
- <exports symbol='xsltExtMarker'/>
- <exports symbol='xsltDocumentComp'/>
- <exports symbol='xsltStylePreCompute'/>
- <exports symbol='xsltFreeStylePreComps'/>
+ <file name='transform'>
+ <exports symbol='xslHandleDebugger'/>
+ <exports symbol='xsltApplyImports'/>
+ <exports symbol='xsltApplyOneTemplate'/>
+ <exports symbol='xsltApplyStripSpaces'/>
+ <exports symbol='xsltApplyStylesheet'/>
+ <exports symbol='xsltApplyStylesheetUser'/>
+ <exports symbol='xsltApplyTemplates'/>
+ <exports symbol='xsltAttribute'/>
+ <exports symbol='xsltCallTemplate'/>
+ <exports symbol='xsltChoose'/>
+ <exports symbol='xsltComment'/>
+ <exports symbol='xsltCopy'/>
+ <exports symbol='xsltCopyOf'/>
+ <exports symbol='xsltDocumentElem'/>
+ <exports symbol='xsltElement'/>
+ <exports symbol='xsltForEach'/>
+ <exports symbol='xsltFreeTransformContext'/>
+ <exports symbol='xsltGetXIncludeDefault'/>
+ <exports symbol='xsltIf'/>
+ <exports symbol='xsltNewTransformContext'/>
+ <exports symbol='xsltNumber'/>
+ <exports symbol='xsltProcessingInstruction'/>
+ <exports symbol='xsltProfileStylesheet'/>
+ <exports symbol='xsltRegisterAllElement'/>
+ <exports symbol='xsltRunStylesheet'/>
+ <exports symbol='xsltRunStylesheetUser'/>
+ <exports symbol='xsltSetXIncludeDefault'/>
+ <exports symbol='xsltSort'/>
+ <exports symbol='xsltText'/>
+ <exports symbol='xsltValueOf'/>
</file>
- <file name='documents'>
- <exports symbol='xsltNewDocument'/>
- <exports symbol='xsltLoadDocument'/>
- <exports symbol='xsltFindDocument'/>
- <exports symbol='xsltFreeDocuments'/>
- <exports symbol='xsltLoadStyleDocument'/>
- <exports symbol='xsltNewStyleDocument'/>
- <exports symbol='xsltFreeStyleDocuments'/>
+ <file name='attributes'>
+ <exports symbol='xsltApplyAttributeSet'/>
+ <exports symbol='xsltFreeAttributeSetsHashes'/>
+ <exports symbol='xsltParseStylesheetAttributeSet'/>
+ <exports symbol='xsltResolveStylesheetAttributeSet'/>
</file>
<file name='extensions'>
- <exports symbol='xsltStyleExtInitFunction'/>
- <exports symbol='xsltStyleExtShutdownFunction'/>
- <exports symbol='xsltExtInitFunction'/>
- <exports symbol='xsltExtShutdownFunction'/>
- <exports symbol='xsltRegisterExtModule'/>
- <exports symbol='xsltRegisterExtModuleFull'/>
- <exports symbol='xsltUnregisterExtModule'/>
- <exports symbol='xsltGetExtData'/>
- <exports symbol='xsltStyleGetExtData'/>
- <exports symbol='xsltShutdownCtxtExts'/>
- <exports symbol='xsltShutdownExts'/>
- <exports symbol='xsltXPathGetTransformContext'/>
- <exports symbol='xsltRegisterExtModuleFunction'/>
- <exports symbol='xsltExtFunctionLookup'/>
- <exports symbol='xsltExtModuleFunctionLookup'/>
- <exports symbol='xsltUnregisterExtModuleFunction'/>
- <exports symbol='xsltNewElemPreComp'/>
- <exports symbol='xsltInitElemPreComp'/>
- <exports symbol='xsltRegisterExtModuleElement'/>
+ <exports symbol='xsltCheckExtPrefix'/>
+ <exports symbol='xsltDebugDumpExtensions'/>
<exports symbol='xsltExtElementLookup'/>
+ <exports symbol='xsltExtFunctionLookup'/>
+ <exports symbol='xsltExtInitFunction'/>
<exports symbol='xsltExtModuleElementLookup'/>
<exports symbol='xsltExtModuleElementPreComputeLookup'/>
- <exports symbol='xsltUnregisterExtModuleElement'/>
- <exports symbol='xsltTopLevelFunction'/>
- <exports symbol='xsltRegisterExtModuleTopLevel'/>
+ <exports symbol='xsltExtModuleFunctionLookup'/>
<exports symbol='xsltExtModuleTopLevelLookup'/>
- <exports symbol='xsltUnregisterExtModuleTopLevel'/>
- <exports symbol='xsltRegisterExtFunction'/>
- <exports symbol='xsltRegisterExtElement'/>
- <exports symbol='xsltRegisterExtPrefix'/>
- <exports symbol='xsltCheckExtPrefix'/>
- <exports symbol='xsltInitCtxtExts'/>
+ <exports symbol='xsltExtShutdownFunction'/>
<exports symbol='xsltFreeCtxtExts'/>
<exports symbol='xsltFreeExts'/>
+ <exports symbol='xsltGetExtData'/>
+ <exports symbol='xsltInitCtxtExts'/>
+ <exports symbol='xsltInitElemPreComp'/>
+ <exports symbol='xsltNewElemPreComp'/>
<exports symbol='xsltPreComputeExtModuleElement'/>
+ <exports symbol='xsltPreComputeFunction'/>
+ <exports symbol='xsltRegisterExtElement'/>
+ <exports symbol='xsltRegisterExtFunction'/>
+ <exports symbol='xsltRegisterExtModule'/>
+ <exports symbol='xsltRegisterExtModuleElement'/>
+ <exports symbol='xsltRegisterExtModuleFull'/>
+ <exports symbol='xsltRegisterExtModuleFunction'/>
+ <exports symbol='xsltRegisterExtModuleTopLevel'/>
+ <exports symbol='xsltRegisterExtPrefix'/>
<exports symbol='xsltRegisterTestModule'/>
- <exports symbol='xsltDebugDumpExtensions'/>
+ <exports symbol='xsltShutdownCtxtExts'/>
+ <exports symbol='xsltShutdownExts'/>
+ <exports symbol='xsltStyleExtInitFunction'/>
+ <exports symbol='xsltStyleExtShutdownFunction'/>
+ <exports symbol='xsltStyleGetExtData'/>
+ <exports symbol='xsltTopLevelFunction'/>
+ <exports symbol='xsltUnregisterExtModule'/>
+ <exports symbol='xsltUnregisterExtModuleElement'/>
+ <exports symbol='xsltUnregisterExtModuleFunction'/>
+ <exports symbol='xsltUnregisterExtModuleTopLevel'/>
+ <exports symbol='xsltXPathGetTransformContext'/>
+ </file>
+ <file name='keys'>
+ <exports symbol='xsltAddKey'/>
+ <exports symbol='xsltFreeDocumentKeys'/>
+ <exports symbol='xsltFreeKeys'/>
+ <exports symbol='xsltGetKey'/>
+ <exports symbol='xsltInitCtxtKeys'/>
+ </file>
+ <file name='numbersInternals'>
+ <exports symbol='_xsltFormatNumberInfo'/>
+ <exports symbol='_xsltNumberData'/>
+ <exports symbol='xsltFormatNumberInfo'/>
+ <exports symbol='xsltFormatNumberInfoPtr'/>
+ <exports symbol='xsltNumberData'/>
+ <exports symbol='xsltNumberDataPtr'/>
+ </file>
+ <file name='xslt'>
+ <exports symbol='LIBXSLT_PUBLIC'/>
+ <exports symbol='XSLT_DEFAULT_URL'/>
+ <exports symbol='XSLT_DEFAULT_VENDOR'/>
+ <exports symbol='XSLT_DEFAULT_VERSION'/>
+ <exports symbol='XSLT_NAMESPACE'/>
+ <exports symbol='xsltCleanupGlobals'/>
+ <exports symbol='xsltEngineVersion'/>
+ <exports symbol='xsltLibxmlVersion'/>
+ <exports symbol='xsltLibxsltVersion'/>
+ <exports symbol='xsltMaxDepth'/>
+ </file>
+ <file name='preproc'>
+ <exports symbol='xsltDocumentComp'/>
+ <exports symbol='xsltExtMarker'/>
+ <exports symbol='xsltFreeStylePreComps'/>
+ <exports symbol='xsltStylePreCompute'/>
+ </file>
+ <file name='variables'>
+ <exports symbol='XSLT_REGISTER_VARIABLE_LOOKUP'/>
+ <exports symbol='xsltAddStackElemList'/>
+ <exports symbol='xsltEvalGlobalVariables'/>
+ <exports symbol='xsltEvalOneUserParam'/>
+ <exports symbol='xsltEvalUserParams'/>
+ <exports symbol='xsltFreeGlobalVariables'/>
+ <exports symbol='xsltParseGlobalParam'/>
+ <exports symbol='xsltParseGlobalVariable'/>
+ <exports symbol='xsltParseStylesheetCallerParam'/>
+ <exports symbol='xsltParseStylesheetParam'/>
+ <exports symbol='xsltParseStylesheetVariable'/>
+ <exports symbol='xsltQuoteOneUserParam'/>
+ <exports symbol='xsltQuoteUserParams'/>
+ <exports symbol='xsltVariableLookup'/>
+ <exports symbol='xsltXPathVariableLookup'/>
</file>
<file name='pattern'>
+ <exports symbol='xsltAddTemplate'/>
+ <exports symbol='xsltCleanupTemplates'/>
<exports symbol='xsltCompMatch'/>
<exports symbol='xsltCompMatchPtr'/>
<exports symbol='xsltCompilePattern'/>
<exports symbol='xsltFreeCompMatchList'/>
- <exports symbol='xsltTestCompMatchList'/>
- <exports symbol='xsltAddTemplate'/>
- <exports symbol='xsltGetTemplate'/>
<exports symbol='xsltFreeTemplateHashes'/>
- <exports symbol='xsltCleanupTemplates'/>
+ <exports symbol='xsltGetTemplate'/>
<exports symbol='xsltMatchPattern'/>
- </file>
- <file name='namespaces'>
- <exports symbol='xsltNamespaceAlias'/>
- <exports symbol='xsltGetNamespace'/>
- <exports symbol='xsltGetSpecialNamespace'/>
- <exports symbol='xsltCopyNamespace'/>
- <exports symbol='xsltCopyNamespaceList'/>
- <exports symbol='xsltFreeNamespaceAliasHashes'/>
- </file>
- <file name='attributes'>
- <exports symbol='xsltParseStylesheetAttributeSet'/>
- <exports symbol='xsltFreeAttributeSetsHashes'/>
- <exports symbol='xsltApplyAttributeSet'/>
- <exports symbol='xsltResolveStylesheetAttributeSet'/>
- </file>
- <file name='numbersInternals'>
- </file>
- <file name='libxslt'>
- <exports symbol='LIBXSLT_PUBLIC'/>
- </file>
- <file name='security'>
- <exports symbol='xsltSecurityPrefs'/>
- <exports symbol='xsltSecurityPrefsPtr'/>
- <exports symbol='xsltSecurityOption'/>
- <exports symbol='xsltSecurityCheck'/>
- <exports symbol='xsltNewSecurityPrefs'/>
- <exports symbol='xsltFreeSecurityPrefs'/>
- <exports symbol='xsltSetSecurityPrefs'/>
- <exports symbol='xsltGetSecurityPrefs'/>
- <exports symbol='xsltSetDefaultSecurityPrefs'/>
- <exports symbol='xsltGetDefaultSecurityPrefs'/>
- <exports symbol='xsltSetCtxtSecurityPrefs'/>
- <exports symbol='xsltSecurityAllow'/>
- <exports symbol='xsltSecurityForbid'/>
- <exports symbol='xsltCheckWrite'/>
- <exports symbol='xsltCheckRead'/>
- </file>
- <file name='xsltutils'>
- <exports symbol='XSLT_TODO'/>
- <exports symbol='XSLT_STRANGE'/>
- <exports symbol='IS_XSLT_ELEM'/>
- <exports symbol='IS_XSLT_NAME'/>
- <exports symbol='IS_XSLT_REAL_NODE'/>
- <exports symbol='xsltGetNsProp'/>
- <exports symbol='xsltGetUTF8Char'/>
- <exports symbol='xsltPrintErrorContext'/>
- <exports symbol='xsltMessage'/>
- <exports symbol='xsltSetGenericErrorFunc'/>
- <exports symbol='xsltSetGenericDebugFunc'/>
- <exports symbol='xsltSetTransformErrorFunc'/>
- <exports symbol='xsltTransformError'/>
- <exports symbol='xsltDocumentSortFunction'/>
- <exports symbol='xsltDoSortFunction'/>
- <exports symbol='xsltGetQNameURI'/>
- <exports symbol='xsltSaveResultTo'/>
- <exports symbol='xsltSaveResultToFilename'/>
- <exports symbol='xsltSaveResultToFile'/>
- <exports symbol='xsltSaveResultToFd'/>
- <exports symbol='xsltSaveResultToString'/>
- <exports symbol='xsltSaveProfiling'/>
- <exports symbol='xsltGetProfileInformation'/>
- <exports symbol='xsltTimestamp'/>
- <exports symbol='xsltCalibrateAdjust'/>
- <exports symbol='XSLT_TIMESTAMP_TICS_PER_SEC'/>
- <exports symbol='xsltDebugStatusCodes'/>
- <exports symbol='xsltHandleDebuggerCallback'/>
- <exports symbol='xsltAddCallCallback'/>
- <exports symbol='xsltDropCallCallback'/>
- <exports symbol='xsltSetDebuggerCallbacks'/>
- <exports symbol='xslAddCall'/>
- <exports symbol='xslDropCall'/>
+ <exports symbol='xsltTestCompMatchList'/>
</file>
</files>
<symbols>
- <macro name='ATTRIBUTE_UNUSED' file='xsltwin32config'>
- <info>This macro is used to flag unused function parameters to GCC, useless here</info>
- </macro>
<macro name='CHECK_STOPPED' file='xsltInternals'>
<info>Macro to check if the XSLT processing should be stopped. Will return from the function.</info>
</macro>
<macro name='CHECK_STOPPEDE' file='xsltInternals'>
<info>Macro to check if the XSLT processing should be stopped. Will goto the error: label.</info>
</macro>
- <macro name='DEBUG_MEMORY' file='xsltwin32config'>
- <info>should be activated only when debugging libxslt. It replaces the allocator with a collect and debug shell to the libc allocator. Use configure --with-mem-debug to activate it on both library</info>
- </macro>
- <macro name='DEBUG_MEMORY_LOCATION' file='xsltwin32config'>
- <info>should be activated only when debugging libxslt. DEBUG_MEMORY_LOCATION should be activated only when libxml has been configured with --with-debug-mem too</info>
- </macro>
<macro name='IS_XSLT_ELEM' file='xsltutils'>
<info>Checks that the element pertains to XSLT namespace.</info>
- <arg name='n'/>
</macro>
<macro name='IS_XSLT_NAME' file='xsltutils'>
<info>Checks the value of an element in XSLT namespace.</info>
- <arg name='n'/>
- <arg name='val'/>
</macro>
<macro name='IS_XSLT_REAL_NODE' file='xsltutils'>
<info>Check that a node is a 'real' one: document, element, text or attribute.</info>
- <arg name='n'/>
- </macro>
- <macro name='LIBXSLT_DOTTED_VERSION' file='xsltwin32config'>
- <info>the version string like "1.2.3"</info>
</macro>
- <macro name='LIBXSLT_PUBLIC' file='xsltwin32config'>
- <info>This macro is needed on Win32 when using MSVC. It enables the client code to access exported variables. It should expand to nothing when compiling this library itself, but must expand to __declspec(dllimport) when a client includes the library header and that only if it links dynamically against this library.</info>
+ <macro name='LIBXSLT_PUBLIC' file='xslt'>
+ <info>Macro used on Windows to tag public identifiers from shared libraries.</info>
</macro>
- <macro name='LIBXSLT_VERSION' file='xsltwin32config'>
- <info>the version number: 1.2.3 value is 1002003</info>
- </macro>
- <macro name='LIBXSLT_VERSION_STRING' file='xsltwin32config'>
- <info>the version number string, 1.2.3 value is "1002003"</info>
- </macro>
- <macro name='WITH_DEBUGGER' file='xsltconfig'>
- </macro>
- <macro name='WITH_XSLT_DEBUG' file='xsltwin32config'>
- <info>Activate the compilation of the debug reporting. Speed penalty is insignifiant and being able to run xsltpoc -v is useful. On by default</info>
- </macro>
- <const name='XSLT_DEBUG_CONT' file='xsltutils'/>
- <const name='XSLT_DEBUG_INIT' file='xsltutils'/>
- <const name='XSLT_DEBUG_NEXT' file='xsltutils'/>
- <const name='XSLT_DEBUG_NONE' file='xsltutils'/>
- <const name='XSLT_DEBUG_QUIT' file='xsltutils'/>
- <const name='XSLT_DEBUG_RUN' file='xsltutils'/>
- <const name='XSLT_DEBUG_RUN_RESTART' file='xsltutils'/>
- <const name='XSLT_DEBUG_STEP' file='xsltutils'/>
- <const name='XSLT_DEBUG_STEPOUT' file='xsltutils'/>
- <const name='XSLT_DEBUG_STOP' file='xsltutils'/>
<macro name='XSLT_DEFAULT_URL' file='xslt'>
<info>The XSLT "vendor" URL for this processor.</info>
</macro>
<macro name='XSLT_DEFAULT_VERSION' file='xslt'>
<info>The default version of XSLT supported.</info>
</macro>
- <const name='XSLT_FUNC_APPLYIMPORTS' file='xsltInternals'/>
- <const name='XSLT_FUNC_APPLYTEMPLATES' file='xsltInternals'/>
- <const name='XSLT_FUNC_ATTRIBUTE' file='xsltInternals'/>
- <const name='XSLT_FUNC_CALLTEMPLATE' file='xsltInternals'/>
- <const name='XSLT_FUNC_CHOOSE' file='xsltInternals'/>
- <const name='XSLT_FUNC_COMMENT' file='xsltInternals'/>
- <const name='XSLT_FUNC_COPY' file='xsltInternals'/>
- <const name='XSLT_FUNC_COPYOF' file='xsltInternals'/>
- <const name='XSLT_FUNC_DOCUMENT' file='xsltInternals'/>
- <const name='XSLT_FUNC_ELEMENT' file='xsltInternals'/>
- <const name='XSLT_FUNC_EXTENSION' file='xsltInternals'/>
- <const name='XSLT_FUNC_FOREACH' file='xsltInternals'/>
- <const name='XSLT_FUNC_IF' file='xsltInternals'/>
- <const name='XSLT_FUNC_NUMBER' file='xsltInternals'/>
- <const name='XSLT_FUNC_PARAM' file='xsltInternals'/>
- <const name='XSLT_FUNC_PI' file='xsltInternals'/>
- <const name='XSLT_FUNC_SORT' file='xsltInternals'/>
- <const name='XSLT_FUNC_TEXT' file='xsltInternals'/>
- <const name='XSLT_FUNC_VALUEOF' file='xsltInternals'/>
- <const name='XSLT_FUNC_VARIABLE' file='xsltInternals'/>
- <const name='XSLT_FUNC_WHEN' file='xsltInternals'/>
- <const name='XSLT_FUNC_WITHPARAM' file='xsltInternals'/>
<macro name='XSLT_GET_IMPORT_INT' file='imports'>
<info>A macro to import intergers from the stylesheet cascading order.</info>
- <arg name='res'/>
- <arg name='style'/>
- <arg name='name'/>
</macro>
<macro name='XSLT_GET_IMPORT_PTR' file='imports'>
<info>A macro to import pointers from the stylesheet cascading order.</info>
- <arg name='res'/>
- <arg name='style'/>
- <arg name='name'/>
</macro>
<macro name='XSLT_LIBXSLT_NAMESPACE' file='extra'>
<info>This is the libxslt namespace for specific extensions.</info>
<macro name='XSLT_NAMESPACE' file='xslt'>
<info>The XSLT specification namespace.</info>
</macro>
- <macro name='XSLT_NEED_TRIO' file='xsltconfig'>
- <info>should be activated in the existing libc library lacks some of the string formatting function, in that case reuse the Trio ones already compiled in the libxml2 library.</info>
- </macro>
<macro name='XSLT_NORM_SAXON_NAMESPACE' file='extra'>
<info>This is Norm's namespace for SAXON extensions.</info>
</macro>
- <const name='XSLT_OUTPUT_HTML' file='xsltInternals'/>
- <const name='XSLT_OUTPUT_TEXT' file='xsltInternals'/>
- <const name='XSLT_OUTPUT_XML' file='xsltInternals'/>
<macro name='XSLT_PAT_NO_PRIORITY' file='xsltInternals'>
<info>Specific value for pattern without priority expressed.</info>
</macro>
<macro name='XSLT_REGISTER_FUNCTION_LOOKUP' file='functions'>
<info>Registering macro, not general purpose at all but used in different modules.</info>
- <arg name='ctxt'/>
</macro>
<macro name='XSLT_REGISTER_VARIABLE_LOOKUP' file='variables'>
<info>Registering macro, not general purpose at all but used in different modules.</info>
- <arg name='ctxt'/>
</macro>
<macro name='XSLT_RUNTIME_EXTRA' file='xsltInternals'>
- <arg name='ctxt'/>
- <arg name='nr'/>
+ <info>Macro used to define extra information stored in the context</info>
+ <arg name='ctxt' info='the transformation context'/>
+ <arg name='nr' info='the index'/>
</macro>
<macro name='XSLT_RUNTIME_EXTRA_FREE' file='xsltInternals'>
- <arg name='ctxt'/>
- <arg name='nr'/>
+ <info>Macro used to free extra information stored in the context</info>
+ <arg name='ctxt' info='the transformation context'/>
+ <arg name='nr' info='the index'/>
</macro>
<macro name='XSLT_RUNTIME_EXTRA_LST' file='xsltInternals'>
- <arg name='ctxt'/>
- <arg name='nr'/>
+ <info>Macro used to access extra information stored in the context</info>
+ <arg name='ctxt' info='the transformation context'/>
+ <arg name='nr' info='the index'/>
</macro>
<macro name='XSLT_SAXON_NAMESPACE' file='extra'>
<info>This is Michael Kay's Saxon processor namespace for extensions.</info>
</macro>
- <const name='XSLT_SECPREF_CREATE_DIRECTORY' file='security'/>
- <const name='XSLT_SECPREF_READ_FILE' file='security'/>
- <const name='XSLT_SECPREF_READ_NETWORK' file='security'/>
- <const name='XSLT_SECPREF_WRITE_FILE' file='security'/>
- <const name='XSLT_SECPREF_WRITE_NETWORK' file='security'/>
- <const name='XSLT_STATE_ERROR' file='xsltInternals'/>
- <const name='XSLT_STATE_OK' file='xsltInternals'/>
- <const name='XSLT_STATE_STOPPED' file='xsltInternals'/>
<macro name='XSLT_STRANGE' file='xsltutils'>
+ <info>Macro to flag that a problem was detected internally.</info>
</macro>
<macro name='XSLT_TIMESTAMP_TICS_PER_SEC' file='xsltutils'>
+ <info>Sampling precision for profiling</info>
</macro>
<macro name='XSLT_TODO' file='xsltutils'>
+ <info>Macro to flag unimplemented blocks.</info>
</macro>
<macro name='XSLT_XALAN_NAMESPACE' file='extra'>
<info>This is the Apache project XALAN processor namespace for extensions.</info>
<macro name='XSLT_XT_NAMESPACE' file='extra'>
<info>This is James Clark's XT processor namespace for extensions.</info>
</macro>
+ <enum name='XSLT_DEBUG_CONT' file='xsltutils' type='xsltDebugStatusCodes'/>
+ <enum name='XSLT_DEBUG_INIT' file='xsltutils' type='xsltDebugStatusCodes'/>
+ <enum name='XSLT_DEBUG_NEXT' file='xsltutils' type='xsltDebugStatusCodes'/>
+ <enum name='XSLT_DEBUG_NONE' file='xsltutils' value='0' type='xsltDebugStatusCodes' info='no debugging allowed'/>
+ <enum name='XSLT_DEBUG_QUIT' file='xsltutils' type='xsltDebugStatusCodes'/>
+ <enum name='XSLT_DEBUG_RUN' file='xsltutils' type='xsltDebugStatusCodes'/>
+ <enum name='XSLT_DEBUG_RUN_RESTART' file='xsltutils' type='xsltDebugStatusCodes'/>
+ <enum name='XSLT_DEBUG_STEP' file='xsltutils' type='xsltDebugStatusCodes'/>
+ <enum name='XSLT_DEBUG_STEPOUT' file='xsltutils' type='xsltDebugStatusCodes'/>
+ <enum name='XSLT_DEBUG_STOP' file='xsltutils' type='xsltDebugStatusCodes'/>
+ <enum name='XSLT_FUNC_APPLYIMPORTS' file='xsltInternals' type='xsltStyleType'/>
+ <enum name='XSLT_FUNC_APPLYTEMPLATES' file='xsltInternals' type='xsltStyleType'/>
+ <enum name='XSLT_FUNC_ATTRIBUTE' file='xsltInternals' type='xsltStyleType'/>
+ <enum name='XSLT_FUNC_CALLTEMPLATE' file='xsltInternals' type='xsltStyleType'/>
+ <enum name='XSLT_FUNC_CHOOSE' file='xsltInternals' type='xsltStyleType'/>
+ <enum name='XSLT_FUNC_COMMENT' file='xsltInternals' type='xsltStyleType'/>
+ <enum name='XSLT_FUNC_COPY' file='xsltInternals' value='1' type='xsltStyleType'/>
+ <enum name='XSLT_FUNC_COPYOF' file='xsltInternals' type='xsltStyleType'/>
+ <enum name='XSLT_FUNC_DOCUMENT' file='xsltInternals' type='xsltStyleType'/>
+ <enum name='XSLT_FUNC_ELEMENT' file='xsltInternals' type='xsltStyleType'/>
+ <enum name='XSLT_FUNC_EXTENSION' file='xsltInternals' type='xsltStyleType'/>
+ <enum name='XSLT_FUNC_FOREACH' file='xsltInternals' type='xsltStyleType'/>
+ <enum name='XSLT_FUNC_IF' file='xsltInternals' type='xsltStyleType'/>
+ <enum name='XSLT_FUNC_NUMBER' file='xsltInternals' type='xsltStyleType'/>
+ <enum name='XSLT_FUNC_PARAM' file='xsltInternals' type='xsltStyleType'/>
+ <enum name='XSLT_FUNC_PI' file='xsltInternals' type='xsltStyleType'/>
+ <enum name='XSLT_FUNC_SORT' file='xsltInternals' type='xsltStyleType'/>
+ <enum name='XSLT_FUNC_TEXT' file='xsltInternals' type='xsltStyleType'/>
+ <enum name='XSLT_FUNC_VALUEOF' file='xsltInternals' type='xsltStyleType'/>
+ <enum name='XSLT_FUNC_VARIABLE' file='xsltInternals' type='xsltStyleType'/>
+ <enum name='XSLT_FUNC_WHEN' file='xsltInternals' type='xsltStyleType'/>
+ <enum name='XSLT_FUNC_WITHPARAM' file='xsltInternals' type='xsltStyleType'/>
+ <enum name='XSLT_OUTPUT_HTML' file='xsltInternals' type='xsltOutputType'/>
+ <enum name='XSLT_OUTPUT_TEXT' file='xsltInternals' type='xsltOutputType'/>
+ <enum name='XSLT_OUTPUT_XML' file='xsltInternals' value='0' type='xsltOutputType'/>
+ <enum name='XSLT_SECPREF_CREATE_DIRECTORY' file='security' type='xsltSecurityOption'/>
+ <enum name='XSLT_SECPREF_READ_FILE' file='security' value='1' type='xsltSecurityOption'/>
+ <enum name='XSLT_SECPREF_READ_NETWORK' file='security' type='xsltSecurityOption'/>
+ <enum name='XSLT_SECPREF_WRITE_FILE' file='security' type='xsltSecurityOption'/>
+ <enum name='XSLT_SECPREF_WRITE_NETWORK' file='security' type='xsltSecurityOption'/>
+ <enum name='XSLT_STATE_ERROR' file='xsltInternals' type='xsltTransformState'/>
+ <enum name='XSLT_STATE_OK' file='xsltInternals' value='0' type='xsltTransformState'/>
+ <enum name='XSLT_STATE_STOPPED' file='xsltInternals' type='xsltTransformState'/>
+ <struct name='xsltCompMatch' file='pattern' type='struct _xsltCompMatch'/>
+ <typedef name='xsltCompMatchPtr' file='pattern' type='xsltCompMatch *'/>
+ <typedef name='xsltDebugStatusCodes' file='xsltutils' type='enum'/>
+ <struct name='xsltDecimalFormat' file='xsltInternals' type='struct _xsltDecimalFormat'/>
+ <typedef name='xsltDecimalFormatPtr' file='xsltInternals' type='xsltDecimalFormat *'/>
+ <struct name='xsltDocument' file='xsltInternals' type='struct _xsltDocument'/>
+ <typedef name='xsltDocumentPtr' file='xsltInternals' type='xsltDocument *'/>
+ <struct name='xsltElemPreComp' file='xsltInternals' type='struct _xsltElemPreComp'/>
+ <typedef name='xsltElemPreCompPtr' file='xsltInternals' type='xsltElemPreComp *'/>
+ <struct name='xsltFormatNumberInfo' file='numbersInternals' type='struct _xsltFormatNumberInfo'/>
+ <typedef name='xsltFormatNumberInfoPtr' file='numbersInternals' type='xsltFormatNumberInfo *'/>
+ <struct name='xsltNumberData' file='numbersInternals' type='struct _xsltNumberData'/>
+ <typedef name='xsltNumberDataPtr' file='numbersInternals' type='xsltNumberData *'/>
+ <typedef name='xsltOutputType' file='xsltInternals' type='enum'/>
+ <struct name='xsltRuntimeExtra' file='xsltInternals' type='struct _xsltRuntimeExtra'/>
+ <typedef name='xsltRuntimeExtraPtr' file='xsltInternals' type='xsltRuntimeExtra *'/>
+ <typedef name='xsltSecurityOption' file='security' type='enum'/>
+ <struct name='xsltSecurityPrefs' file='security' type='struct _xsltSecurityPrefs'/>
+ <typedef name='xsltSecurityPrefsPtr' file='security' type='xsltSecurityPrefs *'/>
+ <struct name='xsltStackElem' file='xsltInternals' type='struct _xsltStackElem'/>
+ <typedef name='xsltStackElemPtr' file='xsltInternals' type='xsltStackElem *'/>
+ <struct name='xsltStylePreComp' file='xsltInternals' type='struct _xsltStylePreComp'/>
+ <typedef name='xsltStylePreCompPtr' file='xsltInternals' type='xsltStylePreComp *'/>
+ <typedef name='xsltStyleType' file='xsltInternals' type='enum'/>
+ <struct name='xsltStylesheet' file='xsltInternals' type='struct _xsltStylesheet'/>
+ <typedef name='xsltStylesheetPtr' file='xsltInternals' type='xsltStylesheet *'/>
+ <struct name='xsltTemplate' file='xsltInternals' type='struct _xsltTemplate'/>
+ <typedef name='xsltTemplatePtr' file='xsltInternals' type='xsltTemplate *'/>
+ <struct name='xsltTransformContext' file='xsltInternals' type='struct _xsltTransformContext'/>
+ <typedef name='xsltTransformContextPtr' file='xsltInternals' type='xsltTransformContext *'/>
+ <typedef name='xsltTransformState' file='xsltInternals' type='enum'/>
+ <function name='xmlXPathStringEvalNumber' file='xslt.c'>
+ <info></info>
+ <return type='double' info=''/>
+ <arg name='str' type='const xmlChar *' info=''/>
+ </function>
<function name='xslAddCall' file='xsltutils'>
<info>Add template "call" to call stack</info>
- <return type='int' info=': 1 on sucess 0 otherwise an error may be printed if WITH_XSLT_DEBUG_BREAKPOINTS is defined '/>
- <arg name='templ' type='xsltTemplatePtr' info='current template being applied '/>
- <arg name='source' type='xmlNodePtr' info='the source node being processed '/>
+ <return type='int' info=': 1 on sucess 0 otherwise an error may be printed if WITH_XSLT_DEBUG_BREAKPOINTS is defined'/>
+ <arg name='templ' type='xsltTemplatePtr' info='current template being applied'/>
+ <arg name='source' type='xmlNodePtr' info='the source node being processed'/>
</function>
<function name='xslDropCall' file='xsltutils'>
<info>Drop the topmost item off the call stack</info>
<function name='xslHandleDebugger' file='transform'>
<info>If either cur or node are a breakpoint, or xslDebugStatus in state where debugging must occcur at this time then transfer control to the xslDebugBreak function</info>
<return type='void'/>
- <arg name='cur' type='xmlNodePtr' info='source node being executed '/>
- <arg name='node' type='xmlNodePtr' info='data node being processed '/>
- <arg name='templ' type='xsltTemplatePtr' info='temlate that applies to node '/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='the xslt transform context '/>
+ <arg name='cur' type='xmlNodePtr' info='source node being executed'/>
+ <arg name='node' type='xmlNodePtr' info='data node being processed'/>
+ <arg name='templ' type='xsltTemplatePtr' info='temlate that applies to node'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='the xslt transform context'/>
</function>
<functype name='xsltAddCallCallback' file='xsltutils'>
- <return type='int'/>
- <arg name='templ' type='xsltTemplatePtr'/>
- <arg name='source' type='xmlNodePtr'/>
+ <info></info>
+ <return type='int(*xsltAddCallCallback)' info=''/>
+ <arg name='templ' type='xsltTemplatePtr' info=''/>
+ <arg name='source' type='xmlNodePtr' info=''/>
</functype>
<function name='xsltAddKey' file='keys'>
<info>add a key definition to a stylesheet</info>
- <return type='int' info='0 in case of success, and -1 in case of failure. '/>
- <arg name='style' type='xsltStylesheetPtr' info='an XSLT stylesheet '/>
- <arg name='name' type='const xmlChar *' info='the key name or NULL '/>
- <arg name='nameURI' type='const xmlChar *' info='the name URI or NULL '/>
- <arg name='match' type='const xmlChar *' info='the match value '/>
- <arg name='use' type='const xmlChar *' info='the use value '/>
- <arg name='inst' type='xmlNodePtr' info='the key instruction '/>
+ <return type='int' info='0 in case of success, and -1 in case of failure.'/>
+ <arg name='style' type='xsltStylesheetPtr' info='an XSLT stylesheet'/>
+ <arg name='name' type='const xmlChar *' info='the key name or NULL'/>
+ <arg name='nameURI' type='const xmlChar *' info='the name URI or NULL'/>
+ <arg name='match' type='const xmlChar *' info='the match value'/>
+ <arg name='use' type='const xmlChar *' info='the use value'/>
+ <arg name='inst' type='xmlNodePtr' info='the key instruction'/>
</function>
<function name='xsltAddStackElemList' file='variables'>
<info>add the new element list at this level of the stack.</info>
- <return type='int' info='0 in case of success, -1 in case of failure. '/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='xn XSLT transformation context '/>
- <arg name='elems' type='xsltStackElemPtr' info='a stack element list '/>
+ <return type='int' info='0 in case of success, -1 in case of failure.'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='xn XSLT transformation context'/>
+ <arg name='elems' type='xsltStackElemPtr' info='a stack element list'/>
</function>
<function name='xsltAddTemplate' file='pattern'>
- <info>Register the XSLT pattern associated to cur</info>
- <return type='int' info='-1 in case of error, 0 otherwise '/>
- <arg name='style' type='xsltStylesheetPtr' info='an XSLT stylesheet '/>
- <arg name='cur' type='xsltTemplatePtr' info='an XSLT template '/>
- <arg name='mode' type='const xmlChar *' info='the mode name or NULL '/>
- <arg name='modeURI' type='const xmlChar *' info='the mode URI or NULL '/>
+ <info>Register the XSLT pattern associated to @cur</info>
+ <return type='int' info='-1 in case of error, 0 otherwise'/>
+ <arg name='style' type='xsltStylesheetPtr' info='an XSLT stylesheet'/>
+ <arg name='cur' type='xsltTemplatePtr' info='an XSLT template'/>
+ <arg name='mode' type='const xmlChar *' info='the mode name or NULL'/>
+ <arg name='modeURI' type='const xmlChar *' info='the mode URI or NULL'/>
</function>
<function name='xsltAllocateExtra' file='xsltInternals'>
<info>Allocate an extra runtime information slot statically while compiling the stylesheet and return its number</info>
- <return type='int' info='the number of the slot '/>
- <arg name='style' type='xsltStylesheetPtr' info='an XSLT stylesheet '/>
+ <return type='int' info='the number of the slot'/>
+ <arg name='style' type='xsltStylesheetPtr' info='an XSLT stylesheet'/>
</function>
<function name='xsltAllocateExtraCtxt' file='xsltInternals'>
<info>Allocate an extra runtime information slot at run-time and return its number This make sure there is a slot ready in the transformation context</info>
- <return type='int' info='the number of the slot '/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT transformation context '/>
+ <return type='int' info='the number of the slot'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT transformation context'/>
</function>
<function name='xsltApplyAttributeSet' file='attributes'>
<info>Apply the xsl:use-attribute-sets</info>
<return type='void'/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='the XSLT stylesheet '/>
- <arg name='node' type='xmlNodePtr' info='the node in the source tree. '/>
- <arg name='inst' type='xmlNodePtr' info='the xslt attribute node '/>
- <arg name='attributes' type='xmlChar *' info='the set list. '/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='the XSLT stylesheet'/>
+ <arg name='node' type='xmlNodePtr' info='the node in the source tree.'/>
+ <arg name='inst' type='xmlNodePtr' info='the xslt attribute node'/>
+ <arg name='attributes' type='xmlChar *' info='the set list.'/>
</function>
<function name='xsltApplyImports' file='transform'>
<info>Process the xslt apply-imports node on the source node</info>
<return type='void'/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='a XSLT process context '/>
- <arg name='node' type='xmlNodePtr' info='the node in the source tree. '/>
- <arg name='inst' type='xmlNodePtr' info='the xslt apply-imports node '/>
- <arg name='comp' type='xsltStylePreCompPtr' info='precomputed information '/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='a XSLT process context'/>
+ <arg name='node' type='xmlNodePtr' info='the node in the source tree.'/>
+ <arg name='inst' type='xmlNodePtr' info='the xslt apply-imports node'/>
+ <arg name='comp' type='xsltStylePreCompPtr' info='precomputed information'/>
</function>
<function name='xsltApplyOneTemplate' file='transform'>
<info>Process the apply-templates node on the source node, if params are passed they are pushed on the variable stack but not popped, it's left to the caller to handle them back (they may be reused).</info>
<return type='void'/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='a XSLT process context '/>
- <arg name='node' type='xmlNodePtr' info='the node in the source tree. '/>
- <arg name='list' type='xmlNodePtr' info='the template replacement nodelist '/>
- <arg name='templ' type='xsltTemplatePtr' info='if is this a real template processing, the template processed '/>
- <arg name='params' type='xsltStackElemPtr' info='a set of parameters for the template or NULL '/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='a XSLT process context'/>
+ <arg name='node' type='xmlNodePtr' info='the node in the source tree.'/>
+ <arg name='list' type='xmlNodePtr' info='the template replacement nodelist'/>
+ <arg name='templ' type='xsltTemplatePtr' info='if is this a real template processing, the template processed'/>
+ <arg name='params' type='xsltStackElemPtr' info='a set of parameters for the template or NULL'/>
</function>
<function name='xsltApplyStripSpaces' file='transform'>
<info>Strip the unwanted ignorable spaces from the input tree</info>
<return type='void'/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='a XSLT process context '/>
- <arg name='node' type='xmlNodePtr'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='a XSLT process context'/>
+ <arg name='node' type='xmlNodePtr' info='the root of the XML tree'/>
</function>
<function name='xsltApplyStylesheet' file='transform'>
<info>Apply the stylesheet to the document NOTE: This may lead to a non-wellformed output XML wise !</info>
- <return type='xmlDocPtr' info='the result document or NULL in case of error '/>
- <arg name='style' type='xsltStylesheetPtr' info='a parsed XSLT stylesheet '/>
- <arg name='doc' type='xmlDocPtr' info='a parsed XML document '/>
- <arg name='params' type='const char **' info='a NULL terminated arry of parameters names/values tuples '/>
+ <return type='xmlDocPtr' info='the result document or NULL in case of error'/>
+ <arg name='style' type='xsltStylesheetPtr' info='a parsed XSLT stylesheet'/>
+ <arg name='doc' type='xmlDocPtr' info='a parsed XML document'/>
+ <arg name='params' type='const char **' info='a NULL terminated arry of parameters names/values tuples'/>
</function>
<function name='xsltApplyStylesheetUser' file='transform'>
<info>Apply the stylesheet to the document and allow the user to provide its own transformation context.</info>
- <return type='xmlDocPtr' info='the result document or NULL in case of error '/>
- <arg name='style' type='xsltStylesheetPtr' info='a parsed XSLT stylesheet '/>
- <arg name='doc' type='xmlDocPtr' info='a parsed XML document '/>
- <arg name='params' type='const char **' info='a NULL terminated arry of parameters names/values tuples '/>
- <arg name='output' type='const char *' info='the targetted output '/>
- <arg name='profile' type='FILE *' info='profile FILE * output or NULL '/>
- <arg name='userCtxt' type='xsltTransformContextPtr' info='user provided transform context '/>
+ <return type='xmlDocPtr' info='the result document or NULL in case of error'/>
+ <arg name='style' type='xsltStylesheetPtr' info='a parsed XSLT stylesheet'/>
+ <arg name='doc' type='xmlDocPtr' info='a parsed XML document'/>
+ <arg name='params' type='const char **' info='a NULL terminated arry of parameters names/values tuples'/>
+ <arg name='output' type='const char *' info='the targetted output'/>
+ <arg name='profile' type='FILE *' info='profile FILE * output or NULL'/>
+ <arg name='userCtxt' type='xsltTransformContextPtr' info='user provided transform context'/>
</function>
<function name='xsltApplyTemplates' file='transform'>
<info>Process the apply-templates node on the source node</info>
<return type='void'/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='a XSLT process context '/>
- <arg name='node' type='xmlNodePtr' info='the node in the source tree. '/>
- <arg name='inst' type='xmlNodePtr' info='the apply-templates node '/>
- <arg name='comp' type='xsltStylePreCompPtr' info='precomputed information '/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='a XSLT process context'/>
+ <arg name='node' type='xmlNodePtr' info='the node in the source tree.'/>
+ <arg name='inst' type='xmlNodePtr' info='the apply-templates node'/>
+ <arg name='comp' type='xsltStylePreCompPtr' info='precomputed information'/>
</function>
<function name='xsltAttrListTemplateProcess' file='templates'>
<info>Do a copy of an attribute list with attribute template processing</info>
- <return type='xmlAttrPtr' info='a new xmlAttrPtr, or NULL in case of error. '/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='the XSLT transformation context '/>
- <arg name='target' type='xmlNodePtr' info='the element where the attributes will be grafted '/>
- <arg name='cur' type='xmlAttrPtr' info='the first attribute '/>
+ <return type='xmlAttrPtr' info='a new xmlAttrPtr, or NULL in case of error.'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='the XSLT transformation context'/>
+ <arg name='target' type='xmlNodePtr' info='the element where the attributes will be grafted'/>
+ <arg name='cur' type='xmlAttrPtr' info='the first attribute'/>
</function>
<function name='xsltAttrTemplateProcess' file='templates'>
<info>Process the given attribute and return the new processed copy.</info>
- <return type='xmlAttrPtr' info='the attribute replacement. '/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='the XSLT transformation context '/>
- <arg name='target' type='xmlNodePtr' info='the result node '/>
- <arg name='attr' type='xmlAttrPtr'/>
+ <return type='xmlAttrPtr' info='the attribute replacement.'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='the XSLT transformation context'/>
+ <arg name='target' type='xmlNodePtr' info='the result node'/>
+ <arg name='cur' type='xmlAttrPtr' info='the attribute template node'/>
</function>
<function name='xsltAttrTemplateValueProcess' file='templates'>
<info>Process the given node and return the new string value.</info>
- <return type='xmlChar *' info='the computed string value or NULL, must be deallocated by the caller. '/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='the XSLT transformation context '/>
- <arg name='attr' type='const xmlChar*'/>
+ <return type='xmlChar *' info='the computed string value or NULL, must be deallocated by the caller.'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='the XSLT transformation context'/>
+ <arg name='str' type='const xmlChar *' info='the attribute template node value'/>
</function>
<function name='xsltAttrTemplateValueProcessNode' file='templates'>
<info>Process the given string, allowing to pass a namespace mapping context and return the new string value.</info>
- <return type='xmlChar *' info='the computed string value or NULL, must be deallocated by the caller. '/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='the XSLT transformation context '/>
- <arg name='str' type='const xmlChar*' info='the attribute template node value '/>
- <arg name='node' type='xmlNodePtr' info='the node hosting the attribute '/>
+ <return type='xmlChar *' info='the computed string value or NULL, must be deallocated by the caller.'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='the XSLT transformation context'/>
+ <arg name='str' type='const xmlChar *' info='the attribute template node value'/>
+ <arg name='node' type='xmlNodePtr' info='the node hosting the attribute'/>
</function>
<function name='xsltAttribute' file='transform'>
<info>Process the xslt attribute node on the source node</info>
<return type='void'/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='a XSLT process context '/>
- <arg name='node' type='xmlNodePtr' info='the node in the source tree. '/>
- <arg name='inst' type='xmlNodePtr' info='the xslt attribute node '/>
- <arg name='comp' type='xsltStylePreCompPtr' info='precomputed information '/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='a XSLT process context'/>
+ <arg name='node' type='xmlNodePtr' info='the node in the source tree.'/>
+ <arg name='inst' type='xmlNodePtr' info='the xslt attribute node'/>
+ <arg name='comp' type='xsltStylePreCompPtr' info='precomputed information'/>
</function>
<function name='xsltCalibrateAdjust' file='xsltutils'>
<info>Used for to correct the calibration for xsltTimestamp()</info>
<return type='void'/>
- <arg name='delta' type='long'/>
+ <arg name='delta' type='long' info='a negative dealy value found'/>
</function>
<function name='xsltCallTemplate' file='transform'>
<info>Process the xslt call-template node on the source node</info>
<return type='void'/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='a XSLT process context '/>
- <arg name='node' type='xmlNodePtr' info='the node in the source tree. '/>
- <arg name='inst' type='xmlNodePtr' info='the xslt call-template node '/>
- <arg name='comp' type='xsltStylePreCompPtr' info='precomputed information '/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='a XSLT process context'/>
+ <arg name='node' type='xmlNodePtr' info='the node in the source tree.'/>
+ <arg name='inst' type='xmlNodePtr' info='the xslt call-template node'/>
+ <arg name='comp' type='xsltStylePreCompPtr' info='precomputed information'/>
</function>
<function name='xsltCheckExtPrefix' file='extensions'>
<info>Check if the given prefix is one of the declared extensions</info>
- <return type='int' info='1 if this is an extension, 0 otherwise '/>
- <arg name='style' type='xsltStylesheetPtr' info='the stylesheet '/>
- <arg name='prefix' type='const xmlChar *' info='the namespace prefix (possibly NULL) '/>
+ <return type='int' info='1 if this is an extension, 0 otherwise'/>
+ <arg name='style' type='xsltStylesheetPtr' info='the stylesheet'/>
+ <arg name='prefix' type='const xmlChar *' info='the namespace prefix (possibly NULL)'/>
</function>
<function name='xsltCheckRead' file='security'>
- <info>Check if the resource is allowed to be read Return 1 if read is allowed, 0 if not and -1 in case or error.</info>
- <return type='int'/>
- <arg name='sec' type='xsltSecurityPrefsPtr' info='the security options '/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT transformation context '/>
- <arg name='URL' type='const xmlChar *' info='the resource to be read '/>
+ <info>Check if the resource is allowed to be read</info>
+ <return type='int' info='1 if read is allowed, 0 if not and -1 in case or error.'/>
+ <arg name='sec' type='xsltSecurityPrefsPtr' info='the security options'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT transformation context'/>
+ <arg name='URL' type='const xmlChar *' info='the resource to be read'/>
</function>
<function name='xsltCheckWrite' file='security'>
- <info>Check if the resource is allowed to be written, if necessary makes some preliminary work like creating directories Return 1 if write is allowed, 0 if not and -1 in case or error.</info>
- <return type='int'/>
- <arg name='sec' type='xsltSecurityPrefsPtr' info='the security options '/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT transformation context '/>
- <arg name='URL' type='const xmlChar *' info='the resource to be written '/>
+ <info>Check if the resource is allowed to be written, if necessary makes some preliminary work like creating directories</info>
+ <return type='int' info='1 if write is allowed, 0 if not and -1 in case or error.'/>
+ <arg name='sec' type='xsltSecurityPrefsPtr' info='the security options'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT transformation context'/>
+ <arg name='URL' type='const xmlChar *' info='the resource to be written'/>
</function>
<function name='xsltChoose' file='transform'>
<info>Process the xslt choose node on the source node</info>
<return type='void'/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='a XSLT process context '/>
- <arg name='node' type='xmlNodePtr' info='the node in the source tree. '/>
- <arg name='inst' type='xmlNodePtr' info='the xslt choose node '/>
- <arg name='comp' type='xsltStylePreCompPtr' info='precomputed information '/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='a XSLT process context'/>
+ <arg name='node' type='xmlNodePtr' info='the node in the source tree.'/>
+ <arg name='inst' type='xmlNodePtr' info='the xslt choose node'/>
+ <arg name='comp' type='xsltStylePreCompPtr' info='precomputed information'/>
</function>
<function name='xsltCleanupGlobals' file='xslt'>
<info>Unregister all global variables set up by the XSLT library</info>
<function name='xsltCleanupTemplates' file='pattern'>
<info>Cleanup the state of the templates used by the stylesheet and the ones it imports.</info>
<return type='void'/>
- <arg name='style' type='xsltStylesheetPtr' info='an XSLT stylesheet '/>
+ <arg name='style' type='xsltStylesheetPtr' info='an XSLT stylesheet'/>
</function>
<function name='xsltComment' file='transform'>
<info>Process the xslt comment node on the source node</info>
<return type='void'/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='a XSLT process context '/>
- <arg name='node' type='xmlNodePtr' info='the node in the source tree. '/>
- <arg name='inst' type='xmlNodePtr' info='the xslt comment node '/>
- <arg name='comp' type='xsltStylePreCompPtr' info='precomputed information '/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='a XSLT process context'/>
+ <arg name='node' type='xmlNodePtr' info='the node in the source tree.'/>
+ <arg name='inst' type='xmlNodePtr' info='the xslt comment node'/>
+ <arg name='comp' type='xsltStylePreCompPtr' info='precomputed information'/>
</function>
- <struct name='xsltCompMatch' file='pattern'/>
- <typedef name='xsltCompMatchPtr' file='pattern'/>
<function name='xsltCompilePattern' file='pattern'>
- <info>Compile the XSLT pattern and generates a list of precompiled form suitable for fast matching. [1] Pattern ::= LocationPathPattern | Pattern '|' LocationPathPattern</info>
- <return type='xsltCompMatchPtr' info='the generated pattern list or NULL in case of failure '/>
- <arg name='pattern' type='const xmlChar *' info='an XSLT pattern '/>
- <arg name='doc' type='xmlDocPtr' info='the containing document '/>
- <arg name='node' type='xmlNodePtr' info='the containing element '/>
- <arg name='style' type='xsltStylesheetPtr' info='the stylesheet '/>
- <arg name='runtime' type='xsltTransformContextPtr' info='the transformation context, if done at run-time '/>
+ <info>Compile the XSLT pattern and generates a list of precompiled form suitable for fast matching. [1] Pattern ::= LocationPathPattern | Pattern '|' LocationPathPattern</info>
+ <return type='xsltCompMatchPtr' info='the generated pattern list or NULL in case of failure'/>
+ <arg name='pattern' type='const xmlChar *' info='an XSLT pattern'/>
+ <arg name='doc' type='xmlDocPtr' info='the containing document'/>
+ <arg name='node' type='xmlNodePtr' info='the containing element'/>
+ <arg name='style' type='xsltStylesheetPtr' info='the stylesheet'/>
+ <arg name='runtime' type='xsltTransformContextPtr' info='the transformation context, if done at run-time'/>
+ </function>
+ <function name='xsltComputeSortResult' file='xsltutils'>
+ <info>reorder the current node list accordingly to the set of sorting requirement provided by the array of nodes.</info>
+ <return type='xmlXPathObjectPtr *' info='a ordered XPath nodeset or NULL in case of error.'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='a XSLT process context'/>
+ <arg name='sort' type='xmlNodePtr' info='node list'/>
</function>
<function name='xsltCopy' file='transform'>
<info>Process the xslt copy node on the source node</info>
<return type='void'/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='a XSLT process context '/>
- <arg name='node' type='xmlNodePtr' info='the node in the source tree. '/>
- <arg name='inst' type='xmlNodePtr' info='the xslt copy node '/>
- <arg name='comp' type='xsltStylePreCompPtr' info='precomputed information '/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='a XSLT process context'/>
+ <arg name='node' type='xmlNodePtr' info='the node in the source tree.'/>
+ <arg name='inst' type='xmlNodePtr' info='the xslt copy node'/>
+ <arg name='comp' type='xsltStylePreCompPtr' info='precomputed information'/>
</function>
<function name='xsltCopyNamespace' file='namespaces'>
- <info>Do a copy of an namespace node. If node is non-NULL the new namespaces are added automatically. This handles namespaces aliases</info>
- <return type='xmlNsPtr' info='a new xmlNsPtr, or NULL in case of error. '/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='a transformation context '/>
- <arg name='node' type='xmlNodePtr' info='the target node '/>
- <arg name='cur' type='xmlNsPtr' info='the namespace node '/>
+ <info>Do a copy of an namespace node. If @node is non-NULL the new namespaces are added automatically. This handles namespaces aliases</info>
+ <return type='xmlNsPtr' info='a new xmlNsPtr, or NULL in case of error.'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='a transformation context'/>
+ <arg name='node' type='xmlNodePtr' info='the target node'/>
+ <arg name='cur' type='xmlNsPtr' info='the namespace node'/>
</function>
<function name='xsltCopyNamespaceList' file='namespaces'>
- <info>Do a copy of an namespace list. If node is non-NULL the new namespaces are added automatically. This handles namespaces aliases</info>
- <return type='xmlNsPtr' info='a new xmlNsPtr, or NULL in case of error. '/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='a transformation context '/>
- <arg name='node' type='xmlNodePtr' info='the target node '/>
- <arg name='cur' type='xmlNsPtr' info='the first namespace '/>
+ <info>Do a copy of an namespace list. If @node is non-NULL the new namespaces are added automatically. This handles namespaces aliases</info>
+ <return type='xmlNsPtr' info='a new xmlNsPtr, or NULL in case of error.'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='a transformation context'/>
+ <arg name='node' type='xmlNodePtr' info='the target node'/>
+ <arg name='cur' type='xmlNsPtr' info='the first namespace'/>
</function>
<function name='xsltCopyOf' file='transform'>
<info>Process the xslt copy-of node on the source node</info>
<return type='void'/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='a XSLT process context '/>
- <arg name='node' type='xmlNodePtr' info='the node in the source tree. '/>
- <arg name='inst' type='xmlNodePtr' info='the xslt copy-of node '/>
- <arg name='comp' type='xsltStylePreCompPtr' info='precomputed information '/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='a XSLT process context'/>
+ <arg name='node' type='xmlNodePtr' info='the node in the source tree.'/>
+ <arg name='inst' type='xmlNodePtr' info='the xslt copy-of node'/>
+ <arg name='comp' type='xsltStylePreCompPtr' info='precomputed information'/>
+ </function>
+ <function name='xsltCopyTree' file='transform.c'>
+ <info>Make a copy of the full tree under the element node @node and insert it as last child of @insert</info>
+ <return type='xmlNodePtr' info='a pointer to the new tree, or NULL in case of error'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='a XSLT process context'/>
+ <arg name='node' type='xmlNodePtr' info='the element node in the source tree.'/>
+ <arg name='insert' type='xmlNodePtr' info='the parent in the result tree.'/>
</function>
<function name='xsltDebug' file='extra'>
<info>Process an debug node</info>
<return type='void'/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT processing context '/>
- <arg name='node' type='xmlNodePtr' info='The current node '/>
- <arg name='inst' type='xmlNodePtr' info='the instruction in the stylesheet '/>
- <arg name='comp' type='xsltStylePreCompPtr' info='precomputed informations '/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT processing context'/>
+ <arg name='node' type='xmlNodePtr' info='The current node'/>
+ <arg name='inst' type='xmlNodePtr' info='the instruction in the stylesheet'/>
+ <arg name='comp' type='xsltStylePreCompPtr' info='precomputed informations'/>
</function>
<function name='xsltDebugDumpExtensions' file='extensions'>
<info>Dumps a list of the registered XSLT extension functions and elements</info>
<return type='void'/>
- <arg name='output' type='FILE *' info='the FILE * for the output, if NULL stdout is used '/>
+ <arg name='output' type='FILE *' info='the FILE * for the output, if NULL stdout is used'/>
</function>
- <enum name='xsltDebugStatusCodes' file='xsltutils'/>
- <struct name='xsltDecimalFormat' file='xsltInternals'/>
<function name='xsltDecimalFormatGetByName' file='xsltInternals'>
<info>Find decimal-format by name</info>
- <return type='xsltDecimalFormatPtr'/>
- <arg name='sheet' type='xsltStylesheetPtr' info='the XSLT stylesheet '/>
- <arg name='name' type='xmlChar *' info='the decimal-format name to find '/>
+ <return type='xsltDecimalFormatPtr' info='the xsltDecimalFormatPtr'/>
+ <arg name='sheet' type='xsltStylesheetPtr' info='the XSLT stylesheet'/>
+ <arg name='name' type='xmlChar *' info='the decimal-format name to find'/>
</function>
- <typedef name='xsltDecimalFormatPtr' file='xsltInternals'/>
- <function name='xsltDoSortFunction' file='xsltutils'>
+ <function name='xsltDefaultSortFunction' file='xsltutils'>
<info>reorder the current node list accordingly to the set of sorting requirement provided by the arry of nodes.</info>
<return type='void'/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='a XSLT process context '/>
- <arg name='sorts' type='xmlNodePtr *' info='array of sort nodes '/>
- <arg name='nbsorts' type='int' info='the number of sorts in the array '/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='a XSLT process context'/>
+ <arg name='sorts' type='xmlNodePtr *' info='array of sort nodes'/>
+ <arg name='nbsorts' type='int' info='the number of sorts in the array'/>
+ </function>
+ <function name='xsltDoSortFunction' file='xsltutils'>
+ <info>reorder the current node list accordingly to the set of sorting requirement provided by the arry of nodes. This is a wrapper function, the actual function used is specified using xsltSetCtxtSortFunc() to set the context specific sort function, or xsltSetSortFunc() to set the global sort function. If a sort function is set on the context, this will get called. Otherwise the global sort function is called.</info>
+ <return type='void'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='a XSLT process context'/>
+ <arg name='sorts' type='xmlNodePtr *' info='array of sort nodes'/>
+ <arg name='nbsorts' type='int' info='the number of sorts in the array'/>
</function>
- <struct name='xsltDocument' file='xsltInternals'/>
<function name='xsltDocumentComp' file='preproc'>
<info>Pre process an XSLT-1.1 document element</info>
- <return type='xsltElemPreCompPtr'/>
- <arg name='style' type='xsltStylesheetPtr' info='the XSLT stylesheet '/>
- <arg name='inst' type='xmlNodePtr' info='the instruction in the stylesheet '/>
- <arg name='function' type='xsltTransformFunction'/>
+ <return type='xsltElemPreCompPtr' info='a precompiled data structure for the element'/>
+ <arg name='style' type='xsltStylesheetPtr' info='the XSLT stylesheet'/>
+ <arg name='inst' type='xmlNodePtr' info='the instruction in the stylesheet'/>
+ <arg name='function' type='xsltTransformFunction' info='unused'/>
</function>
<function name='xsltDocumentElem' file='transform'>
<info>Process an EXSLT/XSLT-1.1 document element</info>
<return type='void'/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT processing context '/>
- <arg name='node' type='xmlNodePtr' info='The current node '/>
- <arg name='inst' type='xmlNodePtr' info='the instruction in the stylesheet '/>
- <arg name='comp' type='xsltStylePreCompPtr' info='precomputed information '/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT processing context'/>
+ <arg name='node' type='xmlNodePtr' info='The current node'/>
+ <arg name='inst' type='xmlNodePtr' info='the instruction in the stylesheet'/>
+ <arg name='comp' type='xsltStylePreCompPtr' info='precomputed information'/>
</function>
<function name='xsltDocumentFunction' file='functions'>
<info>Implement the document() XSLT function node-set document(object, node-set?)</info>
<return type='void'/>
- <arg name='ctxt' type='xmlXPathParserContextPtr' info='the XPath Parser context '/>
- <arg name='nargs' type='int' info='the number of arguments '/>
+ <arg name='ctxt' type='xmlXPathParserContextPtr' info='the XPath Parser context'/>
+ <arg name='nargs' type='int' info='the number of arguments'/>
</function>
- <typedef name='xsltDocumentPtr' file='xsltInternals'/>
<function name='xsltDocumentSortFunction' file='xsltutils'>
- <info>reorder the current node list list accordingly to the document order</info>
+ <info>reorder the current node list @list accordingly to the document order</info>
<return type='void'/>
- <arg name='list' type='xmlNodeSetPtr' info='the node set '/>
+ <arg name='list' type='xmlNodeSetPtr' info='the node set'/>
</function>
<functype name='xsltDropCallCallback' file='xsltutils'>
- <return type='void'/>
+ <info></info>
+ <return type='void(*xsltDropCallCallback)' info=''/>
</functype>
- <struct name='xsltElemPreComp' file='xsltInternals'/>
<functype name='xsltElemPreCompDeallocator' file='xsltInternals'>
- <info>Deallocates an xsltElemPreComp structure.</info>
- <return type='void'/>
- <arg name='comp' type='xsltElemPreCompPtr' info='the xsltElemPreComp to free up '/>
+ <info>Deallocates an #xsltElemPreComp structure.</info>
+ <return type='void(*xsltElemPreCompDeallocator)' info=''/>
+ <arg name='comp' type='xsltElemPreCompPtr' info='the #xsltElemPreComp to free up'/>
</functype>
- <typedef name='xsltElemPreCompPtr' file='xsltInternals'/>
<function name='xsltElement' file='transform'>
<info>Process the xslt element node on the source node</info>
<return type='void'/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='a XSLT process context '/>
- <arg name='node' type='xmlNodePtr' info='the node in the source tree. '/>
- <arg name='inst' type='xmlNodePtr' info='the xslt element node '/>
- <arg name='comp' type='xsltStylePreCompPtr' info='precomputed information '/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='a XSLT process context'/>
+ <arg name='node' type='xmlNodePtr' info='the node in the source tree.'/>
+ <arg name='inst' type='xmlNodePtr' info='the xslt element node'/>
+ <arg name='comp' type='xsltStylePreCompPtr' info='precomputed information'/>
</function>
<function name='xsltElementAvailableFunction' file='functions'>
<info>Implement the element-available() XSLT function boolean element-available(string)</info>
<return type='void'/>
- <arg name='ctxt' type='xmlXPathParserContextPtr' info='the XPath Parser context '/>
- <arg name='nargs' type='int' info='the number of arguments '/>
+ <arg name='ctxt' type='xmlXPathParserContextPtr' info='the XPath Parser context'/>
+ <arg name='nargs' type='int' info='the number of arguments'/>
</function>
<function name='xsltEvalAttrValueTemplate' file='templates'>
<info>Evaluate a attribute value template, i.e. the attribute value can contain expressions contained in curly braces ({}) and those are substituted by they computed value.</info>
- <return type='xmlChar *' info='the computed string value or NULL, must be deallocated by the caller. '/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='the XSLT transformation context '/>
- <arg name='node' type='xmlNodePtr' info='the stylesheet node '/>
- <arg name='name' type='const xmlChar *' info='the attribute QName '/>
- <arg name='ns' type='const xmlChar *' info='the attribute namespace URI '/>
+ <return type='xmlChar *' info='the computed string value or NULL, must be deallocated by the caller.'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='the XSLT transformation context'/>
+ <arg name='node' type='xmlNodePtr' info='the stylesheet node'/>
+ <arg name='name' type='const xmlChar *' info='the attribute QName'/>
+ <arg name='ns' type='const xmlChar *' info='the attribute namespace URI'/>
</function>
<function name='xsltEvalGlobalVariables' file='variables'>
<info>Evaluate the global variables of a stylesheet. This need to be done on parsed stylesheets before starting to apply transformations</info>
- <return type='int' info='0 in case of success, -1 in case of error '/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='the XSLT transformation context '/>
+ <return type='int' info='0 in case of success, -1 in case of error'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='the XSLT transformation context'/>
</function>
<function name='xsltEvalOneUserParam' file='variables'>
- <info>ctxt: the XSLT transformation context name: a null terminated string giving the name of the parameter value a null terminated string giving the XPath expression to be evaluated This is normally called from xsltEvalUserParams to process a single parameter from a list of parameters. The value is evaluated as an XPath expression and the result is stored in the context's global variable/parameter hash table. To have a parameter treated literally (not as an XPath expression) use xsltQuoteUserParams (or xsltQuoteOneUserParam). For more details see description of xsltProcessOneUserParamInternal.</info>
- <return type='int' info='0 in case of success, -1 in case of error. '/>
- <arg name='ctxt' type='xsltTransformContextPtr'/>
- <arg name='name' type='const xmlChar *'/>
- <arg name='value' type='const xmlChar *'/>
+ <info>This is normally called from xsltEvalUserParams to process a single parameter from a list of parameters. The @value is evaluated as an XPath expression and the result is stored in the context's global variable/parameter hash table. To have a parameter treated literally (not as an XPath expression) use xsltQuoteUserParams (or xsltQuoteOneUserParam). For more details see description of xsltProcessOneUserParamInternal.</info>
+ <return type='int' info='0 in case of success, -1 in case of error.'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='the XSLT transformation context'/>
+ <arg name='name' type='const xmlChar *' info='a null terminated string giving the name of the parameter'/>
+ <arg name='value' type='const xmlChar *' info='a null terminated string giving the XPath expression to be evaluated'/>
</function>
<function name='xsltEvalStaticAttrValueTemplate' file='templates'>
<info>Check if an attribute value template has a static value, i.e. the attribute value does not contain expressions contained in curly braces ({})</info>
- <return type='xmlChar *' info='the static string value or NULL, must be deallocated by the caller. '/>
- <arg name='style' type='xsltStylesheetPtr' info='the XSLT stylesheet '/>
- <arg name='node' type='xmlNodePtr' info='the stylesheet node '/>
- <arg name='name' type='const xmlChar *' info='the attribute Name '/>
- <arg name='ns' type='const xmlChar *' info='the attribute namespace URI '/>
- <arg name='found' type='int *' info='indicator whether the attribute is present '/>
+ <return type='xmlChar *' info='the static string value or NULL, must be deallocated by the caller.'/>
+ <arg name='style' type='xsltStylesheetPtr' info='the XSLT stylesheet'/>
+ <arg name='node' type='xmlNodePtr' info='the stylesheet node'/>
+ <arg name='name' type='const xmlChar *' info='the attribute Name'/>
+ <arg name='ns' type='const xmlChar *' info='the attribute namespace URI'/>
+ <arg name='found' type='int *' info='indicator whether the attribute is present'/>
</function>
<function name='xsltEvalTemplateString' file='templates'>
<info>Evaluate a template string value, i.e. the parent list is interpreter as template content and the resulting tree string value is returned This is needed for example by xsl:comment and xsl:processing-instruction</info>
- <return type='xmlChar *' info='the computed string value or NULL, must be deallocated by the caller. '/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='the XSLT transformation context '/>
- <arg name='node' type='xmlNodePtr' info='the stylesheet node '/>
- <arg name='parent' type='xmlNodePtr' info='the content parent '/>
+ <return type='xmlChar *' info='the computed string value or NULL, must be deallocated by the caller.'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='the XSLT transformation context'/>
+ <arg name='node' type='xmlNodePtr' info='the stylesheet node'/>
+ <arg name='parent' type='xmlNodePtr' info='the content parent'/>
</function>
<function name='xsltEvalUserParams' file='variables'>
- <info>ctxt: the XSLT transformation context params: a NULL terminated array of parameters name/value tuples Evaluate the global variables of a stylesheet. This needs to be done on parsed stylesheets before starting to apply transformations. Each of the parameters is evaluated as an XPath expression and stored in the global variables/parameter hash table. If you want your parameter used literally, use xsltQuoteUserParams.</info>
- <return type='int' info='0 in case of success, -1 in case of error '/>
- <arg name='ctxt' type='xsltTransformContextPtr'/>
- <arg name='params' type='const char **'/>
+ <info>Evaluate the global variables of a stylesheet. This needs to be done on parsed stylesheets before starting to apply transformations. Each of the parameters is evaluated as an XPath expression and stored in the global variables/parameter hash table. If you want your parameter used literally, use xsltQuoteUserParams.</info>
+ <return type='int' info='0 in case of success, -1 in case of error'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='the XSLT transformation context'/>
+ <arg name='params' type='const char **' info='a NULL terminated array of parameters name/value tuples'/>
</function>
<function name='xsltEvalXPathPredicate' file='templates'>
<info>Process the expression using XPath and evaluate the result as an XPath predicate</info>
- <return type='int' info='1 is the predicate was true, 0 otherwise '/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='the XSLT transformation context '/>
- <arg name='comp' type='xmlXPathCompExprPtr' info='the XPath compiled expression '/>
- <arg name='nsList' type='xmlNsPtr *' info='the namespaces in scope '/>
- <arg name='nsNr' type='int' info='the number of namespaces in scope '/>
+ <return type='int' info='1 is the predicate was true, 0 otherwise'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='the XSLT transformation context'/>
+ <arg name='comp' type='xmlXPathCompExprPtr' info='the XPath compiled expression'/>
+ <arg name='nsList' type='xmlNsPtr *' info='the namespaces in scope'/>
+ <arg name='nsNr' type='int' info='the number of namespaces in scope'/>
</function>
<function name='xsltEvalXPathString' file='templates'>
<info>Process the expression using XPath and get a string</info>
- <return type='xmlChar *' info='the computed string value or NULL, must be deallocated by the caller. '/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='the XSLT transformation context '/>
- <arg name='comp' type='xmlXPathCompExprPtr' info='the compiled XPath expression '/>
+ <return type='xmlChar *' info='the computed string value or NULL, must be deallocated by the caller.'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='the XSLT transformation context'/>
+ <arg name='comp' type='xmlXPathCompExprPtr' info='the compiled XPath expression'/>
</function>
<function name='xsltEvalXPathStringNs' file='templates'>
<info>Process the expression using XPath, allowing to pass a namespace mapping context and get a string</info>
- <return type='xmlChar *' info='the computed string value or NULL, must be deallocated by the caller. '/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='the XSLT transformation context '/>
- <arg name='comp' type='xmlXPathCompExprPtr' info='the compiled XPath expression '/>
- <arg name='nsNr' type='int' info='the number of namespaces in the list '/>
- <arg name='nsList' type='xmlNsPtr *' info='the list of in-scope namespaces to use '/>
- </function>
- <function name='xsltExtElementLookup' file='transform'>
- <info>Looks up an extension element. ctxt can be NULL to search only in module elements.</info>
- <return type='xsltTransformFunction'/>
- <arg name='ctxt' type='xsltTransformContextPtr'/>
- <arg name='name' type='const xmlChar *'/>
- <arg name='URI' type='const xmlChar *'/>
+ <return type='xmlChar *' info='the computed string value or NULL, must be deallocated by the caller.'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='the XSLT transformation context'/>
+ <arg name='comp' type='xmlXPathCompExprPtr' info='the compiled XPath expression'/>
+ <arg name='nsNr' type='int' info='the number of namespaces in the list'/>
+ <arg name='nsList' type='xmlNsPtr *' info='the list of in-scope namespaces to use'/>
+ </function>
+ <function name='xsltExtElementLookup' file='extensions'>
+ <info>Looks up an extension element. @ctxt can be NULL to search only in module elements.</info>
+ <return type='xsltTransformFunction' info='the element callback or NULL if not found'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT process context'/>
+ <arg name='name' type='const xmlChar *' info='the element name'/>
+ <arg name='URI' type='const xmlChar *' info='the element namespace URI'/>
</function>
<function name='xsltExtFunctionLookup' file='extensions'>
- <return type='xmlXPathFunction'/>
- <arg name='ctxt' type='xsltTransformContextPtr'/>
- <arg name='name' type='const xmlChar *'/>
- <arg name='URI' type='const xmlChar *'/>
+ <info></info>
+ <return type='xmlXPathFunction' info=''/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info=''/>
+ <arg name='name' type='const xmlChar *' info=''/>
+ <arg name='URI' type='const xmlChar *' info=''/>
</function>
<functype name='xsltExtInitFunction' file='extensions'>
<info>A function called at initialization time of an XSLT extension module.</info>
- <return type='void *'/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT transformation context '/>
- <arg name='URI' type='const xmlChar *' info='the namespace URI for the extension '/>
+ <return type='void *(*xsltExtInitFunction)' info='a pointer to the module specific data for this transformation.'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT transformation context'/>
+ <arg name='URI' type='const xmlChar *' info='the namespace URI for the extension'/>
</functype>
<function name='xsltExtModuleElementLookup' file='extensions'>
<info>Looks up an extension module element</info>
- <return type='xsltTransformFunction' info='the callback function if found, NULL otherwise. '/>
- <arg name='name' type='const xmlChar *' info='the element name '/>
- <arg name='URI' type='const xmlChar *' info='the element namespace URI '/>
+ <return type='xsltTransformFunction' info='the callback function if found, NULL otherwise.'/>
+ <arg name='name' type='const xmlChar *' info='the element name'/>
+ <arg name='URI' type='const xmlChar *' info='the element namespace URI'/>
</function>
<function name='xsltExtModuleElementPreComputeLookup' file='extensions'>
<info>Looks up an extension module element pre-computation function</info>
- <return type='xsltPreComputeFunction' info='the callback function if found, NULL otherwise. '/>
- <arg name='name' type='const xmlChar *' info='the element name '/>
- <arg name='URI' type='const xmlChar *' info='the element namespace URI '/>
+ <return type='xsltPreComputeFunction' info='the callback function if found, NULL otherwise.'/>
+ <arg name='name' type='const xmlChar *' info='the element name'/>
+ <arg name='URI' type='const xmlChar *' info='the element namespace URI'/>
</function>
<function name='xsltExtModuleFunctionLookup' file='extensions'>
<info>Looks up an extension module function</info>
- <return type='xmlXPathFunction' info='the function if found, NULL otherwise. '/>
- <arg name='name' type='const xmlChar *' info='the function name '/>
- <arg name='URI' type='const xmlChar *' info='the function namespace URI '/>
+ <return type='xmlXPathFunction' info='the function if found, NULL otherwise.'/>
+ <arg name='name' type='const xmlChar *' info='the function name'/>
+ <arg name='URI' type='const xmlChar *' info='the function namespace URI'/>
</function>
<function name='xsltExtModuleTopLevelLookup' file='extensions'>
<info>Looks up an extension module top-level element</info>
- <return type='xsltTopLevelFunction' info='the callback function if found, NULL otherwise. '/>
- <arg name='name' type='const xmlChar *' info='the top-level element name '/>
- <arg name='URI' type='const xmlChar *' info='the top-level element namespace URI '/>
+ <return type='xsltTopLevelFunction' info='the callback function if found, NULL otherwise.'/>
+ <arg name='name' type='const xmlChar *' info='the top-level element name'/>
+ <arg name='URI' type='const xmlChar *' info='the top-level element namespace URI'/>
</function>
<functype name='xsltExtShutdownFunction' file='extensions'>
<info>A function called at shutdown time of an XSLT extension module.</info>
- <return type='void'/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT transformation context '/>
- <arg name='URI' type='const xmlChar *' info='the namespace URI for the extension '/>
- <arg name='data' type='void *' info='the data associated to this module '/>
+ <return type='void(*xsltExtShutdownFunction)' info=''/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT transformation context'/>
+ <arg name='URI' type='const xmlChar *' info='the namespace URI for the extension'/>
+ <arg name='data' type='void *' info='the data associated to this module'/>
</functype>
<function name='xsltFindDocument' file='documents'>
<info>Try to find a document within the XSLT transformation context</info>
- <return type='xsltDocumentPtr' info='the desired xsltDocumentPtr or NULL in case of error '/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT transformation context '/>
- <arg name='doc' type='xmlDocPtr'/>
+ <return type='xsltDocumentPtr' info='the desired xsltDocumentPtr or NULL in case of error'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT transformation context'/>
+ <arg name='doc' type='xmlDocPtr' info='a parsed XML document'/>
</function>
<function name='xsltFindElemSpaceHandling' file='imports'>
<info>Find strip-space or preserve-space informations for an element respect the import precedence or the wildcards</info>
- <return type='int' info='1 if space should be stripped, 0 if not, and 2 if everything should be CDTATA wrapped. '/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT transformation context '/>
- <arg name='node' type='xmlNodePtr' info='an XML node '/>
+ <return type='int' info='1 if space should be stripped, 0 if not, and 2 if everything should be CDTATA wrapped.'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT transformation context'/>
+ <arg name='node' type='xmlNodePtr' info='an XML node'/>
</function>
<function name='xsltFindTemplate' file='imports'>
<info>Finds the named template, apply import precedence rule.</info>
- <return type='xsltTemplatePtr' info='the xsltTemplatePtr or NULL if not found '/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT transformation context '/>
- <arg name='name' type='const xmlChar *' info='the template name '/>
- <arg name='nameURI' type='const xmlChar *' info='the template name URI '/>
+ <return type='xsltTemplatePtr' info='the xsltTemplatePtr or NULL if not found'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT transformation context'/>
+ <arg name='name' type='const xmlChar *' info='the template name'/>
+ <arg name='nameURI' type='const xmlChar *' info='the template name URI'/>
</function>
<function name='xsltForEach' file='transform'>
<info>Process the xslt for-each node on the source node</info>
<return type='void'/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='a XSLT process context '/>
- <arg name='node' type='xmlNodePtr' info='the node in the source tree. '/>
- <arg name='inst' type='xmlNodePtr' info='the xslt for-each node '/>
- <arg name='comp' type='xsltStylePreCompPtr' info='precomputed information '/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='a XSLT process context'/>
+ <arg name='node' type='xmlNodePtr' info='the node in the source tree.'/>
+ <arg name='inst' type='xmlNodePtr' info='the xslt for-each node'/>
+ <arg name='comp' type='xsltStylePreCompPtr' info='precomputed information'/>
</function>
<function name='xsltFormatNumberConversion' file='xsltInternals'>
- <info>format-number() uses the JDK 1.1 DecimalFormat class: http://java.sun.com/products/jdk/1.1/docs/api/java.text.DecimalFormat.html Structure: pattern := subpattern{;subpattern} subpattern := {prefix}integer{.fraction}{suffix} prefix := '\\u0000'..'\\uFFFD' - specialCharacters suffix := '\\u0000'..'\\uFFFD' - specialCharacters integer := '#'* '0'* '0' fraction := '0'* '#'* Notation: X* 0 or more instances of X (X | Y) either X or Y. X..Y any character from X up to Y, inclusive. S - T characters in S, except those in T Special Characters: Symbol Meaning 0 a digit # a digit, zero shows as absent . placeholder for decimal separator , placeholder for grouping separator. ; separates formats. - default negative prefix. % multiply by 100 and show as percentage ? multiply by 1000 and show as per mille X any other characters can be used in the prefix or suffix ' used to quote special characters in a prefix or suffix.</info>
- <return type='xmlXPathError'/>
- <arg name='self' type='xsltDecimalFormatPtr' info='the decimal format '/>
- <arg name='format' type='xmlChar *' info='the format requested '/>
- <arg name='number' type='double' info='the value to format '/>
- <arg name='result' type='xmlChar **' info='the place to ouput the result '/>
+ <info>format-number() uses the JDK 1.1 DecimalFormat class: http://java.sun.com/products/jdk/1.1/docs/api/java.text.DecimalFormat.html Structure: pattern := subpattern{;subpattern} subpattern := {prefix}integer{.fraction}{suffix} prefix := '\\u0000'..'\\uFFFD' - specialCharacters suffix := '\\u0000'..'\\uFFFD' - specialCharacters integer := '#'* '0'* '0' fraction := '0'* '#'* Notation: X* 0 or more instances of X (X | Y) either X or Y. X..Y any character from X up to Y, inclusive. S - T characters in S, except those in T Special Characters: Symbol Meaning 0 a digit # a digit, zero shows as absent . placeholder for decimal separator , placeholder for grouping separator. ; separates formats. - default negative prefix. % multiply by 100 and show as percentage ? multiply by 1000 and show as per mille X any other characters can be used in the prefix or suffix ' used to quote special characters in a prefix or suffix.</info>
+ <return type='xmlXPathError' info='a possible XPath error'/>
+ <arg name='self' type='xsltDecimalFormatPtr' info='the decimal format'/>
+ <arg name='format' type='xmlChar *' info='the format requested'/>
+ <arg name='number' type='double' info='the value to format'/>
+ <arg name='result' type='xmlChar **' info='the place to ouput the result'/>
</function>
<function name='xsltFormatNumberFunction' file='functions'>
<info>Implement the format-number() XSLT function string format-number(number, string, string?)</info>
<return type='void'/>
- <arg name='ctxt' type='xmlXPathParserContextPtr' info='the XPath Parser context '/>
- <arg name='nargs' type='int' info='the number of arguments '/>
+ <arg name='ctxt' type='xmlXPathParserContextPtr' info='the XPath Parser context'/>
+ <arg name='nargs' type='int' info='the number of arguments'/>
</function>
<function name='xsltFreeAttributeSetsHashes' file='attributes'>
<info>Free up the memory used by attribute sets</info>
<return type='void'/>
- <arg name='style' type='xsltStylesheetPtr' info='an XSLT stylesheet '/>
+ <arg name='style' type='xsltStylesheetPtr' info='an XSLT stylesheet'/>
</function>
<function name='xsltFreeCompMatchList' file='pattern'>
- <info>Free up the memory allocated by all the elements of comp</info>
+ <info>Free up the memory allocated by all the elements of @comp</info>
<return type='void'/>
- <arg name='comp' type='xsltCompMatchPtr' info='an XSLT comp list '/>
+ <arg name='comp' type='xsltCompMatchPtr' info='an XSLT comp list'/>
</function>
<function name='xsltFreeCtxtExts' file='extensions'>
<info>Free the XSLT extension data</info>
<return type='void'/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT transformation context '/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT transformation context'/>
</function>
<function name='xsltFreeDocumentKeys' file='keys'>
<info>Free the keys associated to a document</info>
<return type='void'/>
- <arg name='doc' type='xsltDocumentPtr' info='a XSLT document '/>
+ <arg name='doc' type='xsltDocumentPtr' info='a XSLT document'/>
</function>
<function name='xsltFreeDocuments' file='documents'>
<info>Free up all the space used by the loaded documents</info>
<return type='void'/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT transformation context '/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT transformation context'/>
</function>
<function name='xsltFreeExts' file='extensions'>
<info>Free up the memory used by XSLT extensions in a stylesheet</info>
<return type='void'/>
- <arg name='style' type='xsltStylesheetPtr' info='an XSLT stylesheet '/>
+ <arg name='style' type='xsltStylesheetPtr' info='an XSLT stylesheet'/>
</function>
<function name='xsltFreeGlobalVariables' file='variables'>
<info>Free up the data associated to the global variables its value.</info>
<return type='void'/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='the XSLT transformation context '/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='the XSLT transformation context'/>
</function>
<function name='xsltFreeKeys' file='keys'>
<info>Free up the memory used by XSLT keys in a stylesheet</info>
<return type='void'/>
- <arg name='style' type='xsltStylesheetPtr' info='an XSLT stylesheet '/>
+ <arg name='style' type='xsltStylesheetPtr' info='an XSLT stylesheet'/>
</function>
<function name='xsltFreeNamespaceAliasHashes' file='namespaces'>
<info>Free up the memory used by namespaces aliases</info>
<return type='void'/>
- <arg name='style' type='xsltStylesheetPtr' info='an XSLT stylesheet '/>
+ <arg name='style' type='xsltStylesheetPtr' info='an XSLT stylesheet'/>
</function>
<function name='xsltFreeSecurityPrefs' file='security'>
<info>Free up a security preference block</info>
<return type='void'/>
- <arg name='sec' type='xsltSecurityPrefsPtr' info='the security block to free '/>
+ <arg name='sec' type='xsltSecurityPrefsPtr' info='the security block to free'/>
</function>
<function name='xsltFreeStackElemList' file='xsltInternals'>
- <info>Free up the memory allocated by elem</info>
+ <info>Free up the memory allocated by @elem</info>
<return type='void'/>
- <arg name='elem' type='xsltStackElemPtr' info='an XSLT stack element '/>
+ <arg name='elem' type='xsltStackElemPtr' info='an XSLT stack element'/>
</function>
<function name='xsltFreeStyleDocuments' file='documents'>
<info>Free up all the space used by the loaded documents</info>
<return type='void'/>
- <arg name='style' type='xsltStylesheetPtr' info='an XSLT style sheet '/>
+ <arg name='style' type='xsltStylesheetPtr' info='an XSLT style sheet'/>
</function>
<function name='xsltFreeStylePreComps' file='preproc'>
<info>Free up the memory allocated by all precomputed blocks</info>
<return type='void'/>
- <arg name='style' type='xsltStylesheetPtr' info='an XSLT transformation context '/>
+ <arg name='style' type='xsltStylesheetPtr' info='an XSLT transformation context'/>
</function>
<function name='xsltFreeStylesheet' file='xsltInternals'>
- <info>Free up the memory allocated by sheet</info>
+ <info>Free up the memory allocated by @sheet</info>
<return type='void'/>
- <arg name='sheet' type='xsltStylesheetPtr' info='an XSLT stylesheet '/>
+ <arg name='sheet' type='xsltStylesheetPtr' info='an XSLT stylesheet'/>
</function>
<function name='xsltFreeTemplateHashes' file='pattern'>
<info>Free up the memory used by xsltAddTemplate/xsltGetTemplate mechanism</info>
<return type='void'/>
- <arg name='style' type='xsltStylesheetPtr' info='an XSLT stylesheet '/>
+ <arg name='style' type='xsltStylesheetPtr' info='an XSLT stylesheet'/>
</function>
<function name='xsltFreeTransformContext' file='transform'>
- <info>Free up the memory allocated by ctxt</info>
+ <info>Free up the memory allocated by @ctxt</info>
<return type='void'/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT parser context '/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT parser context'/>
</function>
<function name='xsltFunctionAvailableFunction' file='functions'>
<info>Implement the function-available() XSLT function boolean function-available(string)</info>
<return type='void'/>
- <arg name='ctxt' type='xmlXPathParserContextPtr' info='the XPath Parser context '/>
- <arg name='nargs' type='int' info='the number of arguments '/>
+ <arg name='ctxt' type='xmlXPathParserContextPtr' info='the XPath Parser context'/>
+ <arg name='nargs' type='int' info='the number of arguments'/>
</function>
<function name='xsltFunctionNodeSet' file='extra'>
- <info>Implement the node-set() XSLT function node-set node-set(result-tree) This function is available in libxslt, saxon or xt namespace.</info>
+ <info>Implement the node-set() XSLT function node-set node-set(result-tree) This function is available in libxslt, saxon or xt namespace.</info>
<return type='void'/>
- <arg name='ctxt' type='xmlXPathParserContextPtr' info='the XPath Parser context '/>
- <arg name='nargs' type='int' info='the number of arguments '/>
+ <arg name='ctxt' type='xmlXPathParserContextPtr' info='the XPath Parser context'/>
+ <arg name='nargs' type='int' info='the number of arguments'/>
</function>
<function name='xsltGenerateIdFunction' file='functions'>
<info>Implement the generate-id() XSLT function string generate-id(node-set?)</info>
<return type='void'/>
- <arg name='ctxt' type='xmlXPathParserContextPtr' info='the XPath Parser context '/>
- <arg name='nargs' type='int' info='the number of arguments '/>
+ <arg name='ctxt' type='xmlXPathParserContextPtr' info='the XPath Parser context'/>
+ <arg name='nargs' type='int' info='the number of arguments'/>
</function>
<function name='xsltGetDefaultSecurityPrefs' file='security'>
- <return type='xsltSecurityPrefsPtr'/>
+ <info>Get the default security preference application-wide</info>
+ <return type='xsltSecurityPrefsPtr' info='the current xsltSecurityPrefsPtr in use or NULL if none'/>
</function>
<function name='xsltGetExtData' file='extensions'>
<info>Retrieve the data associated to the extension module in this given transformation.</info>
- <return type='void *'/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT transformation context '/>
- <arg name='URI' type='const xmlChar *' info='the URI associated to the exension module '/>
+ <return type='void *' info='the pointer or NULL if not present'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT transformation context'/>
+ <arg name='URI' type='const xmlChar *' info='the URI associated to the exension module'/>
</function>
<function name='xsltGetKey' file='keys'>
<info>Lookup a key</info>
- <return type='xmlNodeSetPtr' info='the nodeset resulting from the query or NULL '/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT transformation context '/>
- <arg name='name' type='const xmlChar *' info='the key name or NULL '/>
- <arg name='nameURI' type='const xmlChar *' info='the name URI or NULL '/>
- <arg name='value' type='const xmlChar *' info='the key value to look for '/>
+ <return type='xmlNodeSetPtr' info='the nodeset resulting from the query or NULL'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT transformation context'/>
+ <arg name='name' type='const xmlChar *' info='the key name or NULL'/>
+ <arg name='nameURI' type='const xmlChar *' info='the name URI or NULL'/>
+ <arg name='value' type='const xmlChar *' info='the key value to look for'/>
</function>
<function name='xsltGetNamespace' file='namespaces'>
<info>Find the right namespace value for this prefix, if needed create and add a new namespace decalaration on the node Handle namespace aliases</info>
- <return type='xmlNsPtr' info='the namespace node to use or NULL '/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='a transformation context '/>
- <arg name='cur' type='xmlNodePtr' info='the input node '/>
- <arg name='ns' type='xmlNsPtr' info='the namespace '/>
- <arg name='out' type='xmlNodePtr' info='the output node (or its parent) '/>
+ <return type='xmlNsPtr' info='the namespace node to use or NULL'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='a transformation context'/>
+ <arg name='cur' type='xmlNodePtr' info='the input node'/>
+ <arg name='ns' type='xmlNsPtr' info='the namespace'/>
+ <arg name='out' type='xmlNodePtr' info='the output node (or its parent)'/>
</function>
<function name='xsltGetNsProp' file='xsltutils'>
- <info>Similar to xmlGetNsProp() but with a slightly different semantic Search and get the value of an attribute associated to a node This attribute has to be anchored in the namespace specified, or has no namespace and the element is in that namespace. This does the entity substitution. This function looks in DTD attribute declaration for FIXED or default declaration values unless DTD use has been turned off.</info>
- <return type='xmlChar *' info='the attribute value or NULL if not found. It's up to the caller to free the memory. '/>
- <arg name='node' type='xmlNodePtr' info='the node '/>
- <arg name='name' type='const xmlChar *' info='the attribute name '/>
- <arg name='nameSpace' type='const xmlChar *' info='the URI of the namespace '/>
+ <info>Similar to xmlGetNsProp() but with a slightly different semantic Search and get the value of an attribute associated to a node This attribute has to be anchored in the namespace specified, or has no namespace and the element is in that namespace. This does the entity substitution. This function looks in DTD attribute declaration for #FIXED or default declaration values unless DTD use has been turned off.</info>
+ <return type='xmlChar *' info='the attribute value or NULL if not found. It's up to the caller to free the memory.'/>
+ <arg name='node' type='xmlNodePtr' info='the node'/>
+ <arg name='name' type='const xmlChar *' info='the attribute name'/>
+ <arg name='nameSpace' type='const xmlChar *' info='the URI of the namespace'/>
</function>
<function name='xsltGetProfileInformation' file='xsltutils'>
<info>This function should be called after the transformation completed to extract template processing profiling informations if availble. The informations are returned as an XML document tree like <?xml version="1.0"?> <profile> <template rank="1" match="*" name="" mode="" calls="6" time="48" average="8"/> <template rank="2" match="item2|item3" name="" mode="" calls="10" time="30" average="3"/> <template rank="3" match="item1" name="" mode="" calls="5" time="17" average="3"/> </profile> The caller will need to free up the returned tree with xmlFreeDoc()</info>
- <return type='xmlDocPtr' info='the xmlDocPtr corresponding to the result or NULL if not available. '/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='a transformation context '/>
+ <return type='xmlDocPtr' info='the xmlDocPtr corresponding to the result or NULL if not available.'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='a transformation context'/>
</function>
<function name='xsltGetQNameURI' file='xsltutils'>
- <info>This function analyzes name, if the name contains a prefix, the function seaches the associated namespace in scope for it. It will also replace name value with the NCName, the old value being freed. Errors in the prefix lookup are signalled by setting name to NULL. NOTE: the namespace returned is a pointer to the place where it is defined and hence has the same lifespan as the document holding it.</info>
- <return type='const xmlChar *' info='the namespace URI if there is a prefix, or NULL if name is not prefixed. '/>
- <arg name='node' type='xmlNodePtr' info='the node holding the QName '/>
- <arg name='name' type='xmlChar **' info='pointer to the initial QName value '/>
+ <info>This function analyzes @name, if the name contains a prefix, the function seaches the associated namespace in scope for it. It will also replace @name value with the NCName, the old value being freed. Errors in the prefix lookup are signalled by setting @name to NULL. NOTE: the namespace returned is a pointer to the place where it is defined and hence has the same lifespan as the document holding it.</info>
+ <return type='const xmlChar *' info='the namespace URI if there is a prefix, or NULL if @name is not prefixed.'/>
+ <arg name='node' type='xmlNodePtr' info='the node holding the QName'/>
+ <arg name='name' type='xmlChar **' info='pointer to the initial QName value'/>
</function>
<function name='xsltGetSecurityPrefs' file='security'>
<info>Lookup the security option to get the callback checking function</info>
- <return type='xsltSecurityCheck' info='NULL if not found, the function otherwise '/>
- <arg name='sec' type='xsltSecurityPrefsPtr' info='the security block to update '/>
- <arg name='option' type='xsltSecurityOption' info='the option to lookup '/>
+ <return type='xsltSecurityCheck' info='NULL if not found, the function otherwise'/>
+ <arg name='sec' type='xsltSecurityPrefsPtr' info='the security block to update'/>
+ <arg name='option' type='xsltSecurityOption' info='the option to lookup'/>
</function>
<function name='xsltGetSpecialNamespace' file='namespaces'>
<info>Find the right namespace value for this URI, if needed create and add a new namespace decalaration on the node</info>
- <return type='xmlNsPtr' info='the namespace node to use or NULL '/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='a transformation context '/>
- <arg name='cur' type='xmlNodePtr' info='the input node '/>
- <arg name='URI' type='const xmlChar *' info='the namespace URI '/>
- <arg name='prefix' type='const xmlChar *' info='the suggested prefix '/>
- <arg name='out' type='xmlNodePtr' info='the output node (or its parent) '/>
+ <return type='xmlNsPtr' info='the namespace node to use or NULL'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='a transformation context'/>
+ <arg name='cur' type='xmlNodePtr' info='the input node'/>
+ <arg name='URI' type='const xmlChar *' info='the namespace URI'/>
+ <arg name='prefix' type='const xmlChar *' info='the suggested prefix'/>
+ <arg name='out' type='xmlNodePtr' info='the output node (or its parent)'/>
</function>
<function name='xsltGetTemplate' file='pattern'>
- <info>Finds the template applying to this node, if style is non-NULL it means one needs to look for the next imported template in scope.</info>
- <return type='xsltTemplatePtr' info='the xsltTemplatePtr or NULL if not found '/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='a XSLT process context '/>
- <arg name='node' type='xmlNodePtr' info='the node being processed '/>
- <arg name='style' type='xsltStylesheetPtr' info='the current style '/>
+ <info>Finds the template applying to this node, if @style is non-NULL it means one needs to look for the next imported template in scope.</info>
+ <return type='xsltTemplatePtr' info='the xsltTemplatePtr or NULL if not found'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='a XSLT process context'/>
+ <arg name='node' type='xmlNodePtr' info='the node being processed'/>
+ <arg name='style' type='xsltStylesheetPtr' info='the current style'/>
</function>
<function name='xsltGetUTF8Char' file='xsltutils'>
- <info>Read one UTF8 Char from utf Function copied from libxml2 xmlGetUTF8Char() ... to discard ultimately and use the original API</info>
- <return type='int' info='the char value or -1 in case of error and update len with the number of bytes used '/>
- <arg name='utf' type='const unsigned char *' info='a sequence of UTF-8 encoded bytes '/>
- <arg name='len' type='int *' info='a pointer to bytes len '/>
+ <info>Read one UTF8 Char from @utf Function copied from libxml2 xmlGetUTF8Char() ... to discard ultimately and use the original API</info>
+ <return type='int' info='the char value or -1 in case of error and update @len with the number of bytes used'/>
+ <arg name='utf' type='const unsigned char *' info='a sequence of UTF-8 encoded bytes'/>
+ <arg name='len' type='int *' info='a pointer to @bytes len'/>
</function>
<function name='xsltGetXIncludeDefault' file='transform'>
- <info>return the default state for XInclude processing</info>
- <return type='int' info='0 if there is no processing 1 otherwise '/>
+ <info>Provides the default state for XInclude processing</info>
+ <return type='int' info='0 if there is no processing 1 otherwise'/>
</function>
<functype name='xsltHandleDebuggerCallback' file='xsltutils'>
- <return type='void'/>
- <arg name='cur' type='xmlNodePtr'/>
- <arg name='node' type='xmlNodePtr'/>
- <arg name='templ' type='xsltTemplatePtr'/>
- <arg name='ctxt' type='xsltTransformContextPtr'/>
+ <info></info>
+ <return type='void(*xsltHandleDebuggerCallback)' info=''/>
+ <arg name='cur' type='xmlNodePtr' info=''/>
+ <arg name='node' type='xmlNodePtr' info=''/>
+ <arg name='templ' type='xsltTemplatePtr' info=''/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info=''/>
</functype>
<function name='xsltIf' file='transform'>
<info>Process the xslt if node on the source node</info>
<return type='void'/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='a XSLT process context '/>
- <arg name='node' type='xmlNodePtr' info='the node in the source tree. '/>
- <arg name='inst' type='xmlNodePtr' info='the xslt if node '/>
- <arg name='comp' type='xsltStylePreCompPtr' info='precomputed information '/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='a XSLT process context'/>
+ <arg name='node' type='xmlNodePtr' info='the node in the source tree.'/>
+ <arg name='inst' type='xmlNodePtr' info='the xslt if node'/>
+ <arg name='comp' type='xsltStylePreCompPtr' info='precomputed information'/>
</function>
<function name='xsltInitCtxtExts' file='extensions'>
<info>Initialize the set of modules with registered stylesheet data</info>
- <return type='int' info='the number of modules initialized or -1 in case of error '/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT transformation context '/>
+ <return type='int' info='the number of modules initialized or -1 in case of error'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT transformation context'/>
</function>
<function name='xsltInitCtxtKeys' file='keys'>
<info>Computes all the keys tables for the current input document. Should be done before global varibales are initialized.</info>
<return type='void'/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT transformation context '/>
- <arg name='doc' type='xsltDocumentPtr' info='an XSLT document '/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT transformation context'/>
+ <arg name='doc' type='xsltDocumentPtr' info='an XSLT document'/>
</function>
<function name='xsltInitElemPreComp' file='extensions'>
- <info>Initializes an existing xsltElemPreComp structure. This is usefull when extending an xsltElemPreComp to store precomputed data. This function MUST be called on any extension element precomputed data struct.</info>
+ <info>Initializes an existing #xsltElemPreComp structure. This is usefull when extending an #xsltElemPreComp to store precomputed data. This function MUST be called on any extension element precomputed data struct.</info>
<return type='void'/>
- <arg name='comp' type='xsltElemPreCompPtr' info='an xsltElemPreComp (or generally a derived structure) '/>
- <arg name='style' type='xsltStylesheetPtr' info='the XSLT stylesheet '/>
- <arg name='inst' type='xmlNodePtr' info='the element node '/>
- <arg name='function' type='xsltTransformFunction' info='the transform function '/>
- <arg name='freeFunc' type='xsltElemPreCompDeallocator' info='the comp deallocator '/>
+ <arg name='comp' type='xsltElemPreCompPtr' info='an #xsltElemPreComp (or generally a derived structure)'/>
+ <arg name='style' type='xsltStylesheetPtr' info='the XSLT stylesheet'/>
+ <arg name='inst' type='xmlNodePtr' info='the element node'/>
+ <arg name='function' type='xsltTransformFunction' info='the transform function'/>
+ <arg name='freeFunc' type='xsltElemPreCompDeallocator' info='the @comp deallocator'/>
</function>
<function name='xsltIsBlank' file='xsltInternals'>
<info>Check if a string is ignorable</info>
- <return type='int' info='1 if the string is NULL or made of blanks chars, 0 otherwise '/>
- <arg name='str' type='xmlChar *' info='a string '/>
+ <return type='int' info='1 if the string is NULL or made of blanks chars, 0 otherwise'/>
+ <arg name='str' type='xmlChar *' info='a string'/>
</function>
<function name='xsltKeyFunction' file='functions'>
<info>Implement the key() XSLT function node-set key(string, object)</info>
<return type='void'/>
- <arg name='ctxt' type='xmlXPathParserContextPtr' info='the XPath Parser context '/>
- <arg name='nargs' type='int' info='the number of arguments '/>
+ <arg name='ctxt' type='xmlXPathParserContextPtr' info='the XPath Parser context'/>
+ <arg name='nargs' type='int' info='the number of arguments'/>
</function>
<function name='xsltLoadDocument' file='documents'>
<info>Try to load a document (not a stylesheet) within the XSLT transformation context</info>
- <return type='xsltDocumentPtr' info='the new xsltDocumentPtr or NULL in case of error '/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT transformation context '/>
- <arg name='URI' type='const xmlChar *' info='the computed URI of the document '/>
+ <return type='xsltDocumentPtr' info='the new xsltDocumentPtr or NULL in case of error'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT transformation context'/>
+ <arg name='URI' type='const xmlChar *' info='the computed URI of the document'/>
</function>
<function name='xsltLoadStyleDocument' file='documents'>
<info>Try to load a stylesheet document within the XSLT transformation context</info>
- <return type='xsltDocumentPtr' info='the new xsltDocumentPtr or NULL in case of error '/>
- <arg name='style' type='xsltStylesheetPtr' info='an XSLT style sheet '/>
- <arg name='URI' type='const xmlChar *' info='the computed URI of the document '/>
+ <return type='xsltDocumentPtr' info='the new xsltDocumentPtr or NULL in case of error'/>
+ <arg name='style' type='xsltStylesheetPtr' info='an XSLT style sheet'/>
+ <arg name='URI' type='const xmlChar *' info='the computed URI of the document'/>
</function>
<function name='xsltLoadStylesheetPI' file='xsltInternals'>
- <info>This function tries to locate the stylesheet PI in the given document If found, and if contained within the document, it will extract that subtree to build the stylesheet to process doc (doc itself will be modified). If found but referencing an external document it will attempt to load it and generate a stylesheet from it. In both cases, the resulting stylesheet and the document need to be freed once the transformation is done.</info>
- <return type='xsltStylesheetPtr' info='a new XSLT stylesheet structure or NULL if not found. '/>
- <arg name='doc' type='xmlDocPtr' info='a document to process '/>
+ <info>This function tries to locate the stylesheet PI in the given document If found, and if contained within the document, it will extract that subtree to build the stylesheet to process @doc (doc itself will be modified). If found but referencing an external document it will attempt to load it and generate a stylesheet from it. In both cases, the resulting stylesheet and the document need to be freed once the transformation is done.</info>
+ <return type='xsltStylesheetPtr' info='a new XSLT stylesheet structure or NULL if not found.'/>
+ <arg name='doc' type='xmlDocPtr' info='a document to process'/>
</function>
<function name='xsltMatchPattern' file='pattern'>
- <info>Determine if a node matches a pattern.</info>
- <return type='int'/>
- <arg name='ctxt' type='xsltTransformContextPtr'/>
- <arg name='node' type='xmlNodePtr' info='a node in the source tree '/>
- <arg name='pattern' type='const xmlChar *' info='an XSLT pattern '/>
- <arg name='ctxtdoc' type='xmlDocPtr' info='context document (for namespaces) '/>
- <arg name='ctxtnode' type='xmlNodePtr' info='context node (for namespaces) '/>
+ <info></info>
+ <return type='int' info=''/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info=''/>
+ <arg name='node' type='xmlNodePtr' info=''/>
+ <arg name='pattern' type='const xmlChar *' info=''/>
+ <arg name='ctxtdoc' type='xmlDocPtr' info=''/>
+ <arg name='ctxtnode' type='xmlNodePtr' info=''/>
</function>
<function name='xsltMessage' file='xsltutils'>
<info>Process and xsl:message construct</info>
<return type='void'/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT processing context '/>
- <arg name='node' type='xmlNodePtr' info='The current node '/>
- <arg name='inst' type='xmlNodePtr' info='The node containing the message instruction '/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT processing context'/>
+ <arg name='node' type='xmlNodePtr' info='The current node'/>
+ <arg name='inst' type='xmlNodePtr' info='The node containing the message instruction'/>
</function>
<function name='xsltNamespaceAlias' file='namespaces'>
<info>Read the stylesheet-prefix and result-prefix attributes, register them as well as the corresponding namespace.</info>
<return type='void'/>
- <arg name='style' type='xsltStylesheetPtr' info='the XSLT stylesheet '/>
- <arg name='node' type='xmlNodePtr' info='the xsl:namespace-alias node '/>
+ <arg name='style' type='xsltStylesheetPtr' info='the XSLT stylesheet'/>
+ <arg name='node' type='xmlNodePtr' info='the xsl:namespace-alias node'/>
</function>
<function name='xsltNeedElemSpaceHandling' file='imports'>
- <info>Returns whether that stylesheet requires white-space stripping</info>
- <return type='int' info='1 if space should be stripped, 0 if not '/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT transformation context '/>
+ <info>Checks whether that stylesheet requires white-space stripping</info>
+ <return type='int' info='1 if space should be stripped, 0 if not'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT transformation context'/>
</function>
<function name='xsltNewDocument' file='documents'>
<info>Register a new document, apply key computations</info>
- <return type='xsltDocumentPtr'/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT transformation context (or NULL) '/>
- <arg name='doc' type='xmlDocPtr' info='a parsed XML document '/>
+ <return type='xsltDocumentPtr' info='a handler to the document'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT transformation context (or NULL)'/>
+ <arg name='doc' type='xmlDocPtr' info='a parsed XML document'/>
</function>
<function name='xsltNewElemPreComp' file='extensions'>
- <info>Creates and initializes an xsltElemPreComp</info>
- <return type='xsltElemPreCompPtr' info='the new and initialized xsltElemPreComp'/>
- <arg name='style' type='xsltStylesheetPtr' info='the XSLT stylesheet '/>
- <arg name='inst' type='xmlNodePtr' info='the element node '/>
- <arg name='function' type='xsltTransformFunction' info='the transform function '/>
+ <info>Creates and initializes an #xsltElemPreComp</info>
+ <return type='xsltElemPreCompPtr' info='the new and initialized #xsltElemPreComp'/>
+ <arg name='style' type='xsltStylesheetPtr' info='the XSLT stylesheet'/>
+ <arg name='inst' type='xmlNodePtr' info='the element node'/>
+ <arg name='function' type='xsltTransformFunction' info='the transform function'/>
</function>
<function name='xsltNewSecurityPrefs' file='security'>
<info>Create a new security preference block</info>
- <return type='xsltSecurityPrefsPtr' info='a pointer to the new block or NULL in case of error '/>
+ <return type='xsltSecurityPrefsPtr' info='a pointer to the new block or NULL in case of error'/>
</function>
<function name='xsltNewStyleDocument' file='documents'>
<info>Register a new document, apply key computations</info>
- <return type='xsltDocumentPtr'/>
- <arg name='style' type='xsltStylesheetPtr' info='an XSLT style sheet '/>
- <arg name='doc' type='xmlDocPtr' info='a parsed XML document '/>
+ <return type='xsltDocumentPtr' info='a handler to the document'/>
+ <arg name='style' type='xsltStylesheetPtr' info='an XSLT style sheet'/>
+ <arg name='doc' type='xmlDocPtr' info='a parsed XML document'/>
</function>
<function name='xsltNewStylesheet' file='xsltInternals'>
<info>Create a new XSLT Stylesheet</info>
- <return type='xsltStylesheetPtr' info='the newly allocated xsltStylesheetPtr or NULL in case of error '/>
+ <return type='xsltStylesheetPtr' info='the newly allocated xsltStylesheetPtr or NULL in case of error'/>
</function>
<function name='xsltNewTransformContext' file='transform'>
<info>Create a new XSLT TransformContext</info>
- <return type='xsltTransformContextPtr' info='the newly allocated xsltTransformContextPtr or NULL in case of error '/>
- <arg name='style' type='xsltStylesheetPtr' info='a parsed XSLT stylesheet '/>
- <arg name='doc' type='xmlDocPtr' info='the input document '/>
+ <return type='xsltTransformContextPtr' info='the newly allocated xsltTransformContextPtr or NULL in case of error'/>
+ <arg name='style' type='xsltStylesheetPtr' info='a parsed XSLT stylesheet'/>
+ <arg name='doc' type='xmlDocPtr' info='the input document'/>
</function>
<function name='xsltNextImport' file='imports'>
<info>Find the next stylesheet in import precedence.</info>
- <return type='xsltStylesheetPtr' info='the next stylesheet or NULL if it was the last one '/>
- <arg name='style' type='xsltStylesheetPtr'/>
+ <return type='xsltStylesheetPtr' info='the next stylesheet or NULL if it was the last one'/>
+ <arg name='cur' type='xsltStylesheetPtr' info='the current XSLT stylesheet'/>
</function>
<function name='xsltNumber' file='transform'>
<info>Process the xslt number node on the source node</info>
<return type='void'/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='a XSLT process context '/>
- <arg name='node' type='xmlNodePtr' info='the node in the source tree. '/>
- <arg name='inst' type='xmlNodePtr' info='the xslt number node '/>
- <arg name='comp' type='xsltStylePreCompPtr' info='precomputed information '/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='a XSLT process context'/>
+ <arg name='node' type='xmlNodePtr' info='the node in the source tree.'/>
+ <arg name='inst' type='xmlNodePtr' info='the xslt number node'/>
+ <arg name='comp' type='xsltStylePreCompPtr' info='precomputed information'/>
</function>
<function name='xsltNumberFormat' file='xsltInternals'>
<info>Convert one number.</info>
<return type='void'/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='the XSLT transformation context '/>
- <arg name='data' type='xsltNumberDataPtr' info='the formatting informations '/>
- <arg name='node' type='xmlNodePtr' info='the data to format '/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='the XSLT transformation context'/>
+ <arg name='data' type='xsltNumberDataPtr' info='the formatting informations'/>
+ <arg name='node' type='xmlNodePtr' info='the data to format'/>
</function>
- <enum name='xsltOutputType' file='xsltInternals'/>
<function name='xsltParseGlobalParam' file='variables'>
<info>parse an XSLT transformation param declaration and record its value.</info>
<return type='void'/>
- <arg name='style' type='xsltStylesheetPtr' info='the XSLT stylesheet '/>
- <arg name='cur' type='xmlNodePtr' info='the "param" element '/>
+ <arg name='style' type='xsltStylesheetPtr' info='the XSLT stylesheet'/>
+ <arg name='cur' type='xmlNodePtr' info='the "param" element'/>
</function>
<function name='xsltParseGlobalVariable' file='variables'>
<info>parse an XSLT transformation variable declaration and record its value.</info>
<return type='void'/>
- <arg name='style' type='xsltStylesheetPtr' info='the XSLT stylesheet '/>
- <arg name='cur' type='xmlNodePtr' info='the "variable" element '/>
+ <arg name='style' type='xsltStylesheetPtr' info='the XSLT stylesheet'/>
+ <arg name='cur' type='xmlNodePtr' info='the "variable" element'/>
</function>
<function name='xsltParseStylesheetAttributeSet' file='attributes'>
- <info>parse an XSLT stylesheet preserve-space element and record elements needing preserving</info>
+ <info>parse an XSLT stylesheet attribute-set element</info>
<return type='void'/>
- <arg name='style' type='xsltStylesheetPtr' info='the XSLT stylesheet '/>
- <arg name='cur' type='xmlNodePtr'/>
+ <arg name='style' type='xsltStylesheetPtr' info='the XSLT stylesheet'/>
+ <arg name='cur' type='xmlNodePtr' info='the "attribute-set" element'/>
</function>
<function name='xsltParseStylesheetCallerParam' file='variables'>
- <info>parse an XSLT transformation param declaration, compute its value but doesn't record it. It returns the new xsltStackElemPtr or NULL</info>
- <return type='xsltStackElemPtr'/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='the XSLT transformation context '/>
- <arg name='cur' type='xmlNodePtr' info='the "param" element '/>
+ <info>parse an XSLT transformation param declaration, compute its value but doesn't record it.</info>
+ <return type='xsltStackElemPtr' info='the new xsltStackElemPtr or NULL'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='the XSLT transformation context'/>
+ <arg name='cur' type='xmlNodePtr' info='the "param" element'/>
</function>
<function name='xsltParseStylesheetDoc' file='xsltInternals'>
<info>parse an XSLT stylesheet building the associated structures</info>
- <return type='xsltStylesheetPtr' info='a new XSLT stylesheet structure. '/>
- <arg name='doc' type='xmlDocPtr' info='and xmlDoc parsed XML '/>
+ <return type='xsltStylesheetPtr' info='a new XSLT stylesheet structure.'/>
+ <arg name='doc' type='xmlDocPtr' info='and xmlDoc parsed XML'/>
</function>
<function name='xsltParseStylesheetFile' file='xsltInternals'>
<info>Load and parse an XSLT stylesheet</info>
- <return type='xsltStylesheetPtr' info='a new XSLT stylesheet structure. '/>
- <arg name='filename' type='const xmlChar*' info='the filename/URL to the stylesheet '/>
+ <return type='xsltStylesheetPtr' info='a new XSLT stylesheet structure.'/>
+ <arg name='filename' type='const xmlChar *' info='the filename/URL to the stylesheet'/>
</function>
<function name='xsltParseStylesheetImport' file='imports'>
- <info>parse an XSLT stylesheet strip-space element and record elements needing stripping. Returns zero on success and something else on failure.</info>
- <return type='int'/>
- <arg name='style' type='xsltStylesheetPtr' info='the XSLT stylesheet '/>
- <arg name='cur' type='xmlNodePtr'/>
+ <info>parse an XSLT stylesheet import element</info>
+ <return type='int' info='0 in case of success -1 in case of failure.'/>
+ <arg name='style' type='xsltStylesheetPtr' info='the XSLT stylesheet'/>
+ <arg name='cur' type='xmlNodePtr' info='the import element'/>
</function>
<function name='xsltParseStylesheetInclude' file='imports'>
- <info>parse an XSLT stylesheet strip-space element and record elements needing stripping. Returns zero on success, something else on failure.</info>
- <return type='int'/>
- <arg name='style' type='xsltStylesheetPtr' info='the XSLT stylesheet '/>
- <arg name='cur' type='xmlNodePtr'/>
+ <info>parse an XSLT stylesheet include element</info>
+ <return type='int' info='0 in case of success -1 in case of failure'/>
+ <arg name='style' type='xsltStylesheetPtr' info='the XSLT stylesheet'/>
+ <arg name='cur' type='xmlNodePtr' info='the include node'/>
</function>
<function name='xsltParseStylesheetOutput' file='xsltInternals'>
<info>parse an XSLT stylesheet output element and record information related to the stylesheet output</info>
<return type='void'/>
- <arg name='style' type='xsltStylesheetPtr' info='the XSLT stylesheet '/>
- <arg name='cur' type='xmlNodePtr' info='the "output" element '/>
+ <arg name='style' type='xsltStylesheetPtr' info='the XSLT stylesheet'/>
+ <arg name='cur' type='xmlNodePtr' info='the "output" element'/>
</function>
<function name='xsltParseStylesheetParam' file='variables'>
<info>parse an XSLT transformation param declaration and record its value.</info>
<return type='void'/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='the XSLT transformation context '/>
- <arg name='cur' type='xmlNodePtr' info='the "param" element '/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='the XSLT transformation context'/>
+ <arg name='cur' type='xmlNodePtr' info='the "param" element'/>
</function>
<function name='xsltParseStylesheetProcess' file='xsltInternals'>
<info>parse an XSLT stylesheet adding the associated structures</info>
- <return type='xsltStylesheetPtr' info='the value of the 'ret' parameter if everything went right, NULL if something went amiss. '/>
- <arg name='ret' type='xsltStylesheetPtr' info='the XSLT stylesheet '/>
- <arg name='doc' type='xmlDocPtr' info='and xmlDoc parsed XML '/>
+ <return type='xsltStylesheetPtr' info='the value of the 'ret' parameter if everything went right, NULL if something went amiss.'/>
+ <arg name='ret' type='xsltStylesheetPtr' info='the XSLT stylesheet'/>
+ <arg name='doc' type='xmlDocPtr' info='and xmlDoc parsed XML'/>
</function>
<function name='xsltParseStylesheetVariable' file='variables'>
<info>parse an XSLT transformation variable declaration and record its value.</info>
<return type='void'/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='the XSLT transformation context '/>
- <arg name='cur' type='xmlNodePtr' info='the "variable" element '/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='the XSLT transformation context'/>
+ <arg name='cur' type='xmlNodePtr' info='the "variable" element'/>
</function>
<function name='xsltParseTemplateContent' file='xsltInternals'>
<info>parse a template content-model Clean-up the template content from unwanted ignorable blank nodes and process xslt:text</info>
<return type='void'/>
- <arg name='style' type='xsltStylesheetPtr' info='the XSLT stylesheet '/>
- <arg name='templ' type='xmlNodePtr' info='the container node (can be a document for literal results) '/>
+ <arg name='style' type='xsltStylesheetPtr' info='the XSLT stylesheet'/>
+ <arg name='templ' type='xmlNodePtr' info='the container node (can be a document for literal results)'/>
</function>
<function name='xsltPreComputeExtModuleElement' file='extensions'>
<info>Precomputes an extension module element</info>
- <return type='xsltElemPreCompPtr' info='the precomputed data '/>
- <arg name='style' type='xsltStylesheetPtr' info='the stylesheet '/>
- <arg name='inst' type='xmlNodePtr' info='the element node '/>
- </function>
+ <return type='xsltElemPreCompPtr' info='the precomputed data'/>
+ <arg name='style' type='xsltStylesheetPtr' info='the stylesheet'/>
+ <arg name='inst' type='xmlNodePtr' info='the element node'/>
+ </function>
+ <functype name='xsltPreComputeFunction' file='extensions'>
+ <info></info>
+ <return type='xsltElemPreCompPtr(*xsltPreComputeFunction)' info=''/>
+ <arg name='style' type='xsltStylesheetPtr' info=''/>
+ <arg name='inst' type='xmlNodePtr' info=''/>
+ <arg name='function' type='xsltTransformFunction' info=''/>
+ </functype>
<function name='xsltPrintErrorContext' file='xsltutils'>
<info>Display the context of an error.</info>
<return type='void'/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='the transformation context '/>
- <arg name='style' type='xsltStylesheetPtr' info='the stylesheet '/>
- <arg name='node' type='xmlNodePtr' info='the current node being processed '/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='the transformation context'/>
+ <arg name='style' type='xsltStylesheetPtr' info='the stylesheet'/>
+ <arg name='node' type='xmlNodePtr' info='the current node being processed'/>
+ </function>
+ <function name='xsltProcessOneNode' file='transform.c'>
+ <info></info>
+ <return type='void'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info=''/>
+ <arg name='node' type='xmlNodePtr' info=''/>
+ <arg name='params' type='xsltStackElemPtr' info=''/>
</function>
<function name='xsltProcessingInstruction' file='transform'>
<info>Process the xslt processing-instruction node on the source node</info>
<return type='void'/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='a XSLT process context '/>
- <arg name='node' type='xmlNodePtr' info='the node in the source tree. '/>
- <arg name='inst' type='xmlNodePtr' info='the xslt processing-instruction node '/>
- <arg name='comp' type='xsltStylePreCompPtr' info='precomputed information '/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='a XSLT process context'/>
+ <arg name='node' type='xmlNodePtr' info='the node in the source tree.'/>
+ <arg name='inst' type='xmlNodePtr' info='the xslt processing-instruction node'/>
+ <arg name='comp' type='xsltStylePreCompPtr' info='precomputed information'/>
</function>
<function name='xsltProfileStylesheet' file='transform'>
<info>Apply the stylesheet to the document and dump the profiling to the given output.</info>
- <return type='xmlDocPtr' info='the result document or NULL in case of error '/>
- <arg name='style' type='xsltStylesheetPtr' info='a parsed XSLT stylesheet '/>
- <arg name='doc' type='xmlDocPtr' info='a parsed XML document '/>
- <arg name='params' type='const char **' info='a NULL terminated arry of parameters names/values tuples '/>
- <arg name='output' type='FILE *' info='a FILE * for the profiling output '/>
+ <return type='xmlDocPtr' info='the result document or NULL in case of error'/>
+ <arg name='style' type='xsltStylesheetPtr' info='a parsed XSLT stylesheet'/>
+ <arg name='doc' type='xmlDocPtr' info='a parsed XML document'/>
+ <arg name='params' type='const char **' info='a NULL terminated arry of parameters names/values tuples'/>
+ <arg name='output' type='FILE *' info='a FILE * for the profiling output'/>
</function>
<function name='xsltQuoteOneUserParam' file='variables'>
- <info>ctxt: the XSLT transformation context name: a null terminated string giving the name of the parameter value a null terminated string giving the parameter value This is normally called from xsltQuoteUserParams to process a single parameter from a list of parameters. The value is stored in the context's global variable/parameter hash table.</info>
- <return type='int' info='0 in case of success, -1 in case of error. '/>
- <arg name='ctxt' type='xsltTransformContextPtr'/>
- <arg name='name' type='const xmlChar *'/>
- <arg name='value' type='const xmlChar *'/>
+ <info>This is normally called from xsltQuoteUserParams to process a single parameter from a list of parameters. The @value is stored in the context's global variable/parameter hash table.</info>
+ <return type='int' info='0 in case of success, -1 in case of error.'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='the XSLT transformation context'/>
+ <arg name='name' type='const xmlChar *' info='a null terminated string giving the name of the parameter'/>
+ <arg name='value' type='const xmlChar *' info='a null terminated string giving the parameter value'/>
</function>
<function name='xsltQuoteUserParams' file='variables'>
- <info>ctxt: the XSLT transformation context params: a NULL terminated arry of parameters names/values tuples Similar to xsltEvalUserParams, but the values are treated literally and are * *not* evaluated as XPath expressions. This should be done on parsed stylesheets before starting to apply transformations.</info>
- <return type='int' info='0 in case of success, -1 in case of error. '/>
- <arg name='ctxt' type='xsltTransformContextPtr'/>
- <arg name='params' type='const char **'/>
+ <info>Similar to xsltEvalUserParams, but the values are treated literally and are * *not* evaluated as XPath expressions. This should be done on parsed stylesheets before starting to apply transformations.</info>
+ <return type='int' info='0 in case of success, -1 in case of error.'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='the XSLT transformation context'/>
+ <arg name='params' type='const char **' info='a NULL terminated arry of parameters names/values tuples'/>
</function>
<function name='xsltRegisterAllElement' file='transform'>
<info>Registers all default XSLT elements in this context</info>
<return type='void'/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='the XPath context '/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='the XPath context'/>
</function>
<function name='xsltRegisterAllExtras' file='extra'>
<info>Registers the built-in extensions</info>
<function name='xsltRegisterAllFunctions' file='functions'>
<info>Registers all default XSLT functions in this context</info>
<return type='void'/>
- <arg name='ctxt' type='xmlXPathContextPtr' info='the XPath context '/>
+ <arg name='ctxt' type='xmlXPathContextPtr' info='the XPath context'/>
</function>
<function name='xsltRegisterExtElement' file='extensions'>
<info>Registers an extension element</info>
- <return type='int' info='0 in case of success, -1 in case of failure '/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT transformation context '/>
- <arg name='name' type='const xmlChar *' info='the name of the element '/>
- <arg name='URI' type='const xmlChar *' info='the URI associated to the element '/>
- <arg name='function' type='xsltTransformFunction' info='the actual implementation which should be called '/>
+ <return type='int' info='0 in case of success, -1 in case of failure'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT transformation context'/>
+ <arg name='name' type='const xmlChar *' info='the name of the element'/>
+ <arg name='URI' type='const xmlChar *' info='the URI associated to the element'/>
+ <arg name='function' type='xsltTransformFunction' info='the actual implementation which should be called'/>
</function>
<function name='xsltRegisterExtFunction' file='extensions'>
<info>Registers an extension function</info>
- <return type='int' info='0 in case of success, -1 in case of failure '/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT transformation context '/>
- <arg name='name' type='const xmlChar *' info='the name of the element '/>
- <arg name='URI' type='const xmlChar *' info='the URI associated to the element '/>
- <arg name='function' type='xmlXPathFunction' info='the actual implementation which should be called '/>
+ <return type='int' info='0 in case of success, -1 in case of failure'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT transformation context'/>
+ <arg name='name' type='const xmlChar *' info='the name of the element'/>
+ <arg name='URI' type='const xmlChar *' info='the URI associated to the element'/>
+ <arg name='function' type='xmlXPathFunction' info='the actual implementation which should be called'/>
</function>
<function name='xsltRegisterExtModule' file='extensions'>
<info>Register an XSLT extension module to the library.</info>
- <return type='int' info='0 if sucessful, -1 in case of error '/>
- <arg name='URI' type='const xmlChar *' info='URI associated to this module '/>
- <arg name='initFunc' type='xsltExtInitFunction' info='the module initialization function '/>
- <arg name='shutdownFunc' type='xsltExtShutdownFunction' info='the module shutdown function '/>
+ <return type='int' info='0 if sucessful, -1 in case of error'/>
+ <arg name='URI' type='const xmlChar *' info='URI associated to this module'/>
+ <arg name='initFunc' type='xsltExtInitFunction' info='the module initialization function'/>
+ <arg name='shutdownFunc' type='xsltExtShutdownFunction' info='the module shutdown function'/>
</function>
<function name='xsltRegisterExtModuleElement' file='extensions'>
<info>Registers an extension module element.</info>
- <return type='int' info='0 if successful, -1 in case of error. '/>
- <arg name='name' type='const xmlChar *' info='the element name '/>
- <arg name='URI' type='const xmlChar *' info='the element namespace URI '/>
- <arg name='precomp' type='xsltPreComputeFunction' info='the pre-computation callback '/>
- <arg name='transform' type='xsltTransformFunction' info='the transformation callback '/>
+ <return type='int' info='0 if successful, -1 in case of error.'/>
+ <arg name='name' type='const xmlChar *' info='the element name'/>
+ <arg name='URI' type='const xmlChar *' info='the element namespace URI'/>
+ <arg name='precomp' type='xsltPreComputeFunction' info='the pre-computation callback'/>
+ <arg name='transform' type='xsltTransformFunction' info='the transformation callback'/>
</function>
<function name='xsltRegisterExtModuleFull' file='extensions'>
<info>Register an XSLT extension module to the library.</info>
- <return type='int' info='0 if sucessful, -1 in case of error '/>
- <arg name='URI' type='const xmlChar *' info='URI associated to this module '/>
- <arg name='initFunc' type='xsltExtInitFunction' info='the module initialization function '/>
- <arg name='shutdownFunc' type='xsltExtShutdownFunction' info='the module shutdown function '/>
- <arg name='styleInitFunc' type='xsltStyleExtInitFunction' info='the module initialization function '/>
- <arg name='styleShutdownFunc' type='xsltStyleExtShutdownFunction' info='the module shutdown function '/>
+ <return type='int' info='0 if sucessful, -1 in case of error'/>
+ <arg name='URI' type='const xmlChar *' info='URI associated to this module'/>
+ <arg name='initFunc' type='xsltExtInitFunction' info='the module initialization function'/>
+ <arg name='shutdownFunc' type='xsltExtShutdownFunction' info='the module shutdown function'/>
+ <arg name='styleInitFunc' type='xsltStyleExtInitFunction' info='the module initialization function'/>
+ <arg name='styleShutdownFunc' type='xsltStyleExtShutdownFunction' info='the module shutdown function'/>
</function>
<function name='xsltRegisterExtModuleFunction' file='extensions'>
<info>Registers an extension module function.</info>
- <return type='int' info='0 if successful, -1 in case of error. '/>
- <arg name='name' type='const xmlChar *' info='the function name '/>
- <arg name='URI' type='const xmlChar *' info='the function namespace URI '/>
- <arg name='function' type='xmlXPathFunction' info='the function callback '/>
+ <return type='int' info='0 if successful, -1 in case of error.'/>
+ <arg name='name' type='const xmlChar *' info='the function name'/>
+ <arg name='URI' type='const xmlChar *' info='the function namespace URI'/>
+ <arg name='function' type='xmlXPathFunction' info='the function callback'/>
</function>
<function name='xsltRegisterExtModuleTopLevel' file='extensions'>
<info>Registers an extension module top-level element.</info>
- <return type='int' info='0 if successful, -1 in case of error. '/>
- <arg name='name' type='const xmlChar *' info='the top-level element name '/>
- <arg name='URI' type='const xmlChar *' info='the top-level element namespace URI '/>
- <arg name='function' type='xsltTopLevelFunction' info='the top-level element callback '/>
+ <return type='int' info='0 if successful, -1 in case of error.'/>
+ <arg name='name' type='const xmlChar *' info='the top-level element name'/>
+ <arg name='URI' type='const xmlChar *' info='the top-level element namespace URI'/>
+ <arg name='function' type='xsltTopLevelFunction' info='the top-level element callback'/>
</function>
<function name='xsltRegisterExtPrefix' file='extensions'>
<info>Registers an extension namespace</info>
- <return type='int' info='0 in case of success, -1 in case of failure '/>
- <arg name='style' type='xsltStylesheetPtr' info='an XSLT stylesheet '/>
- <arg name='prefix' type='const xmlChar *' info='the prefix used '/>
- <arg name='URI' type='const xmlChar *' info='the URI associated to the extension '/>
+ <return type='int' info='0 in case of success, -1 in case of failure'/>
+ <arg name='style' type='xsltStylesheetPtr' info='an XSLT stylesheet'/>
+ <arg name='prefix' type='const xmlChar *' info='the prefix used'/>
+ <arg name='URI' type='const xmlChar *' info='the URI associated to the extension'/>
</function>
<function name='xsltRegisterExtras' file='extra'>
<info>Registers the built-in extensions. This function is deprecated, use xsltRegisterAllExtras instead.</info>
<return type='void'/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='a XSLT process context '/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='a XSLT process context'/>
</function>
<function name='xsltRegisterTestModule' file='extensions'>
<info>Registers the test module</info>
<function name='xsltResolveStylesheetAttributeSet' file='attributes'>
<info>resolve the references between attribute sets.</info>
<return type='void'/>
- <arg name='style' type='xsltStylesheetPtr' info='the XSLT stylesheet '/>
+ <arg name='style' type='xsltStylesheetPtr' info='the XSLT stylesheet'/>
</function>
<function name='xsltRunStylesheet' file='transform'>
- <info>Apply the stylesheet to the document and generate the output according to outputSAX and IObuf. It's an error to specify both SAX and IObuf. NOTE: This may lead to a non-wellformed output XML wise ! NOTE: This may also result in multiple files being generated NOTE: using IObuf, the result encoding used will be the one used for creating the output buffer, use the following macro to read it from the stylesheet XSLT_GET_IMPORT_PTR(encoding, style, encoding) NOTE: using SAX, any encoding specified in the stylesheet will be lost since the interface uses only UTF8</info>
- <return type='int' info='the number of by written to the main resource or -1 in case of error. '/>
- <arg name='style' type='xsltStylesheetPtr' info='a parsed XSLT stylesheet '/>
- <arg name='doc' type='xmlDocPtr' info='a parsed XML document '/>
- <arg name='params' type='const char **' info='a NULL terminated arry of parameters names/values tuples '/>
- <arg name='output' type='const char *' info='the URL/filename ot the generated resource if available '/>
- <arg name='SAX' type='xmlSAXHandlerPtr' info='a SAX handler for progressive callback output (not implemented yet) '/>
- <arg name='IObuf' type='xmlOutputBufferPtr' info='an output buffer for progressive output (not implemented yet) '/>
+ <info>Apply the stylesheet to the document and generate the output according to @output @SAX and @IObuf. It's an error to specify both @SAX and @IObuf. NOTE: This may lead to a non-wellformed output XML wise ! NOTE: This may also result in multiple files being generated NOTE: using IObuf, the result encoding used will be the one used for creating the output buffer, use the following macro to read it from the stylesheet XSLT_GET_IMPORT_PTR(encoding, style, encoding) NOTE: using SAX, any encoding specified in the stylesheet will be lost since the interface uses only UTF8</info>
+ <return type='int' info='the number of by written to the main resource or -1 in case of error.'/>
+ <arg name='style' type='xsltStylesheetPtr' info='a parsed XSLT stylesheet'/>
+ <arg name='doc' type='xmlDocPtr' info='a parsed XML document'/>
+ <arg name='params' type='const char **' info='a NULL terminated arry of parameters names/values tuples'/>
+ <arg name='output' type='const char *' info='the URL/filename ot the generated resource if available'/>
+ <arg name='SAX' type='xmlSAXHandlerPtr' info='a SAX handler for progressive callback output (not implemented yet)'/>
+ <arg name='IObuf' type='xmlOutputBufferPtr' info='an output buffer for progressive output (not implemented yet)'/>
</function>
<function name='xsltRunStylesheetUser' file='transform'>
- <info>Apply the stylesheet to the document and generate the output according to outputSAX and IObuf. It's an error to specify both SAX and IObuf. NOTE: This may lead to a non-wellformed output XML wise ! NOTE: This may also result in multiple files being generated NOTE: using IObuf, the result encoding used will be the one used for creating the output buffer, use the following macro to read it from the stylesheet XSLT_GET_IMPORT_PTR(encoding, style, encoding) NOTE: using SAX, any encoding specified in the stylesheet will be lost since the interface uses only UTF8</info>
- <return type='int' info='the number of by written to the main resource or -1 in case of error. '/>
- <arg name='style' type='xsltStylesheetPtr' info='a parsed XSLT stylesheet '/>
- <arg name='doc' type='xmlDocPtr' info='a parsed XML document '/>
- <arg name='params' type='const char **' info='a NULL terminated arry of parameters names/values tuples '/>
- <arg name='output' type='const char *' info='the URL/filename ot the generated resource if available '/>
- <arg name='SAX' type='xmlSAXHandlerPtr' info='a SAX handler for progressive callback output (not implemented yet) '/>
- <arg name='IObuf' type='xmlOutputBufferPtr' info='an output buffer for progressive output (not implemented yet) '/>
- <arg name='profile' type='FILE *' info='profile FILE * output or NULL '/>
- <arg name='userCtxt' type='xsltTransformContextPtr' info='user provided transform context '/>
- </function>
- <struct name='xsltRuntimeExtra' file='xsltInternals'/>
- <typedef name='xsltRuntimeExtraPtr' file='xsltInternals'/>
+ <info>Apply the stylesheet to the document and generate the output according to @output @SAX and @IObuf. It's an error to specify both @SAX and @IObuf. NOTE: This may lead to a non-wellformed output XML wise ! NOTE: This may also result in multiple files being generated NOTE: using IObuf, the result encoding used will be the one used for creating the output buffer, use the following macro to read it from the stylesheet XSLT_GET_IMPORT_PTR(encoding, style, encoding) NOTE: using SAX, any encoding specified in the stylesheet will be lost since the interface uses only UTF8</info>
+ <return type='int' info='the number of by written to the main resource or -1 in case of error.'/>
+ <arg name='style' type='xsltStylesheetPtr' info='a parsed XSLT stylesheet'/>
+ <arg name='doc' type='xmlDocPtr' info='a parsed XML document'/>
+ <arg name='params' type='const char **' info='a NULL terminated arry of parameters names/values tuples'/>
+ <arg name='output' type='const char *' info='the URL/filename ot the generated resource if available'/>
+ <arg name='SAX' type='xmlSAXHandlerPtr' info='a SAX handler for progressive callback output (not implemented yet)'/>
+ <arg name='IObuf' type='xmlOutputBufferPtr' info='an output buffer for progressive output (not implemented yet)'/>
+ <arg name='profile' type='FILE *' info='profile FILE * output or NULL'/>
+ <arg name='userCtxt' type='xsltTransformContextPtr' info='user provided transform context'/>
+ </function>
<function name='xsltSaveProfiling' file='xsltutils'>
- <info>Save the profiling informations on output</info>
+ <info>Save the profiling informations on @output</info>
<return type='void'/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT context '/>
- <arg name='output' type='FILE *' info='a FILE * for saving the informations '/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT context'/>
+ <arg name='output' type='FILE *' info='a FILE * for saving the informations'/>
</function>
<function name='xsltSaveResultTo' file='xsltutils'>
- <info>Save the result result obtained by applying the style stylesheet to an I/O output channel buf</info>
- <return type='int' info='the number of byte written or -1 in case of failure. '/>
- <arg name='buf' type='xmlOutputBufferPtr' info='an output buffer '/>
- <arg name='result' type='xmlDocPtr' info='the result xmlDocPtr '/>
- <arg name='style' type='xsltStylesheetPtr' info='the stylesheet '/>
+ <info>Save the result @result obtained by applying the @style stylesheet to an I/O output channel @buf</info>
+ <return type='int' info='the number of byte written or -1 in case of failure.'/>
+ <arg name='buf' type='xmlOutputBufferPtr' info='an output buffer'/>
+ <arg name='result' type='xmlDocPtr' info='the result xmlDocPtr'/>
+ <arg name='style' type='xsltStylesheetPtr' info='the stylesheet'/>
</function>
<function name='xsltSaveResultToFd' file='xsltutils'>
- <info>Save the result result obtained by applying the style stylesheet to an open file descriptor This does not close the descriptor.</info>
- <return type='int' info='the number of bytes written or -1 in case of failure. '/>
- <arg name='fd' type='int' info='a file descriptor '/>
- <arg name='result' type='xmlDocPtr' info='the result xmlDocPtr '/>
- <arg name='style' type='xsltStylesheetPtr' info='the stylesheet '/>
+ <info>Save the result @result obtained by applying the @style stylesheet to an open file descriptor This does not close the descriptor.</info>
+ <return type='int' info='the number of bytes written or -1 in case of failure.'/>
+ <arg name='fd' type='int' info='a file descriptor'/>
+ <arg name='result' type='xmlDocPtr' info='the result xmlDocPtr'/>
+ <arg name='style' type='xsltStylesheetPtr' info='the stylesheet'/>
</function>
<function name='xsltSaveResultToFile' file='xsltutils'>
- <info>Save the result result obtained by applying the style stylesheet to an open FILE * I/O. This does not close the FILE file</info>
- <return type='int' info='the number of bytes written or -1 in case of failure. '/>
- <arg name='file' type='FILE *' info='a FILE * I/O '/>
- <arg name='result' type='xmlDocPtr' info='the result xmlDocPtr '/>
- <arg name='style' type='xsltStylesheetPtr' info='the stylesheet '/>
+ <info>Save the result @result obtained by applying the @style stylesheet to an open FILE * I/O. This does not close the FILE @file</info>
+ <return type='int' info='the number of bytes written or -1 in case of failure.'/>
+ <arg name='file' type='FILE *' info='a FILE * I/O'/>
+ <arg name='result' type='xmlDocPtr' info='the result xmlDocPtr'/>
+ <arg name='style' type='xsltStylesheetPtr' info='the stylesheet'/>
</function>
<function name='xsltSaveResultToFilename' file='xsltutils'>
- <info>Save the result result obtained by applying the style stylesheet to a file or URL</info>
- <return type='int' info='the number of byte written or -1 in case of failure. '/>
- <arg name='URI' type='const char *'/>
- <arg name='result' type='xmlDocPtr' info='the result xmlDocPtr '/>
- <arg name='style' type='xsltStylesheetPtr' info='the stylesheet '/>
- <arg name='compression' type='int' info='the compression factor (0 - 9 included) '/>
+ <info>Save the result @result obtained by applying the @style stylesheet to a file or @URL</info>
+ <return type='int' info='the number of byte written or -1 in case of failure.'/>
+ <arg name='URL' type='const char *' info='a filename or URL'/>
+ <arg name='result' type='xmlDocPtr' info='the result xmlDocPtr'/>
+ <arg name='style' type='xsltStylesheetPtr' info='the stylesheet'/>
+ <arg name='compression' type='int' info='the compression factor (0 - 9 included)'/>
</function>
<function name='xsltSaveResultToString' file='xsltutils'>
- <info>Save the result result obtained by applying the style stylesheet to a file or URL</info>
- <return type='int' info='the number of byte written or -1 in case of failure. '/>
- <arg name='doc_txt_ptr' type='xmlChar **' info='Memory pointer for allocated XML text '/>
- <arg name='doc_txt_len' type='int *' info='Length of the generated XML text '/>
- <arg name='result' type='xmlDocPtr' info='the result xmlDocPtr '/>
- <arg name='style' type='xsltStylesheetPtr' info='the stylesheet '/>
+ <info>Save the result @result obtained by applying the @style stylesheet to a file or @URL</info>
+ <return type='int' info='the number of byte written or -1 in case of failure.'/>
+ <arg name='doc_txt_ptr' type='xmlChar **' info='Memory pointer for allocated XML text'/>
+ <arg name='doc_txt_len' type='int *' info='Length of the generated XML text'/>
+ <arg name='result' type='xmlDocPtr' info='the result xmlDocPtr'/>
+ <arg name='style' type='xsltStylesheetPtr' info='the stylesheet'/>
</function>
<function name='xsltSecurityAllow' file='security'>
<info>Function used to always allow an operation</info>
- <return type='int' info='1 always '/>
- <arg name='sec' type='xsltSecurityPrefsPtr' info='the security block to use '/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT transformation context '/>
- <arg name='value' type='const char *' info='unused '/>
+ <return type='int' info='1 always'/>
+ <arg name='sec' type='xsltSecurityPrefsPtr' info='the security block to use'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT transformation context'/>
+ <arg name='value' type='const char *' info='unused'/>
</function>
<functype name='xsltSecurityCheck' file='security'>
<info>User provided function to check the value of a string like a file path or an URL ...</info>
- <return type='int'/>
- <arg name='sec' type='xsltSecurityPrefsPtr'/>
- <arg name='ctxt' type='xsltTransformContextPtr'/>
- <arg name='value' type='const char *'/>
+ <return type='int(*xsltSecurityCheck)' info=''/>
+ <arg name='sec' type='xsltSecurityPrefsPtr' info=''/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info=''/>
+ <arg name='value' type='const char *' info=''/>
</functype>
<function name='xsltSecurityForbid' file='security'>
<info>Function used to always forbid an operation</info>
- <return type='int' info='0 always '/>
- <arg name='sec' type='xsltSecurityPrefsPtr' info='the security block to use '/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT transformation context '/>
- <arg name='value' type='const char *' info='unused '/>
- </function>
- <enum name='xsltSecurityOption' file='security'/>
- <struct name='xsltSecurityPrefs' file='security'/>
- <typedef name='xsltSecurityPrefsPtr' file='security'/>
+ <return type='int' info='0 always'/>
+ <arg name='sec' type='xsltSecurityPrefsPtr' info='the security block to use'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT transformation context'/>
+ <arg name='value' type='const char *' info='unused'/>
+ </function>
<function name='xsltSetCtxtSecurityPrefs' file='security'>
<info>Set the security preference for a specific transformation</info>
- <return type='int' info='-1 in case of error, 0 otherwise '/>
- <arg name='sec' type='xsltSecurityPrefsPtr' info='the security block to use '/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT transformation context '/>
+ <return type='int' info='-1 in case of error, 0 otherwise'/>
+ <arg name='sec' type='xsltSecurityPrefsPtr' info='the security block to use'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT transformation context'/>
+ </function>
+ <function name='xsltSetCtxtSortFunc' file='xsltutils'>
+ <info>Function to set the handler for XSLT sorting for the specified context. If the handler is NULL, then the global sort function will be called</info>
+ <return type='void'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='a XSLT process context'/>
+ <arg name='handler' type='xsltSortFunc' info='the new handler function'/>
</function>
<function name='xsltSetDebuggerCallbacks' file='xsltutils'>
- <return type='int'/>
- <arg name='no' type='int'/>
- <arg name='block' type='void *'/>
+ <info>This function allow to plug a debugger into the XSLT library @block points to a block of memory containing the address of @no callback routines.</info>
+ <return type='int' info='0 in case of success and -1 in case of error'/>
+ <arg name='no' type='int' info='number of callbacks'/>
+ <arg name='block' type='void *' info='the block of callbacks'/>
</function>
<function name='xsltSetDefaultSecurityPrefs' file='security'>
- <info>Get the default security preference application-wide</info>
+ <info>Set the default security preference application-wide</info>
<return type='void'/>
- <arg name='sec' type='xsltSecurityPrefsPtr'/>
+ <arg name='sec' type='xsltSecurityPrefsPtr' info='the security block to use'/>
</function>
<function name='xsltSetGenericDebugFunc' file='xsltutils'>
- <info>Function to reset the handler and the error context for out of context error messages. This simply means that handler will be called for subsequent error messages while not parsing or validating. And ctx will be passed as first argument to handler One can simply force messages to be emitted to another FILE * than stderr by setting ctx to this file handle and handler to NULL.</info>
+ <info>Function to reset the handler and the error context for out of context error messages. This simply means that @handler will be called for subsequent error messages while not parsing or validating. And @ctx will be passed as first argument to @handler One can simply force messages to be emitted to another FILE * than stderr by setting @ctx to this file handle and @handler to NULL.</info>
<return type='void'/>
- <arg name='ctx' type='void *' info='the new error handling context '/>
- <arg name='handler' type='xmlGenericErrorFunc' info='the new handler function '/>
+ <arg name='ctx' type='void *' info='the new error handling context'/>
+ <arg name='handler' type='xmlGenericErrorFunc' info='the new handler function'/>
</function>
<function name='xsltSetGenericErrorFunc' file='xsltutils'>
- <info>Function to reset the handler and the error context for out of context error messages. This simply means that handler will be called for subsequent error messages while not parsing nor validating. And ctx will be passed as first argument to handler One can simply force messages to be emitted to another FILE * than stderr by setting ctx to this file handle and handler to NULL.</info>
+ <info>Function to reset the handler and the error context for out of context error messages. This simply means that @handler will be called for subsequent error messages while not parsing nor validating. And @ctx will be passed as first argument to @handler One can simply force messages to be emitted to another FILE * than stderr by setting @ctx to this file handle and @handler to NULL.</info>
<return type='void'/>
- <arg name='ctx' type='void *' info='the new error handling context '/>
- <arg name='handler' type='xmlGenericErrorFunc' info='the new handler function '/>
+ <arg name='ctx' type='void *' info='the new error handling context'/>
+ <arg name='handler' type='xmlGenericErrorFunc' info='the new handler function'/>
</function>
<function name='xsltSetSecurityPrefs' file='security'>
<info>Update the security option to use the new callback checking function</info>
- <return type='int' info='-1 in case of error, 0 otherwise '/>
- <arg name='sec' type='xsltSecurityPrefsPtr' info='the security block to update '/>
- <arg name='option' type='xsltSecurityOption' info='the option to update '/>
- <arg name='func' type='xsltSecurityCheck' info='the user callback to use for this option '/>
+ <return type='int' info='-1 in case of error, 0 otherwise'/>
+ <arg name='sec' type='xsltSecurityPrefsPtr' info='the security block to update'/>
+ <arg name='option' type='xsltSecurityOption' info='the option to update'/>
+ <arg name='func' type='xsltSecurityCheck' info='the user callback to use for this option'/>
+ </function>
+ <function name='xsltSetSortFunc' file='xsltutils'>
+ <info>Function to reset the global handler for XSLT sorting. If the handler is NULL, the default sort function will be used.</info>
+ <return type='void'/>
+ <arg name='handler' type='xsltSortFunc' info='the new handler function'/>
</function>
<function name='xsltSetTransformErrorFunc' file='xsltutils'>
- <info>Function to reset the handler and the error context for out of context error messages specific to a given XSLT transromation. This simply means that handler will be called for subsequent error messages while running the transformation.</info>
+ <info>Function to reset the handler and the error context for out of context error messages specific to a given XSLT transromation. This simply means that @handler will be called for subsequent error messages while running the transformation.</info>
<return type='void'/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='the XSLT transformation context '/>
- <arg name='ctx' type='void *' info='the new error handling context '/>
- <arg name='handler' type='xmlGenericErrorFunc' info='the new handler function '/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='the XSLT transformation context'/>
+ <arg name='ctx' type='void *' info='the new error handling context'/>
+ <arg name='handler' type='xmlGenericErrorFunc' info='the new handler function'/>
</function>
<function name='xsltSetXIncludeDefault' file='transform'>
<info>Set whether XInclude should be processed on document being loaded by default</info>
<return type='void'/>
- <arg name='xinclude' type='int' info='whether to do XInclude processing '/>
+ <arg name='xinclude' type='int' info='whether to do XInclude processing'/>
</function>
<function name='xsltShutdownCtxtExts' file='extensions'>
<info>Shutdown the set of modules loaded</info>
<return type='void'/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT transformation context '/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT transformation context'/>
</function>
<function name='xsltShutdownExts' file='extensions'>
<info>Shutdown the set of modules loaded</info>
<return type='void'/>
- <arg name='style' type='xsltStylesheetPtr' info='an XSLT stylesheet '/>
+ <arg name='style' type='xsltStylesheetPtr' info='an XSLT stylesheet'/>
</function>
<function name='xsltSort' file='transform'>
<info>function attached to xsl:sort nodes, but this should not be called directly</info>
<return type='void'/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='a XSLT process context '/>
- <arg name='node' type='xmlNodePtr' info='the node in the source tree. '/>
- <arg name='inst' type='xmlNodePtr' info='the xslt sort node '/>
- <arg name='comp' type='xsltStylePreCompPtr' info='precomputed information '/>
- </function>
- <struct name='xsltStackElem' file='xsltInternals'/>
- <typedef name='xsltStackElemPtr' file='xsltInternals'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='a XSLT process context'/>
+ <arg name='node' type='xmlNodePtr' info='the node in the source tree.'/>
+ <arg name='inst' type='xmlNodePtr' info='the xslt sort node'/>
+ <arg name='comp' type='xsltStylePreCompPtr' info='precomputed information'/>
+ </function>
+ <functype name='xsltSortFunc' file='xsltInternals'>
+ <info>Signature of the function to use during sorting</info>
+ <return type='void(*xsltSortFunc)' info=''/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='a transformation context'/>
+ <arg name='sorts' type='xmlNodePtr *' info='the node-set to sort'/>
+ <arg name='nbsorts' type='int' info='the number of sorts'/>
+ </functype>
<functype name='xsltStyleExtInitFunction' file='extensions'>
<info>A function called at initialization time of an XSLT extension module.</info>
- <return type='void *'/>
- <arg name='style' type='xsltStylesheetPtr'/>
- <arg name='URI' type='const xmlChar *' info='the namespace URI for the extension '/>
+ <return type='void *(*xsltStyleExtInitFunction)' info='a pointer to the module specific data for this transformation.'/>
+ <arg name='style' type='xsltStylesheetPtr' info=''/>
+ <arg name='URI' type='const xmlChar *' info='the namespace URI for the extension'/>
</functype>
<functype name='xsltStyleExtShutdownFunction' file='extensions'>
<info>A function called at shutdown time of an XSLT extension module.</info>
- <return type='void'/>
- <arg name='style' type='xsltStylesheetPtr'/>
- <arg name='URI' type='const xmlChar *' info='the namespace URI for the extension '/>
- <arg name='data' type='void *' info='the data associated to this module '/>
+ <return type='void(*xsltStyleExtShutdownFunction)' info=''/>
+ <arg name='style' type='xsltStylesheetPtr' info=''/>
+ <arg name='URI' type='const xmlChar *' info='the namespace URI for the extension'/>
+ <arg name='data' type='void *' info='the data associated to this module'/>
</functype>
<function name='xsltStyleGetExtData' file='extensions'>
<info>Retrieve the data associated to the extension module in this given stylesheet.</info>
- <return type='void *'/>
- <arg name='style' type='xsltStylesheetPtr' info='an XSLT stylesheet '/>
- <arg name='URI' type='const xmlChar *' info='the URI associated to the exension module '/>
+ <return type='void *' info='the pointer or NULL if not present'/>
+ <arg name='style' type='xsltStylesheetPtr' info='an XSLT stylesheet'/>
+ <arg name='URI' type='const xmlChar *' info='the URI associated to the exension module'/>
</function>
- <struct name='xsltStylePreComp' file='xsltInternals'/>
- <typedef name='xsltStylePreCompPtr' file='xsltInternals'/>
<function name='xsltStylePreCompute' file='preproc'>
<info>Precompute an XSLT stylesheet element</info>
<return type='void'/>
- <arg name='style' type='xsltStylesheetPtr' info='the XSLT stylesheet '/>
- <arg name='inst' type='xmlNodePtr' info='the instruction in the stylesheet '/>
+ <arg name='style' type='xsltStylesheetPtr' info='the XSLT stylesheet'/>
+ <arg name='inst' type='xmlNodePtr' info='the instruction in the stylesheet'/>
</function>
- <enum name='xsltStyleType' file='xsltInternals'/>
- <struct name='xsltStylesheet' file='xsltInternals'/>
- <typedef name='xsltStylesheetPtr' file='xsltInternals'/>
<function name='xsltSystemPropertyFunction' file='functions'>
<info>Implement the system-property() XSLT function object system-property(string)</info>
<return type='void'/>
- <arg name='ctxt' type='xmlXPathParserContextPtr' info='the XPath Parser context '/>
- <arg name='nargs' type='int' info='the number of arguments '/>
+ <arg name='ctxt' type='xmlXPathParserContextPtr' info='the XPath Parser context'/>
+ <arg name='nargs' type='int' info='the number of arguments'/>
</function>
- <struct name='xsltTemplate' file='xsltInternals'/>
<function name='xsltTemplateProcess' file='templates'>
<info>Process the given node and return the new string value.</info>
- <return type='xmlNodePtr *' info='the computed tree replacement '/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='the XSLT transformation context '/>
- <arg name='node' type='xmlNodePtr' info='the attribute template node '/>
+ <return type='xmlNodePtr *' info='the computed tree replacement'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='the XSLT transformation context'/>
+ <arg name='node' type='xmlNodePtr' info='the attribute template node'/>
</function>
- <typedef name='xsltTemplatePtr' file='xsltInternals'/>
<function name='xsltTestCompMatchList' file='pattern'>
<info>Test wether the node matches one of the patterns in the list</info>
- <return type='int' info='1 if it matches, 0 if it doesn't and -1 in case of failure '/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='a XSLT process context '/>
- <arg name='node' type='xmlNodePtr' info='a node '/>
- <arg name='comp' type='xsltCompMatchPtr' info='the precompiled pattern list '/>
+ <return type='int' info='1 if it matches, 0 if it doesn't and -1 in case of failure'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='a XSLT process context'/>
+ <arg name='node' type='xmlNodePtr' info='a node'/>
+ <arg name='comp' type='xsltCompMatchPtr' info='the precompiled pattern list'/>
</function>
<function name='xsltText' file='transform'>
<info>Process the xslt text node on the source node</info>
<return type='void'/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='a XSLT process context '/>
- <arg name='node' type='xmlNodePtr' info='the node in the source tree. '/>
- <arg name='inst' type='xmlNodePtr' info='the xslt text node '/>
- <arg name='comp' type='xsltStylePreCompPtr' info='precomputed information '/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='a XSLT process context'/>
+ <arg name='node' type='xmlNodePtr' info='the node in the source tree.'/>
+ <arg name='inst' type='xmlNodePtr' info='the xslt text node'/>
+ <arg name='comp' type='xsltStylePreCompPtr' info='precomputed information'/>
</function>
<function name='xsltTimestamp' file='xsltutils'>
<info>Used for gathering profiling data</info>
- <return type='long' info='the number of tenth of milliseconds since the beginning of the profiling '/>
+ <return type='long' info='the number of tenth of milliseconds since the beginning of the profiling'/>
</function>
<functype name='xsltTopLevelFunction' file='extensions'>
- <return type='void'/>
- <arg name='style' type='xsltStylesheetPtr'/>
- <arg name='inst' type='xmlNodePtr'/>
+ <info></info>
+ <return type='void(*xsltTopLevelFunction)' info=''/>
+ <arg name='style' type='xsltStylesheetPtr' info=''/>
+ <arg name='inst' type='xmlNodePtr' info=''/>
</functype>
- <struct name='xsltTransformContext' file='xsltInternals'/>
- <typedef name='xsltTransformContextPtr' file='xsltInternals'/>
<function name='xsltTransformError' file='xsltutils'>
<info>Display and format an error messages, gives file, line, position and extra parameters, will use the specific transformation context if available</info>
<return type='void'/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT transformation context '/>
- <arg name='style' type='xsltStylesheetPtr'/>
- <arg name='node' type='xmlNodePtr'/>
- <arg name='msg' type='const char *' info='the message to display/transmit '/>
- <arg name='' type='...'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='an XSLT transformation context'/>
+ <arg name='style' type='xsltStylesheetPtr' info='the XSLT stylesheet used'/>
+ <arg name='node' type='xmlNodePtr' info='the current node in the stylesheet'/>
+ <arg name='msg' type='const char *' info='the message to display/transmit'/>
+ <arg name='...' type='...' info='extra parameters for the message display'/>
</function>
<functype name='xsltTransformFunction' file='xsltInternals'>
<info>Signature of the function associated to elements part of the stylesheet language like xsl:if or xsl:apply-templates.</info>
- <return type='void'/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='the XSLT transformation context '/>
- <arg name='node' type='xmlNodePtr' info='the input node '/>
- <arg name='inst' type='xmlNodePtr' info='the stylesheet node '/>
- <arg name='comp' type='xsltElemPreCompPtr' info='the compiled information from the stylesheet '/>
+ <return type='void(*xsltTransformFunction)' info=''/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='the XSLT transformation context'/>
+ <arg name='node' type='xmlNodePtr' info='the input node'/>
+ <arg name='inst' type='xmlNodePtr' info='the stylesheet node'/>
+ <arg name='comp' type='xsltElemPreCompPtr' info='the compiled information from the stylesheet'/>
</functype>
- <enum name='xsltTransformState' file='xsltInternals'/>
<function name='xsltUnparsedEntityURIFunction' file='functions'>
<info>Implement the unparsed-entity-uri() XSLT function string unparsed-entity-uri(string)</info>
<return type='void'/>
- <arg name='ctxt' type='xmlXPathParserContextPtr' info='the XPath Parser context '/>
- <arg name='nargs' type='int' info='the number of arguments '/>
+ <arg name='ctxt' type='xmlXPathParserContextPtr' info='the XPath Parser context'/>
+ <arg name='nargs' type='int' info='the number of arguments'/>
</function>
<function name='xsltUnregisterExtModule' file='extensions'>
<info>Unregister an XSLT extension module from the library.</info>
- <return type='int' info='0 if sucessful, -1 in case of error '/>
- <arg name='URI' type='const xmlChar *' info='URI associated to this module '/>
+ <return type='int' info='0 if sucessful, -1 in case of error'/>
+ <arg name='URI' type='const xmlChar *' info='URI associated to this module'/>
</function>
<function name='xsltUnregisterExtModuleElement' file='extensions'>
<info>Unregisters an extension module element</info>
- <return type='int' info='0 if successful, -1 in case of error. '/>
- <arg name='name' type='const xmlChar *' info='the element name '/>
- <arg name='URI' type='const xmlChar *' info='the element namespace URI '/>
+ <return type='int' info='0 if successful, -1 in case of error.'/>
+ <arg name='name' type='const xmlChar *' info='the element name'/>
+ <arg name='URI' type='const xmlChar *' info='the element namespace URI'/>
</function>
<function name='xsltUnregisterExtModuleFunction' file='extensions'>
<info>Unregisters an extension module function</info>
- <return type='int' info='0 if successful, -1 in case of error. '/>
- <arg name='name' type='const xmlChar *' info='the function name '/>
- <arg name='URI' type='const xmlChar *' info='the function namespace URI '/>
+ <return type='int' info='0 if successful, -1 in case of error.'/>
+ <arg name='name' type='const xmlChar *' info='the function name'/>
+ <arg name='URI' type='const xmlChar *' info='the function namespace URI'/>
</function>
<function name='xsltUnregisterExtModuleTopLevel' file='extensions'>
<info>Unregisters an extension module top-level element</info>
- <return type='int' info='0 if successful, -1 in case of error. '/>
- <arg name='name' type='const xmlChar *' info='the top-level element name '/>
- <arg name='URI' type='const xmlChar *' info='the top-level element namespace URI '/>
+ <return type='int' info='0 if successful, -1 in case of error.'/>
+ <arg name='name' type='const xmlChar *' info='the top-level element name'/>
+ <arg name='URI' type='const xmlChar *' info='the top-level element namespace URI'/>
</function>
<function name='xsltValueOf' file='transform'>
<info>Process the xslt value-of node on the source node</info>
<return type='void'/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='a XSLT process context '/>
- <arg name='node' type='xmlNodePtr' info='the node in the source tree. '/>
- <arg name='inst' type='xmlNodePtr' info='the xslt value-of node '/>
- <arg name='comp' type='xsltStylePreCompPtr' info='precomputed information '/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='a XSLT process context'/>
+ <arg name='node' type='xmlNodePtr' info='the node in the source tree.'/>
+ <arg name='inst' type='xmlNodePtr' info='the xslt value-of node'/>
+ <arg name='comp' type='xsltStylePreCompPtr' info='precomputed information'/>
</function>
<function name='xsltVariableLookup' file='variables'>
<info>Search in the Variable array of the context for the given variable value.</info>
- <return type='xmlXPathObjectPtr' info='the value or NULL if not found '/>
- <arg name='ctxt' type='xsltTransformContextPtr' info='the XSLT transformation context '/>
- <arg name='name' type='const xmlChar *' info='the variable name '/>
- <arg name='ns_uri' type='const xmlChar *' info='the variable namespace URI '/>
+ <return type='xmlXPathObjectPtr' info='the value or NULL if not found'/>
+ <arg name='ctxt' type='xsltTransformContextPtr' info='the XSLT transformation context'/>
+ <arg name='name' type='const xmlChar *' info='the variable name'/>
+ <arg name='ns_uri' type='const xmlChar *' info='the variable namespace URI'/>
</function>
<function name='xsltXPathFunctionLookup' file='functions'>
<info>This is the entry point when a function is needed by the XPath interpretor.</info>
- <return type='xmlXPathFunction' info='the callback function or NULL if not found '/>
- <arg name='ctxt' type='xmlXPathContextPtr' info='a void * but the XSLT transformation context actually '/>
- <arg name='name' type='const xmlChar *' info='the function name '/>
- <arg name='ns_uri' type='const xmlChar *' info='the function namespace URI '/>
+ <return type='xmlXPathFunction' info='the callback function or NULL if not found'/>
+ <arg name='ctxt' type='xmlXPathContextPtr' info='a void * but the XSLT transformation context actually'/>
+ <arg name='name' type='const xmlChar *' info='the function name'/>
+ <arg name='ns_uri' type='const xmlChar *' info='the function namespace URI'/>
</function>
<function name='xsltXPathGetTransformContext' file='extensions'>
- <info>Returns the XSLT transformation context from the XPath transformation context. This is useful when an XPath function in the extension module is called by the XPath interpreter and that the XSLT context is needed for example to retrieve the associated data pertaining to this XSLT transformation.</info>
- <return type='xsltTransformContextPtr' info='the XSLT transformation context or NULL in case of error. '/>
- <arg name='ctxt' type='xmlXPathParserContextPtr' info='an XPath transformation context '/>
+ <info>Provides the XSLT transformation context from the XPath transformation context. This is useful when an XPath function in the extension module is called by the XPath interpreter and that the XSLT context is needed for example to retrieve the associated data pertaining to this XSLT transformation.</info>
+ <return type='xsltTransformContextPtr' info='the XSLT transformation context or NULL in case of error.'/>
+ <arg name='ctxt' type='xmlXPathParserContextPtr' info='an XPath transformation context'/>
</function>
<function name='xsltXPathVariableLookup' file='variables'>
<info>This is the entry point when a varibale is needed by the XPath interpretor.</info>
- <return type='xmlXPathObjectPtr' info='the value or NULL if not found '/>
- <arg name='ctxt' type='void *' info='a void * but the the XSLT transformation context actually '/>
- <arg name='name' type='const xmlChar *' info='the variable name '/>
- <arg name='ns_uri' type='const xmlChar *' info='the variable namespace URI '/>
+ <return type='xmlXPathObjectPtr' info='the value or NULL if not found'/>
+ <arg name='ctxt' type='void *' info='a void * but the the XSLT transformation context actually'/>
+ <arg name='name' type='const xmlChar *' info='the variable name'/>
+ <arg name='ns_uri' type='const xmlChar *' info='the variable namespace URI'/>
</function>
</symbols>
</api>