summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2002-12-13 13:51:18 +0000
committerDaniel Veillard <veillard@src.gnome.org>2002-12-13 13:51:18 +0000
commitddf2a537c01f1fe79a665d799f7bf8b543f95876 (patch)
tree44be3298fc02dc7748aec575aeda793530b838ef
parentf0a68b3a5d7e8b90b5977de56ff3a0c8732f0b96 (diff)
downloadlibxslt-ddf2a537c01f1fe79a665d799f7bf8b543f95876.tar.gz
libxslt-ddf2a537c01f1fe79a665d799f7bf8b543f95876.tar.bz2
libxslt-ddf2a537c01f1fe79a665d799f7bf8b543f95876.zip
updated the apibuilder script, regenerated the APIs Daniel
* doc/apibuild.py doc/libexslt-api.xml doc/libxslt-api.xml: updated the apibuilder script, regenerated the APIs Daniel
-rw-r--r--ChangeLog5
-rwxr-xr-xdoc/apibuild.py37
-rw-r--r--doc/libexslt-api.xml4
-rw-r--r--doc/libxslt-api.xml366
-rw-r--r--python/libxsltclass.txt3
5 files changed, 325 insertions, 90 deletions
diff --git a/ChangeLog b/ChangeLog
index ba82a1ca..c82065e1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Fri Dec 13 14:50:12 CET 2002 Daniel Veillard <daniel@veillard.com>
+
+ * doc/apibuild.py doc/libexslt-api.xml doc/libxslt-api.xml: updated
+ the apibuilder script, regenerated the APIs
+
Fri Dec 13 11:59:07 CET 2002 Daniel Veillard <daniel@veillard.com>
* libxslt/numbers.c: numbering should not traverse XInclude
diff --git a/doc/apibuild.py b/doc/apibuild.py
index 97380c15..7f3158e1 100755
--- a/doc/apibuild.py
+++ b/doc/apibuild.py
@@ -182,6 +182,10 @@ class index:
if self.functions.has_key(id):
up = idx.functions[id]
self.functions[id].update(None, up.type, up.info, up.extra)
+ # else:
+ # print "Function %s from %s is not declared in headers" % (
+ # id, idx.functions[id].module)
+ # TODO: do the same for variables.
def analyze_dict(self, type, dict):
count = 0
@@ -745,6 +749,7 @@ class CParser:
name = token[1]
signature = self.signature
if signature != None:
+ type = string.split(type, '(')[0]
d = self.mergeFunctionComment(name,
((type, None), signature), 1)
self.index.add(name, self.filename, not self.is_header,
@@ -853,7 +858,7 @@ class CParser:
name = None
self.comment = None
comment = ""
- value = ""
+ value = "0"
while token != None:
if token[0] == "sep" and token[1] == "{":
token = self.token()
@@ -874,9 +879,9 @@ class CParser:
self.enums.append((name, value, comment))
name = token[1]
comment = ""
- value = ""
token = self.token()
if token[0] == "op" and token[1][0] == "=":
+ value = ""
if len(token[1]) > 1:
value = token[1][1:]
token = self.token()
@@ -884,6 +889,12 @@ class CParser:
token[1] != '}'):
value = value + token[1]
token = self.token()
+ else:
+ try:
+ value = "%d" % (int(value) + 1)
+ except:
+ print "Failed to compute value of enum %s" % (name)
+ value=""
if token[0] == "sep" and token[1] == ",":
token = self.token()
else:
@@ -1341,12 +1352,12 @@ class docBuilder:
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(()):
+ if self.idx.structs.has_key(name) and ( \
+ type(self.idx.structs[name].info) == type(()) or
+ type(self.idx.structs[name].info) == type([])):
output.write(">\n");
try:
for field in self.idx.structs[name].info:
- print name, field
desc = field[2]
if desc == None:
desc = ''
@@ -1362,6 +1373,15 @@ class docBuilder:
output.write(" <typedef name='%s' file='%s' type='%s'/>\n" % (
name, self.modulename_file(id.module), id.info))
+ def serialize_variable(self, output, name):
+ id = self.idx.variables[name]
+ if id.info != None:
+ output.write(" <variable name='%s' file='%s' type='%s'/>\n" % (
+ name, self.modulename_file(id.module), id.info))
+ else:
+ output.write(" <variable name='%s' file='%s'/>\n" % (
+ name, self.modulename_file(id.module)))
+
def serialize_function(self, output, name):
id = self.idx.functions[name]
output.write(" <%s name='%s' file='%s'>\n" % (id.type, name,
@@ -1423,6 +1443,10 @@ class docBuilder:
typedefs.sort()
for typedef in typedefs:
self.serialize_typedef(output, typedef)
+ variables = self.idx.variables.keys()
+ variables.sort()
+ for variable in variables:
+ self.serialize_variable(output, variable)
functions = self.idx.functions.keys()
functions.sort()
for function in functions:
@@ -1437,7 +1461,8 @@ def rebuild():
if glob.glob("../parser.c") != [] :
print "Rebuilding API description for libxml2"
builder = docBuilder("libxml2", ["..", "../include/libxml"],
- ["xmlwin32version.h", "tst.c"])
+ ["xmlwin32version.h", "tst.c",
+ "schemasInternals.h", "xmlschemas" ])
elif glob.glob("../libxslt/transform.c") != [] :
print "Rebuilding API description for libxslt"
builder = docBuilder("libxslt", ["../libxslt"],
diff --git a/doc/libexslt-api.xml b/doc/libexslt-api.xml
index f6c08ac3..6c5369b8 100644
--- a/doc/libexslt-api.xml
+++ b/doc/libexslt-api.xml
@@ -50,6 +50,10 @@
<macro name='SAXON_NAMESPACE' file='exslt'>
<info>Namespace for SAXON extensions functions</info>
</macro>
+ <variable name='exsltLibexsltVersion' file='exslt' type='const int'/>
+ <variable name='exsltLibraryVersion' file='exslt' type='const char *'/>
+ <variable name='exsltLibxmlVersion' file='exslt' type='const int'/>
+ <variable name='exsltLibxsltVersion' file='exslt' type='const int'/>
<function name='exsltCommonRegister' file='exslt'>
<info>Registers the EXSLT - Common module</info>
<return type='void'/>
diff --git a/doc/libxslt-api.xml b/doc/libxslt-api.xml
index 504372f8..32a47cd7 100644
--- a/doc/libxslt-api.xml
+++ b/doc/libxslt-api.xml
@@ -459,85 +459,303 @@
<macro name='XSLT_XT_NAMESPACE' file='extra'>
<info>This is James Clark&apos;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_CONT' file='xsltutils' value='6' type='xsltDebugStatusCodes'/>
+ <enum name='XSLT_DEBUG_INIT' file='xsltutils' value='1' type='xsltDebugStatusCodes'/>
+ <enum name='XSLT_DEBUG_NEXT' file='xsltutils' value='4' 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_DEBUG_QUIT' file='xsltutils' value='9' type='xsltDebugStatusCodes'/>
+ <enum name='XSLT_DEBUG_RUN' file='xsltutils' value='7' type='xsltDebugStatusCodes'/>
+ <enum name='XSLT_DEBUG_RUN_RESTART' file='xsltutils' value='8' type='xsltDebugStatusCodes'/>
+ <enum name='XSLT_DEBUG_STEP' file='xsltutils' value='2' type='xsltDebugStatusCodes'/>
+ <enum name='XSLT_DEBUG_STEPOUT' file='xsltutils' value='3' type='xsltDebugStatusCodes'/>
+ <enum name='XSLT_DEBUG_STOP' file='xsltutils' value='5' type='xsltDebugStatusCodes'/>
+ <enum name='XSLT_FUNC_APPLYIMPORTS' file='xsltInternals' value='11' type='xsltStyleType'/>
+ <enum name='XSLT_FUNC_APPLYTEMPLATES' file='xsltInternals' value='13' type='xsltStyleType'/>
+ <enum name='XSLT_FUNC_ATTRIBUTE' file='xsltInternals' value='5' type='xsltStyleType'/>
+ <enum name='XSLT_FUNC_CALLTEMPLATE' file='xsltInternals' value='12' type='xsltStyleType'/>
+ <enum name='XSLT_FUNC_CHOOSE' file='xsltInternals' value='14' type='xsltStyleType'/>
+ <enum name='XSLT_FUNC_COMMENT' file='xsltInternals' value='6' 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_FUNC_COPYOF' file='xsltInternals' value='8' type='xsltStyleType'/>
+ <enum name='XSLT_FUNC_DOCUMENT' file='xsltInternals' value='17' type='xsltStyleType'/>
+ <enum name='XSLT_FUNC_ELEMENT' file='xsltInternals' value='4' type='xsltStyleType'/>
+ <enum name='XSLT_FUNC_EXTENSION' file='xsltInternals' value='22' type='xsltStyleType'/>
+ <enum name='XSLT_FUNC_FOREACH' file='xsltInternals' value='16' type='xsltStyleType'/>
+ <enum name='XSLT_FUNC_IF' file='xsltInternals' value='15' type='xsltStyleType'/>
+ <enum name='XSLT_FUNC_NUMBER' file='xsltInternals' value='10' type='xsltStyleType'/>
+ <enum name='XSLT_FUNC_PARAM' file='xsltInternals' value='19' type='xsltStyleType'/>
+ <enum name='XSLT_FUNC_PI' file='xsltInternals' value='7' type='xsltStyleType'/>
+ <enum name='XSLT_FUNC_SORT' file='xsltInternals' value='2' type='xsltStyleType'/>
+ <enum name='XSLT_FUNC_TEXT' file='xsltInternals' value='3' type='xsltStyleType'/>
+ <enum name='XSLT_FUNC_VALUEOF' file='xsltInternals' value='9' type='xsltStyleType'/>
+ <enum name='XSLT_FUNC_VARIABLE' file='xsltInternals' value='20' type='xsltStyleType'/>
+ <enum name='XSLT_FUNC_WHEN' file='xsltInternals' value='21' type='xsltStyleType'/>
+ <enum name='XSLT_FUNC_WITHPARAM' file='xsltInternals' value='18' type='xsltStyleType'/>
+ <enum name='XSLT_OUTPUT_HTML' file='xsltInternals' value='1' type='xsltOutputType'/>
+ <enum name='XSLT_OUTPUT_TEXT' file='xsltInternals' value='2' 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_CREATE_DIRECTORY' file='security' value='3' 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_SECPREF_READ_NETWORK' file='security' value='4' type='xsltSecurityOption'/>
+ <enum name='XSLT_SECPREF_WRITE_FILE' file='security' value='2' type='xsltSecurityOption'/>
+ <enum name='XSLT_SECPREF_WRITE_NETWORK' file='security' value='5' type='xsltSecurityOption'/>
+ <enum name='XSLT_STATE_ERROR' file='xsltInternals' value='1' type='xsltTransformState'/>
<enum name='XSLT_STATE_OK' file='xsltInternals' value='0' type='xsltTransformState'/>
- <enum name='XSLT_STATE_STOPPED' file='xsltInternals' type='xsltTransformState'/>
+ <enum name='XSLT_STATE_STOPPED' file='xsltInternals' value='2' 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'/>
+ <struct name='xsltDecimalFormat' file='xsltInternals' type='struct _xsltDecimalFormat'>
+ <field name='next' type='struct _xsltDecimalFormat *' info=' chained list'/>
+ <field name='name' type='xmlChar *' info=' Used for interpretation of pattern'/>
+ <field name='digit' type='xmlChar *' info=''/>
+ <field name='patternSeparator' type='xmlChar *' info=' May appear in result'/>
+ <field name='minusSign' type='xmlChar *' info=''/>
+ <field name='infinity' type='xmlChar *' info=''/>
+ <field name='noNumber' type='xmlChar *' info=' Not-a-number Used for interpretation of pattern and may appear in result'/>
+ <field name='decimalPoint' type='xmlChar *' info=''/>
+ <field name='grouping' type='xmlChar *' info=''/>
+ <field name='percent' type='xmlChar *' info=''/>
+ <field name='permille' type='xmlChar *' info=''/>
+ <field name='zeroDigit' type='xmlChar *' info=''/>
+ </struct>
<typedef name='xsltDecimalFormatPtr' file='xsltInternals' type='xsltDecimalFormat *'/>
- <struct name='xsltDocument' file='xsltInternals' type='struct _xsltDocument'/>
+ <struct name='xsltDocument' file='xsltInternals' type='struct _xsltDocument'>
+ <field name='next' type='struct _xsltDocument *' info=' documents are kept in a chained list'/>
+ <field name='main' type='int' info=' is this the main document'/>
+ <field name='doc' type='xmlDocPtr' info=' the parsed document'/>
+ <field name='keys' type='void *' info=' key tables storage'/>
+ </struct>
<typedef name='xsltDocumentPtr' file='xsltInternals' type='xsltDocument *'/>
- <struct name='xsltElemPreComp' file='xsltInternals' type='struct _xsltElemPreComp'/>
+ <struct name='xsltElemPreComp' file='xsltInternals' type='struct _xsltElemPreComp'>
+ <field name='next' type='xsltElemPreCompPtr' info=' chained list'/>
+ <field name='type' type='xsltStyleType' info=' type of the element'/>
+ <field name='func' type='xsltTransformFunction' info=' handling function'/>
+ <field name='inst' type='xmlNodePtr' info=' the instruction end of common part'/>
+ <field name='free' type='xsltElemPreCompDeallocator' info=' the deallocator'/>
+ </struct>
<typedef name='xsltElemPreCompPtr' file='xsltInternals' type='xsltElemPreComp *'/>
- <struct name='xsltFormatNumberInfo' file='numbersInternals' type='struct _xsltFormatNumberInfo'/>
+ <struct name='xsltFormatNumberInfo' file='numbersInternals' type='struct _xsltFormatNumberInfo'>
+ <field name='integer_hash' type='int' info=' Number of &apos;#&apos; in integer part'/>
+ <field name='integer_digits' type='int' info=' Number of &apos;0&apos; in integer part'/>
+ <field name='frac_digits' type='int' info=' Number of &apos;0&apos; in fractional part'/>
+ <field name='frac_hash' type='int' info=' Number of &apos;#&apos; in fractional part'/>
+ <field name='group' type='int' info=' Number of chars per display &apos;group&apos;'/>
+ <field name='multiplier' type='int' info=' Scaling for percent or permille'/>
+ <field name='add_decimal' type='char' info=' Flag for whether decimal point appears in pattern'/>
+ <field name='is_multiplier_set' type='char' info=' Flag to catch multiple occurences of percent/permille'/>
+ <field name='is_negative_pattern' type='char' info=' Flag for processing -ve prefix/suffix'/>
+ </struct>
<typedef name='xsltFormatNumberInfoPtr' file='numbersInternals' type='xsltFormatNumberInfo *'/>
- <struct name='xsltNumberData' file='numbersInternals' type='struct _xsltNumberData'/>
+ <struct name='xsltNumberData' file='numbersInternals' type='struct _xsltNumberData'>
+ <field name='level' type='xmlChar *' info=''/>
+ <field name='count' type='xmlChar *' info=''/>
+ <field name='from' type='xmlChar *' info=''/>
+ <field name='value' type='xmlChar *' info=''/>
+ <field name='format' type='xmlChar *' info=''/>
+ <field name='has_format' type='int' info=''/>
+ <field name='digitsPerGroup' type='int' info=''/>
+ <field name='groupingCharacter' type='int' info=''/>
+ <field name='groupingCharacterLen' type='int' info=''/>
+ <field name='doc' type='xmlDocPtr' info=''/>
+ <field name='node' type='xmlNodePtr' info=''/>
+ </struct>
<typedef name='xsltNumberDataPtr' file='numbersInternals' type='xsltNumberData *'/>
<typedef name='xsltOutputType' file='xsltInternals' type='enum'/>
- <struct name='xsltRuntimeExtra' file='xsltInternals' type='struct _xsltRuntimeExtra'/>
+ <struct name='xsltRuntimeExtra' file='xsltInternals' type='struct _xsltRuntimeExtra'>
+ <field name='info' type='void *' info=' pointer to the extra data'/>
+ <field name='deallocate' type='xmlFreeFunc' info=' pointer to the deallocation routine'/>
+ <field name='val' type='void *' info=' data not needing deallocation'/>
+ </struct>
<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'/>
+ <struct name='xsltStackElem' file='xsltInternals' type='struct _xsltStackElem'>
+ <field name='next' type='struct _xsltStackElem *' info=' chained list'/>
+ <field name='comp' type='xsltStylePreCompPtr' info=' the compiled form'/>
+ <field name='computed' type='int' info=' was the evaluation done'/>
+ <field name='name' type='xmlChar *' info=' the local part of the name QName'/>
+ <field name='nameURI' type='xmlChar *' info=' the URI part of the name QName'/>
+ <field name='select' type='xmlChar *' info=' the eval string'/>
+ <field name='tree' type='xmlNodePtr' info=' the tree if no eval string or the location'/>
+ <field name='value' type='xmlXPathObjectPtr' info=' The value if computed'/>
+ </struct>
<typedef name='xsltStackElemPtr' file='xsltInternals' type='xsltStackElem *'/>
- <struct name='xsltStylePreComp' file='xsltInternals' type='struct _xsltStylePreComp'/>
+ <struct name='xsltStylePreComp' file='xsltInternals' type='struct _xsltStylePreComp'>
+ <field name='next' type='xsltElemPreCompPtr' info=' chained list'/>
+ <field name='type' type='xsltStyleType' info=' type of the element'/>
+ <field name='func' type='xsltTransformFunction' info=' handling function'/>
+ <field name='inst' type='xmlNodePtr' info='* Pre computed values.
+*'/>
+ <field name='stype' type='xmlChar *' info=' sort'/>
+ <field name='has_stype' type='int' info=' sort'/>
+ <field name='number' type='int' info=' sort'/>
+ <field name='order' type='xmlChar *' info=' sort'/>
+ <field name='has_order' type='int' info=' sort'/>
+ <field name='descending' type='int' info=' sort'/>
+ <field name='lang' type='xmlChar *' info=' sort'/>
+ <field name='has_lang' type='int' info=' sort'/>
+ <field name='case_order' type='xmlChar *' info=' sort'/>
+ <field name='lower_first' type='int' info=' sort'/>
+ <field name='use' type='xmlChar *' info=' copy, element'/>
+ <field name='has_use' type='int' info=' copy, element'/>
+ <field name='noescape' type='int' info=' text'/>
+ <field name='name' type='xmlChar *' info=' element, attribute, pi'/>
+ <field name='has_name' type='int' info=' element, attribute, pi'/>
+ <field name='ns' type='xmlChar *' info=' element'/>
+ <field name='has_ns' type='int' info=' element'/>
+ <field name='mode' type='xmlChar *' info=' apply-templates'/>
+ <field name='modeURI' type='xmlChar *' info=' apply-templates'/>
+ <field name='test' type='xmlChar *' info=' if'/>
+ <field name='templ' type='xsltTemplatePtr' info=' call-template'/>
+ <field name='select' type='xmlChar *' info=' sort, copy-of, value-of, apply-templates'/>
+ <field name='ver11' type='int' info=' document'/>
+ <field name='filename' type='xmlChar *' info=' document URL'/>
+ <field name='has_filename' type='int' info=' document'/>
+ <field name='numdata' type='xsltNumberData' info=' number'/>
+ <field name='comp' type='xmlXPathCompExprPtr' info=' a precompiled XPath expression'/>
+ <field name='nsList' type='xmlNsPtr *' info=' the namespaces in scope'/>
+ <field name='nsNr' type='int' info=' the number of namespaces in scope'/>
+ </struct>
<typedef name='xsltStylePreCompPtr' file='xsltInternals' type='xsltStylePreComp *'/>
<typedef name='xsltStyleType' file='xsltInternals' type='enum'/>
- <struct name='xsltStylesheet' file='xsltInternals' type='struct _xsltStylesheet'/>
+ <struct name='xsltStylesheet' file='xsltInternals' type='struct _xsltStylesheet'>
+ <field name='parent' type='struct _xsltStylesheet *' info=''/>
+ <field name='next' type='struct _xsltStylesheet *' info=''/>
+ <field name='imports' type='struct _xsltStylesheet *' info=''/>
+ <field name='docList' type='xsltDocumentPtr' info='* General data on the style sheet document.
+*'/>
+ <field name='doc' type='xmlDocPtr' info=' the parsed XML stylesheet'/>
+ <field name='stripSpaces' type='xmlHashTablePtr' info=' the hash table of the strip-space and
+preserve space elements'/>
+ <field name='stripAll' type='int' info=' strip-space * (1) preserve-space * (-1)'/>
+ <field name='cdataSection' type='xmlHashTablePtr' info='* Global variable or parameters.
+*'/>
+ <field name='variables' type='xsltStackElemPtr' info='* Template descriptions.
+*'/>
+ <field name='templates' type='xsltTemplatePtr' info=' the ordered list of templates'/>
+ <field name='templatesHash' type='void *' info=' hash table or wherever compiled templates
+informations are stored'/>
+ <field name='rootMatch' type='void *' info=' template based on /'/>
+ <field name='keyMatch' type='void *' info=' template based on key()'/>
+ <field name='elemMatch' type='void *' info=' template based on *'/>
+ <field name='attrMatch' type='void *' info=' template based on @*'/>
+ <field name='parentMatch' type='void *' info=' template based on ..'/>
+ <field name='textMatch' type='void *' info=' template based on text()'/>
+ <field name='piMatch' type='void *' info=' template based on processing-instruction()'/>
+ <field name='commentMatch' type='void *' info='* Namespace aliases.
+*'/>
+ <field name='nsAliases' type='xmlHashTablePtr' info='* Attribute sets.
+*'/>
+ <field name='attributeSets' type='xmlHashTablePtr' info='* Namespaces.
+*'/>
+ <field name='nsHash' type='xmlHashTablePtr' info=' the set of namespaces in use'/>
+ <field name='nsDefs' type='void *' info='* Key definitions.
+*'/>
+ <field name='keys' type='void *' info='* Output related stuff.
+*'/>
+ <field name='method' type='xmlChar *' info=' the output method'/>
+ <field name='methodURI' type='xmlChar *' info=' associated namespace if any'/>
+ <field name='version' type='xmlChar *' info=' version string'/>
+ <field name='encoding' type='xmlChar *' info=' encoding string'/>
+ <field name='omitXmlDeclaration' type='int' info='* Number formatting.
+*'/>
+ <field name='decimalFormat' type='xsltDecimalFormatPtr' info=''/>
+ <field name='standalone' type='int' info=' standalone = &quot;yes&quot; | &quot;no&quot;'/>
+ <field name='doctypePublic' type='xmlChar *' info=' doctype-public string'/>
+ <field name='doctypeSystem' type='xmlChar *' info=' doctype-system string'/>
+ <field name='indent' type='int' info=' should output being indented'/>
+ <field name='mediaType' type='xmlChar *' info='* Precomputed blocks.
+*'/>
+ <field name='preComps' type='xsltElemPreCompPtr' info=' list of precomputed blocks'/>
+ <field name='warnings' type='int' info=' number of warnings found at compilation'/>
+ <field name='errors' type='int' info=' number of errors found at compilation'/>
+ <field name='exclPrefix' type='xmlChar *' info=' last excluded prefixes'/>
+ <field name='exclPrefixTab' type='xmlChar **' info=' array of excluded prefixes'/>
+ <field name='exclPrefixNr' type='int' info=' number of excluded prefixes in scope'/>
+ <field name='exclPrefixMax' type='int' info=' size of the array'/>
+ <field name='_private' type='void *' info='* Extensions.
+*'/>
+ <field name='extInfos' type='xmlHashTablePtr' info=' the extension data'/>
+ <field name='extrasNr' type='int' info=' the number of extras required'/>
+ </struct>
<typedef name='xsltStylesheetPtr' file='xsltInternals' type='xsltStylesheet *'/>
- <struct name='xsltTemplate' file='xsltInternals' type='struct _xsltTemplate'/>
+ <struct name='xsltTemplate' file='xsltInternals' type='struct _xsltTemplate'>
+ <field name='next' type='struct _xsltTemplate *' info=' chained list sorted by priority'/>
+ <field name='style' type='struct _xsltStylesheet *' info=' the containing stylesheet'/>
+ <field name='match' type='xmlChar *' info=' the matching string'/>
+ <field name='priority' type='float' info=' as given from the stylesheet, not computed'/>
+ <field name='name' type='xmlChar *' info=' the local part of the name QName'/>
+ <field name='nameURI' type='xmlChar *' info=' the URI part of the name QName'/>
+ <field name='mode' type='xmlChar *' info=' the local part of the mode QName'/>
+ <field name='modeURI' type='xmlChar *' info=' the URI part of the mode QName'/>
+ <field name='content' type='xmlNodePtr' info=' the template replacement value'/>
+ <field name='elem' type='xmlNodePtr' info=' the source element'/>
+ <field name='inheritedNsNr' type='int' info=' number of inherited namespaces'/>
+ <field name='inheritedNs' type='xmlNsPtr *' info=' inherited non-excluded namespaces Profiling informations'/>
+ <field name='nbCalls' type='int' info=' the number of time the template was called'/>
+ <field name='time' type='unsigned long' info=' the time spent in this template'/>
+ </struct>
<typedef name='xsltTemplatePtr' file='xsltInternals' type='xsltTemplate *'/>
- <struct name='xsltTransformContext' file='xsltInternals' type='struct _xsltTransformContext'/>
+ <struct name='xsltTransformContext' file='xsltInternals' type='struct _xsltTransformContext'>
+ <field name='style' type='xsltStylesheetPtr' info=' the stylesheet used'/>
+ <field name='type' type='xsltOutputType' info=' the type of output'/>
+ <field name='templ' type='xsltTemplatePtr' info=' the current template'/>
+ <field name='templNr' type='int' info=' Nb of templates in the stack'/>
+ <field name='templMax' type='int' info=' Size of the templtes stack'/>
+ <field name='templTab' type='xsltTemplatePtr *' info=' the template stack'/>
+ <field name='vars' type='xsltStackElemPtr' info=' the current variable list'/>
+ <field name='varsNr' type='int' info=' Nb of variable list in the stack'/>
+ <field name='varsMax' type='int' info=' Size of the variable list stack'/>
+ <field name='varsTab' type='xsltStackElemPtr *' info=' the variable list stack'/>
+ <field name='varsBase' type='int' info='* Extensions
+*'/>
+ <field name='extFunctions' type='xmlHashTablePtr' info=' the extension functions'/>
+ <field name='extElements' type='xmlHashTablePtr' info=' the extension elements'/>
+ <field name='extInfos' type='xmlHashTablePtr' info=' the extension data'/>
+ <field name='mode' type='const xmlChar *' info=' the current mode'/>
+ <field name='modeURI' type='const xmlChar *' info=' the current mode URI'/>
+ <field name='docList' type='xsltDocumentPtr' info=' the document list'/>
+ <field name='document' type='xsltDocumentPtr' info=' the current document'/>
+ <field name='node' type='xmlNodePtr' info=' the current node being processed'/>
+ <field name='nodeList' type='xmlNodeSetPtr' info=' the current node list xmlNodePtr current; the node'/>
+ <field name='output' type='xmlDocPtr' info=' the resulting document'/>
+ <field name='insert' type='xmlNodePtr' info=' the insertion node'/>
+ <field name='xpathCtxt' type='xmlXPathContextPtr' info=' the XPath context'/>
+ <field name='state' type='xsltTransformState' info='* Global variables
+*'/>
+ <field name='globalVars' type='xmlHashTablePtr' info=' the global variables and params'/>
+ <field name='inst' type='xmlNodePtr' info=' the instruction in the stylesheet'/>
+ <field name='xinclude' type='int' info=' should XInclude be processed'/>
+ <field name='outputFile' type='const char *' info=' the output URI if known'/>
+ <field name='profile' type='int' info=' is this run profiled'/>
+ <field name='prof' type='long' info=' the current profiled value'/>
+ <field name='profNr' type='int' info=' Nb of templates in the stack'/>
+ <field name='profMax' type='int' info=' Size of the templtaes stack'/>
+ <field name='profTab' type='long *' info=' the profile template stack'/>
+ <field name='_private' type='void *' info=' user defined data'/>
+ <field name='extrasNr' type='int' info=' the number of extras used'/>
+ <field name='extrasMax' type='int' info=' the number of extras allocated'/>
+ <field name='extras' type='xsltRuntimeExtraPtr' info=' extra per runtime informations'/>
+ <field name='styleList' type='xsltDocumentPtr' info=' the stylesheet docs list'/>
+ <field name='sec' type='void *' info=' the security preferences if any'/>
+ <field name='error' type='xmlGenericErrorFunc' info=' a specific error handler'/>
+ <field name='errctx' type='void *' info=' context for the error handler'/>
+ <field name='sortfunc' type='xsltSortFunc' info=' a ctxt specific sort routine'/>
+ </struct>
<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>
+ <variable name='xslDebugStatus' file='xsltutils' type='int'/>
+ <variable name='xsltEngineVersion' file='xslt' type='const char *'/>
+ <variable name='xsltExtMarker' file='preproc' type='const xmlChar *'/>
+ <variable name='xsltGenericDebug' file='xsltutils' type='xmlGenericErrorFunc'/>
+ <variable name='xsltGenericDebugContext' file='xsltutils' type='void *'/>
+ <variable name='xsltGenericError' file='xsltutils' type='xmlGenericErrorFunc'/>
+ <variable name='xsltGenericErrorContext' file='xsltutils' type='void *'/>
+ <variable name='xsltLibxmlVersion' file='xslt' type='const int'/>
+ <variable name='xsltLibxsltVersion' file='xslt' type='const int'/>
+ <variable name='xsltMaxDepth' file='xslt' type='int'/>
<function name='xslAddCall' file='xsltutils'>
<info>Add template &quot;call&quot; 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'/>
@@ -558,7 +776,7 @@
</function>
<functype name='xsltAddCallCallback' file='xsltutils'>
<info></info>
- <return type='int(*xsltAddCallCallback)' info=''/>
+ <return type='int' info=''/>
<arg name='templ' type='xsltTemplatePtr' info=''/>
<arg name='source' type='xmlNodePtr' info=''/>
</functype>
@@ -790,13 +1008,6 @@
<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'/>
@@ -858,11 +1069,11 @@
</function>
<functype name='xsltDropCallCallback' file='xsltutils'>
<info></info>
- <return type='void(*xsltDropCallCallback)' info=''/>
+ <return type='void'/>
</functype>
<functype name='xsltElemPreCompDeallocator' file='xsltInternals'>
<info>Deallocates an #xsltElemPreComp structure.</info>
- <return type='void(*xsltElemPreCompDeallocator)' info=''/>
+ <return type='void'/>
<arg name='comp' type='xsltElemPreCompPtr' info='the #xsltElemPreComp to free up'/>
</functype>
<function name='xsltElement' file='transform'>
@@ -959,7 +1170,7 @@
</function>
<functype name='xsltExtInitFunction' file='extensions'>
<info>A function called at initialization time of an XSLT extension module.</info>
- <return type='void *(*xsltExtInitFunction)' info='a pointer to the module specific data for this transformation.'/>
+ <return type='void *' 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>
@@ -989,7 +1200,7 @@
</function>
<functype name='xsltExtShutdownFunction' file='extensions'>
<info>A function called at shutdown time of an XSLT extension module.</info>
- <return type='void(*xsltExtShutdownFunction)' 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'/>
@@ -1211,7 +1422,7 @@
</function>
<functype name='xsltHandleDebuggerCallback' file='xsltutils'>
<info></info>
- <return type='void(*xsltHandleDebuggerCallback)' info=''/>
+ <return type='void'/>
<arg name='cur' type='xmlNodePtr' info=''/>
<arg name='node' type='xmlNodePtr' info=''/>
<arg name='templ' type='xsltTemplatePtr' info=''/>
@@ -1437,7 +1648,7 @@
</function>
<functype name='xsltPreComputeFunction' file='extensions'>
<info></info>
- <return type='xsltElemPreCompPtr(*xsltPreComputeFunction)' info=''/>
+ <return type='xsltElemPreCompPtr' info=''/>
<arg name='style' type='xsltStylesheetPtr' info=''/>
<arg name='inst' type='xmlNodePtr' info=''/>
<arg name='function' type='xsltTransformFunction' info=''/>
@@ -1449,13 +1660,6 @@
<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'/>
@@ -1648,7 +1852,7 @@
</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(*xsltSecurityCheck)' info=''/>
+ <return type='int' info=''/>
<arg name='sec' type='xsltSecurityPrefsPtr' info=''/>
<arg name='ctxt' type='xsltTransformContextPtr' info=''/>
<arg name='value' type='const char *' info=''/>
@@ -1739,20 +1943,20 @@
</function>
<functype name='xsltSortFunc' file='xsltInternals'>
<info>Signature of the function to use during sorting</info>
- <return type='void(*xsltSortFunc)' info=''/>
+ <return type='void'/>
<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 *(*xsltStyleExtInitFunction)' info='a pointer to the module specific data for this transformation.'/>
+ <return type='void *' 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(*xsltStyleExtShutdownFunction)' info=''/>
+ <return type='void'/>
<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'/>
@@ -1802,7 +2006,7 @@
</function>
<functype name='xsltTopLevelFunction' file='extensions'>
<info></info>
- <return type='void(*xsltTopLevelFunction)' info=''/>
+ <return type='void'/>
<arg name='style' type='xsltStylesheetPtr' info=''/>
<arg name='inst' type='xmlNodePtr' info=''/>
</functype>
@@ -1817,7 +2021,7 @@
</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(*xsltTransformFunction)' 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'/>
diff --git a/python/libxsltclass.txt b/python/libxsltclass.txt
index 12b6abcb..ef2bc6cf 100644
--- a/python/libxsltclass.txt
+++ b/python/libxsltclass.txt
@@ -121,9 +121,6 @@ Class transformCtxt()
freeTransformContext()
registerAllElement()
- # functions from module transform.c
- copyTree()
-
# functions from module variables
evalGlobalVariables()
evalOneUserParam()